Hello,
This might be an elementary question but I am struggling to find a way to create a summary statistic table that includes both continuous and binary variables. For binary variables, I realize that the summary command doesn't give much meaningful data. Is there a way for me to include proportions for one specific variable in the summary table while including means and sd for the rest? Or is there a way for me to include proportions for all variables with the summarize command? My code is as follows:
bys mam: eststo: quietly estpost summarize age_mig education speaks_english
esttab * using sum.tex, replace
Both mam and speaks_english are binary variables here. Instead of getting the mean of the binary variable indicating English-speaking ability, I wanted to see the proportion of those who speak english in each category of mam.
Any help would be greatly appreciated.
This might be an elementary question but I am struggling to find a way to create a summary statistic table that includes both continuous and binary variables. For binary variables, I realize that the summary command doesn't give much meaningful data. Is there a way for me to include proportions for one specific variable in the summary table while including means and sd for the rest? Or is there a way for me to include proportions for all variables with the summarize command? My code is as follows:
bys mam: eststo: quietly estpost summarize age_mig education speaks_english
esttab * using sum.tex, replace
Both mam and speaks_english are binary variables here. Instead of getting the mean of the binary variable indicating English-speaking ability, I wanted to see the proportion of those who speak english in each category of mam.
Any help would be greatly appreciated.
Comment