Announcement

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

  • Problem using -estout command

    Hello, new to stata here.
    I have already installed the estout package, and am trying to generate a table summarizing three variables the variables efset_reading, efset_listening and writing_quality, grouped by cefr_n.
    Here's what I have done in the do-file about this:

    estpost efset_reading efset_listening writing_quality , by(cefr_n) ///
    stat(mean sd) columns(statistics) listwise

    esttab using CEFR_Tables.rtf, ///
    cells(mean(fmt(%5.2f)) sd(fmt(%5.2f))) ///
    main(mean) aux(sd) noobs nostar unstack replace

    And Stata constantly returns

    . estpost efset_reading efset_listening writing_quality , by(cefr_n) ///
    > stat(mean sd) columns(statistics) listwise
    invalid subcommand
    r(198);

    end of do-file

    I'm sort of wondering why.

  • #2
    Reading the help to estpost helps. It shows that it requires the specification of a (sub)command. "efset_reading" is a variable name, not a command.

    By the way: Please use code delimiters when showing commands or Stata output, see the Statalist FAQ (especially section 12).
    Last edited by Dirk Enzmann; 21 Oct 2023, 20:43.

    Comment


    • #3
      Thanks a lot. I will pay attention to the format next time.

      Comment

      Working...
      X