Hi All,
I am working with survey data and I am interested in exporting the % of respondents who answered yes to having exercised in the past week. From previous posts, I saw that -estout- is a good option for this and I managed to extract the whole output to a csv file:
svyset psu [pw = wgt], strata(v_stratum2)
estpost svy: tab current, percent
esttab . using "test.csv", b(2) se(2) nostar unstack replace
This export the % (se) for all answers (yes, no), total and N. Instead I would only like to pick the % for those who said yes as I am exporting this value for several years to look at changes over time. Is there a way to only specify I want to export the one value or is there another approach more suitable to achieve my goal.
Thanks!
I am working with survey data and I am interested in exporting the % of respondents who answered yes to having exercised in the past week. From previous posts, I saw that -estout- is a good option for this and I managed to extract the whole output to a csv file:
svyset psu [pw = wgt], strata(v_stratum2)
estpost svy: tab current, percent
esttab . using "test.csv", b(2) se(2) nostar unstack replace
This export the % (se) for all answers (yes, no), total and N. Instead I would only like to pick the % for those who said yes as I am exporting this value for several years to look at changes over time. Is there a way to only specify I want to export the one value or is there another approach more suitable to achieve my goal.
Thanks!
Comment