Hi Everyone,
I'm trying to run an analysis on a subpopulation of a sample, but I noticed that after I did these commands my variable's key automatically switched from frequency to proportion:
generate sample =0
replace sample=1 if Eldercarein3months!=.
tab sample
svyset cluster [pw=wt06], strata(strata)
svy, subpop(if sample==1): tab Eldercarein3months
This is a problem because I am hoping to run a chi2 on my variables, but I can't do that with a proportional key. Is there any way I can change it back to frequencies?
Thank you,
Evan
Related Posts with Proportion to Frequency using subpop commands
How to interpret when the sign of square term flips in fixed-effect model?Dear all, The square term of my core predictor is positive in OLS & GMM, but it is negative in …
Firms characteristics matching with announcement datesDear Statalists: I am doing a research on the determinants of securities offering choices (Season e…
Swapping male/female as base category in earnings regression modelIn an earnings regression (log linear, i.e. coefficient is an approximate % change), with gender why…
How to show sigma2 and gamma with b using estout command?HI would like to know how to show sigma2 and gamma with b using estout command. Usually, after esti…
Reshaping database long to wide and deleting duplicatesHello, Really grateful for any help with a data management question. My dataex is below: Basically…
Subscribe to:
Post Comments (Atom)
0 Response to Proportion to Frequency using subpop commands
Post a Comment