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
Related Posts with 'for each' with svyset
Squared and linear term are both insignificantHello fellow Stata users, I'm encoutering some problems with potential non-linearity in a random ef…
Problem in using matched(merged) data in regression.I am new to STATA. I am working on DHS dataset. I have merged the men recode file with the individua…
XTLOGIT - Panel data - Loan part Level Data (mortgages) > help regarding iterations by adding a variableDear all, Currently performing logistics analysis on my dataset. The dataset contains loan parts ov…
Max function doesn't return the exact resultHello, I have a problem with the max() function. I have a dataset with several variables and one of…
Matched data for regressionI am new to STATA. I am working on DHS dataset. I have merged the men recode file with the individua…
Subscribe to:
Post Comments (Atom)
0 Response to 'for each' with svyset
Post a Comment