I'm trying to analyze data from a national survey. I need to stratify it by weight, stratum and psu. I'm using Stata 14. The variables are named "weight" "stratum" and "psu".
I used:
svyset psu[pweight = weight], strata(strata)
but got a "type mismatch" error.
I destringed the variable and now get "option not allowed."
Any help would be appreciated.
Related Posts with Survey Data Question
 Calculating Standard Deviation with RangestatHey all,
I have the following problem. I would like to calculate rolling standard deviation of the … Calculating Standard Deviation with RangestatHey all,
I have the following problem. I would like to calculate rolling standard deviation of the …
 Coefs. not Signif. but Improving Moment Conditions | xtdpdgmmHi,
I'm currently modeling the public-private wage gap in Brazil. The work revolves around estimati… Coefs. not Signif. but Improving Moment Conditions | xtdpdgmmHi,
I'm currently modeling the public-private wage gap in Brazil. The work revolves around estimati…
 Working on Nested LoopMy data is stored in a panel data format. I want to estimate the ARDL model that accommodates one st… Working on Nested LoopMy data is stored in a panel data format. I want to estimate the ARDL model that accommodates one st…
 Combining observations into oneI´m working on a data which has registered repeated observations because there are some observations… Combining observations into oneI´m working on a data which has registered repeated observations because there are some observations…
 Best practice when using 'format' while maintaining precision of doubleI added set type double at the beginning of my code to implement the double-precision for all newly … Best practice when using 'format' while maintaining precision of doubleI added set type double at the beginning of my code to implement the double-precision for all newly …
Subscribe to:
Post Comments (Atom)
0 Response to Survey Data Question
Post a Comment