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"
Accessing temporary file produced by -crtrees- in mataHi, I am trying to access a temporary file (matatrees) produced by the -crtrees- command in stata. …
Looping without removing local macroI am looping over multiple sheets in an Excel with some macros. Within the loop, I need to add a pre…
String variable with nonnumeric and numeric categoriesI have a string variable with 3 categories (0,1,NA). I would like to desiring the variable, and chan…
Computing spatial weights for Moran's I #spmap #shp2dta #spatwmatDear Statalist, I am doing district level analysis (640 districts) on various health related indica…
Generating weighted averages for subgroupsDear all, I am currently working with a country year panel dataset, which has the following variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Error "svy not recognised"
Post a Comment