Hello,
I created interaction terms on a group of dummy variable taking value 1 if an individual has a disease and employment status in 3 categories like this:
. reg satis educ educsq marital_dum age agesq male i.diabetes##i.empl i.asthma##i.empl i.heart##i.empl 1.cancer##i.empl i.stroke##i.empl i.migraene##i.empl i.dementia
> ##i.empl i.depression##i.empl i.otherilln##i.empl i.hypertension##i.empl if age>25 & age<59 & svyyear==2009, robust
I would like to know how many observations I have in each group, so 1 diabetes&1 empl, 1, diabetes&2empl and so on. How can I do this in Stata?
Thanx a lot!
Chiara
I created interaction terms on a group of dummy variable taking value 1 if an individual has a disease and employment status in 3 categories like this:
. reg satis educ educsq marital_dum age agesq male i.diabetes##i.empl i.asthma##i.empl i.heart##i.empl 1.cancer##i.empl i.stroke##i.empl i.migraene##i.empl i.dementia
> ##i.empl i.depression##i.empl i.otherilln##i.empl i.hypertension##i.empl if age>25 & age<59 & svyyear==2009, robust
I would like to know how many observations I have in each group, so 1 diabetes&1 empl, 1, diabetes&2empl and so on. How can I do this in Stata?
Thanx a lot!
Chiara
Comment