Announcement

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

  • Im new to Stata and wanted to see if doing this is possible?

    I have attached 2 images showing that my data is separated into two different subgroups but in the same column
    Is there a way to somehow create a new variable one for females life expectancy and one for males?
    Thanks
    Attached Files

  • #2
    Use

    Code:
    rename lifeexpectancy lifeexpectancy 
    split lifeexpectancy, parse(/) destring
    Please see https://www.statalist.org/forums/help#stata on how to give data examples (not as images).

    Comment


    • #3
      Thank you ! It worked

      Comment

      Working...
      X