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
Graph Twoway with Two Y-Axes: Fine Tuning FormattingI am using Stata 15.1. My data come from a clinical trial of two diets (coded 1 and 2). Various meas…
merging datasetsDear All, I want to merge a dimension repeated cross section data with another two-repeated cross se…
Show the data in the graph Hi, friends, might I be able to show the values of the data in the graph? My initial command is, …
Options parsing in syntaxDear All, consider the following example code: Code: clear all version 16.0 program define foobar …
Implications of nrep(#) on mixlogit analysisDear All, I am analyzing discrete choice experiment data through the user-written command mixlogit.…
Subscribe to:
Post Comments (Atom)
0 Response to 'for each' with svyset
Post a Comment