-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to use weights? #39
Comments
There are actually only two survey weights that should be used for analysis:
The design weights account only for unequal inclusion probabilities (i.e. the probability for a unit to end up in the gross sample.) For ESS data from a single country you could simple use: ess_design <-
svydesign(
ids = ~idno,
weights = ~ dweight,
data = ess,
) If you care for more accurate sampling error estimation you should check what sampling design the countries used. Especially if it involved multi-stage sampling and/or stratification. If so you should use the SDDF the get the information on the Primary Sampling Units (PSU) and/or the strata. ess_design <-
svydesign(
ids = ~ psu+idno,
strata = ~ stratify,
weights = ~ dweight,
nest=TRUE,
data = ess,
) |
Hi @sbacelar, |
ESS uses three types of weights, for ex.
dweight
. How to use it withessurvey
?The text was updated successfully, but these errors were encountered: