Hi Everyone.
Can someone please help me, I am new at stata (less than a month). I am in the process of declaring the survey data and tabulating the survey data. But I keep getting an error.
Below is my command:
svyset psu [pweight=person_wgt], strata(prov) //declare survey data
svy:tabulate sex [aw=person_wgt] //tabulate survey data
svy:tabulate agecategories [aw=person_wgt] //tabulate survey data
svy:tabulate race [aw=person_wgt] //tabulate survey data
and the error I keep getting is as follows:
svy:tabulate sex [aw=person_wgt] //tabulate survey data
weights not allowed with the svy prefix;
the svy prefix assumes survey weights were already specified using svyset
r(101);
Can someone maybe tell me where I am going wrong?
Related Posts with Weights not allowed with the svy prefix
Removing duplicatesHi, I have a dataset which i want to be uniques with the variables gvkey, fyear and loc. But there …
Contract year reshapeDear Statalists, Hope all is well. I am dealing with the contract data with specific contract star…
Bayesian analysis in StataI will be leading a workshop on Bayesian analysis, where I need to make all Baysian analyses as simp…
plot the results of a 2sls regression with fixed effectsHello, I want to plot the results of a 2sls regression with fixed effects for different values of a …
Dates got omitted due to collinearity in fixed-effects regression modelHello, I run a regression to examine what has an impact on the decision to sell a stock on the stoc…
Subscribe to:
Post Comments (Atom)
0 Response to Weights not allowed with the svy prefix
Post a Comment