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
Multiple observations per year in the dependent variable and annual observations for the dependent variablesHello Statalisters, I am trying to explore the impact of CSR expenses on the credit ratings of firm…
Help needed: Export F-stats and P-values to an excel fileHi, I am using Stata 17 and need help in exporting results from Stata to excel. Here is an example …
Predicted Probabilities with Logit and Fixed EffectHello, I am trying to compare 4 different groups (black women, white women, black men, and white wom…
How to choose part of dataset based on dateHi I need some help with Stata syntax. I have a dataset with persons who have participated in a hea…
Direct, indirect and total marginal effect in the mvprobitPlease how to calculate the direct, indirect and total marginal effect in the mvprobit ? …
Subscribe to:
Post Comments (Atom)
0 Response to Weights not allowed with the svy prefix
Post a Comment