Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to run Daniel Oesch's social class scripts? #50

Open
briatte opened this issue Mar 5, 2021 · 5 comments
Open

Add code to run Daniel Oesch's social class scripts? #50

briatte opened this issue Mar 5, 2021 · 5 comments

Comments

@briatte
Copy link
Contributor

briatte commented Mar 5, 2021

https://people.unil.ch/danieloesch/scripts/

Available for Rounds 1--9.

See also:

https://github.com/jolyphil/oesch-class-ess-R/

… although this one is produced in Stata.

@cimentadaj
Copy link
Contributor

Thanks @briatte. This is indeed a useful addition and something which I think would make essurvey much more popular within the social science community. I don't have enough time at the moment to implement this but I'd be happy to review a PR if you or anyone else is interested in contributing 😄.

@briatte
Copy link
Contributor Author

briatte commented Mar 11, 2021

Alright, thanks!

Will do the following after we hear from ESS on the server issue (#51):

  1. Compute social class from Oesch's scripts for all available ESS rounds and countries.
  2. Rewrite his scripts as something that could be executed internally to the package.
  3. Write an oesch_class function that produces the class columns.

@cimentadaj
Copy link
Contributor

This is a great. Would you mind looping me in the development? We should discuss the input/output just so that it can generalize well to all rounds. For example, perhaps it can be a funcion that accepts only a column of social classes and you need to provide a year argument to select which round transformation. This has the benefit that it can be embedded in mutate calls and/or used nicely with group_by if rounds are collapsed together. Were you thinking along these lines or something different?

@briatte
Copy link
Contributor Author

briatte commented Apr 12, 2021

Hi @cimentadaj — No problem, will let you know when I start working on this!

perhaps it can be a funcion that accepts only a column of social classes and you need to provide a year argument to select which round transformation.

I was thinking that perhaps the simplest way to get this right is to ask on import/download whether social class variables should be added to the result. This ensures that the function gets the right cntry and essround parameters, and also allows to know what's the data format (Stata/SPSS) on which it operates.

@cimentadaj
Copy link
Contributor

cimentadaj commented Apr 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants