I have four variables: town, weights, survey_wave, and pizza (preference for pizza on a 1-5 scale). The data is on the individual-level. My code is:
The odd thing is that when I run the tab with -svy-, I get no observations. I have no idea why. There are weights for both survey waves. I tried to create a -dataex- sample, but no matter what I did, it only included entries from wave==2, not wave==1.
Goes without saying, but obviously the above example is fake.
Code:
svyset town [pweight=weights] tab pizza if survey_wave==1 svy: tab pizza if survey_wave==1
Goes without saying, but obviously the above example is fake.
Comment