Announcement

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

  • Code for percent of binary variable on another variable

    I have a variable i generated called govhelp (with values 1-10) of degrees people thing gov should help society. I am trying to find the mean and sd by gender breakdown with another variable sex (responders sex with values 1 and 2). I did tabulate and got percent values. But how do I find the mean and sd for just women? thanks!

  • #2
    Code:
    summ govhelp if sex == whichever_value_of_sex_corresponds_to_female

    Comment

    Working...
    X