Announcement

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

  • Basic table of means

    Hello,

    I am trying to re-create a table like this, but having difficulty with the command to do it.
    I basically want to examine the mean of the variable "LOP" by sex, and then within each sex, by age group
    My variables are
    lop
    sex
    age_10

    The table I am trying to create looks like this:

    Click image for larger version

Name:	Screen Shot 2018-07-01 at 2.15.58 PM.png
Views:	1
Size:	44.6 KB
ID:	1451400


    Thanks for any advice!



  • #2
    it is easier to test code if you follow the advice in the FAQ and post via -dataex- and within CODE delimiters; meanwhile, try this:
    Code:
    table age sex, c(freq mean lop sd lop) row
    for more on this command, see
    Code:
    help table

    Comment

    Working...
    X