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
Compare elements of locals and return distingushing elementsDear all, I have the following three locals: Code: local house "1 2 3 4" local garden "1 2 3" loc…
twoway scatter by graph column and row subtitlesHi all, I was just wondering if anybody knew of a way to make the subtitles work as column/row head…
Keeping observations under many criteria (when they appear in more than one period)Hello there! I need to drop some observations of my dataset. I have aprox.115,000 observations of d…
Calculating Gini CoefficientHi Statalist, Here I have a dataset comprising company name, year, host country, host country econom…
How to store formatted number in a noteStataMP 15.1 on macOS Sierra I'd like to display the number of observations in a note with formatti…
Subscribe to:
Post Comments (Atom)
0 Response to Survey Data Question
Post a Comment