Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Estpost/Estout or other table creation with SVY data

    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:
    Code:
    estpost svy: mean varlist
    estout . using output.txt, replace cells("mean sd count")
    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

  • #2
    Hey Garret,

    did you figure out an answer to your question?

    Best,
    Felix

    Comment


    • #3
      Nope. I did discover in some of my other code that I'd figured out something close, but not quite what I was looking for:
      Code:
      eststo nameofestimates: estpost sum var1 var2 [aw=weightvar]
      esttab nameofestimates
      but I don't think that gets me the standard errors I want.

      Comment

      Working...
      X