Announcement

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

  • tabstat unrecognized command: s

    Dear All,

    Thank you for reading and I met one problem below:

    global x "gdpper edu real_i rategap ss depend bank_w"
    reg consume $x
    ereturn list
    gen yes=e(sample)
    label var yes

    global v1 "netsaving domsaving consume"
    global v2 "gdpper edu real_i rategap ss depend bank_w"
    global v3 "rujia sex_freq sex_unsafe sex_age"
    global v $v1 $v2 $v3

    tabstat $v if yes==1,
    s(mean p50 sd min max N)
    format(%6.3f) column(statis)

    stata shows that
    unrecognized command: s
    r(199);

    end of do-file

    r(199);


    Actually, I just want to use tabstat to describe my variables. I do not know why it does not work.

    Thanks a lot.





  • #2
    Code:
    tabstat $v if yes==1, s(mean p50 sd min max N)format(%6.3f) column(statis)
    all is one command.

    Comment


    • #3
      Thank you Nick. All the best!

      Comment

      Working...
      X