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
Determining the explanatory power of an interaction termHi everyone, I'm trying to fill a table with each line representing the explanatory power of a part…
How to inform readers the context of hierarchical logistic regression that removes significant main effectsHello all, I'm examining a hypothetical scenario to determine how living alone and the mechanism of…
Generating dummy observations to balance a panelI hope this request makes sense, as it is just to aid in my estimation. Below is the dataex of a dum…
PPML - generating a time dependent thresholdDear Stata community, I am working with a gravity model and what to cluster my observations dependi…
Dummy for export-starters and non-exporters in the period just before the export-starter enters the export marketI want to create a dummy for export starters to non-exporters in the years before entry. How can I c…
Subscribe to:
Post Comments (Atom)
0 Response to Proportion to Frequency using subpop commands
Post a Comment