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
Creating deciles/quintiles based on a certain group of observations by yearHello I have a panel data of all NYSE, AMEX and NASDAQ firms. I am trying to create size deciles ba…
How can I convert a stata date value to missing?Hello, I am working with some data that has missing dates for certain observations. I am importing …
displaying Odds Ratios and 95% Confidence Intervals in word using outregHi All I am rather new to Stata and have encountered some difficulty in generating a word documents…
Counting letters in Stata?Hello Maybe a weird question, but I can do Code: local i = 1 foreach x of numlist 1/10 { di `i'…
Sort two variables simultaneouslyHi is it possible to sort two variables for example by id number and sex. So if I have the following…
Subscribe to:
Post Comments (Atom)
0 Response to Weights not allowed with the svy prefix
Post a Comment