specr icon indicating copy to clipboard operation
specr copied to clipboard

specs using weighted survey data

Open stuartjames1990 opened this issue 3 years ago • 1 comments

Is there a way to specify the inclusion of weights in the specifications?

I'm replying on cross-national survey data (European Social Survey) where combined post-stratifcation and country population weight is required to produce representative results.

stuartjames1990 avatar Jul 19 '22 07:07 stuartjames1990

If you use custom estimation functions (e.g. https://masurp.github.io/specr/articles/random_effects.html), it should be pretty easy to use weights (just add them to the function at some point during or post-estimation), at least when the weighting procedure is not varied as part of the multiverse. In that case, you'd probably need multiple custom functions.

mscharkow avatar Jul 19 '22 20:07 mscharkow