Announcement

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

  • Command c is Unrecognized (Tabout)

    Hello,

    I was trying to create a table using tabout, but it kept showing that "command c is unrecognized r(199)". Does anyone know the reason?

    Here is my code:
    ssc install tabout, replace

    tabout ampreg asex using text9,
    c(mean a_cc_satisfaction) sum


    I use Stata/SE 14.0.
    I had looked at examples in page 25 (http://www.ianwatson.com.au/stata/tabout_tutorial.pdf), the author was also using c(mean xxx). I didn't know why it didn't work in my code.


    Thank you!




  • #2
    It looks like you have a line break after your comma. You'll notice that in the example there are 3 slashes at the end of the line. That tells Stata that the command continues onto the next line. Otherwise each line is assumed to be a new command.

    Try
    Code:
    tabout ampreg asex using text9, /// 
    c(mean a_cc_satisfaction) sum
    or

    Code:
    tabout ampreg asex using text9, c(mean a_cc_satisfaction) sum

    Comment


    • #3
      It worked! Thank you so much!

      Comment

      Working...
      X