Hello, I am trying to create some descriptive tables using estout and esttab (SSC). I am also using svy. My data is on a restricted server, and I'm not familiar with any default Stata datasets that contain survey weights, so I regretfully do not have any example data to show, but hopefully my predicament is straightforward.
I have a few variables that are dichotomous (for example, white, black, gender, etc.) and a few that are continuous (test score, age, etc.). My goal is to simply pull out their proportions/means and standard deviations.
For the dichotomous variables, the syntax seems simple enough:
However, for the continuous variables, estpost does not seem to be compatible with svy: mean.
This throws an error "invalid command".
Does anyone have any ideas for a workaround or other solution for storing values of these continuous variables alongside the dichotomous ones?
I have a few variables that are dichotomous (for example, white, black, gender, etc.) and a few that are continuous (test score, age, etc.). My goal is to simply pull out their proportions/means and standard deviations.
For the dichotomous variables, the syntax seems simple enough:
Code:
estpost svy: tab black eststo estpost svy: tab gender eststo esttab using "example.csv", cell("b se")
However, for the continuous variables, estpost does not seem to be compatible with svy: mean.
Code:
estpost svy: mean age
Does anyone have any ideas for a workaround or other solution for storing values of these continuous variables alongside the dichotomous ones?
Comment