I've got survey data and I'd like to export tables of simple summary stats (mean and standard error) of both binary and continuous variables. Unfortunately estpost and svy don't seem to play very nicely together. What I'd like to do is something like:
buy I get an invalid subcommand error because estpost doesn't seem to like the mean command. Tabulate is an option, one variable at a time, but that doesn't seem to result in what I'm looking for--what I'd like is a table a few columns wide with the mean, standard error, and sample size of each of the survey-weighted variables. It's fine if I have to do something different for the binary and continuous variable, but bonus points if the same command works for both.
Thanks,
Garret
Code:
estpost svy: mean varlist estout . using output.txt, replace cells("mean sd count")
Thanks,
Garret
Comment