I am working with DHS data and I did the following
gen weight = v005 / 1000000
clonevar psu_id = v021
egen strata_id = group(v024 v025)
svyset psu_id [pw=weight], strata(strata_id)
When I try to run simple descriptive analysis
svy: tab wbmi residence
I get this error:
command svy is unrecognized
I really need help with this, I could not find any help online.
Also, how do you compute prevalence in percentage with CI?
I am using stata 16
Related Posts with Error "svy not recognised"
Rank with a ConditionHello, I am stuck trying to rank a variable conditionally.....I understand rank is an egen function…
Help correlating between parameters across tasks and participantsHello everyone, This question may be rudimentary, however I haven't touched statistics for a very lo…
Difference between a classical DID and panel regression wrt interaction termDear Stata Members I have a question related to the interpretation and choosing the right model. Let…
Set baseline category of date variableI want to set the baseline category of a date variable. I thought of using fvset, see below. It does…
Multiple imputation estimate excluding some imputationsHi everyone, I would like to run the following code on my imputed dataset: Code: foreach var in $l…
Subscribe to:
Post Comments (Atom)
0 Response to Error "svy not recognised"
Post a Comment