Announcement

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

  • Splitting data based on a given condition.

    I am new to Stata.I want to split my dataset into 4 parts based on a condition on another column like:
    1)High school dropout if var<=11
    2)High school graduate if var=12
    3)College participant if var between 13 and 15
    4)4-year college graduate (16 or more)
    Find frequencies for each group

    How do I go about doing this?Any help would be appreciated

  • #2
    This would more likely be described as "creating a new categorical variable from a continuous variable." See -help recode-, and look at the examples, which I think you'll find useful and pretty transparent. "Splitting" has a different meaning in Stata, so that would not help you.

    Comment

    Working...
    X