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
0 Response to how to separate the result by region
Post a Comment