Announcement

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

  • Supress sd in dtable?

    Hi!

    How can I supress the sd in the output of this table?
    dtable Age BMI, by(Anemia)

    Is there also a way to supress sd in this code for the continous variables, but to keep the % for the categorical?
    dtable Age BMI i.smoking, by(Anemia)

  • #2
    Code:
    sysuse auto, clear
    dtable mpg i.rep78, by(foreign) continuous(mpg, statistics(mean))

    Comment


    • #3
      Thank you!

      Do you know if I can use two variables as "by"? And Is it possible to to have the column for "total" on the left?
      Total Iron deficient Anemia
      YES NO YES NO
      Age 16,6 16,6 16,6 16,6
      BMI 20.5 21.7 21.5 21.8
      And, is it possible to show only one value of a variable in the table? For example I have three possible values for “smoker” and I only want to show the daily smokers in my table. How do I do that?

      Smoking No 133 (73%) 209 (70%) 11 (79%) 328 (71%)
      Yes, sporadically 48 (26%) 85 (28%) 3 (21%) 129 (28%)
      Yes, daily 2 (1%) 6 (2%) 0 (0%) 8 (2%)
      Thank you again!

      Comment

      Working...
      X