I have a number of variables. the variables are insurance types, a region of address, and another 5 years age group.
I want to generate a mean of the holder of specific insurance types detailed separated for each region then separated again for each age group.
I have tried this:
foreach var in Employer_Insurance Private_Insurance Other_Insurance {
mean `var' [iw=weight_value/1000000]
mean `var' [iw=weight_value/1000000], over(age_group)}
But I don't know how to separate the result by region of address. please fix my codes.
Thanks in advance for any help
Henggar
Related Posts with how to separate the result by region
Clarification on merge commandI am trying to merge two dataset- one dta file consist of 8576 unique observation and another dta fi…
How to analyze data for repeated measures?Hi everyone Could you please share your recommendations, regarding the questions at the end of this …
Drop embedded observationsHello, I have a household panel dataset with some observations being fully captured by other observa…
Variable gets omittedDear Forum, I have the following command: Code: reg birthrate ibn.incomegroup, noconstant Now I w…
identifying the predictors of Cataract progressionsDear Researchers, I have asked this question before, but it seems that I didn’t get the answer so f…
Subscribe to:
Post Comments (Atom)
0 Response to how to separate the result by region
Post a Comment