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