Hello! I am interested in tabbing values for each value of one variable, with thirteen values.

vallist MUNICIPALITY
Dili Bobonaro Covalima Oecusse Liquica Ermera Ainaro Aileu Manufahi Viqueque Lautem Baucau ManatutoMUNICIPALITY is encoded with values 1-13.

I tried the following to no luck...

for num 1/13: svy: tab GAMMUAC if varname == x
levelsof MUNICIPALITY, local(levels)
. foreach l of local levels {
. svy: tab GAMMUAC if varname == `l'
. }
`var' if c_q10==1 & surveyround==1, ci obs deff
}So now I'm going municipality by municipality, which is laborious.

use "$analyses/TLFNS_Analyses.sav"
vallist MUNICIPALITY
drop if MUNICIPALITYst !=4
tab MUNICIPALITY

svyset CLUSTER

*Any children malnourished by MUAC, ALL
svy: tab GAMMUAC, ci obs deff