Announcement

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

  • How are states coded in PRAMS?

    I am using the PRAMS phase 8 national dataset. I am wondering if anyone knows the numbers associated with each state. I have moved it from a string variable to a long variable so that I can only use specific states, however, STATA is not recognizing the 2-letter state abbreviation. I think there have to be numbers associated with it. I have looked in the codebook but it only has the abbreviation listed. If anyone know the numbers associated with the states, like does 1=AK? This answer would be a great help!

  • #2
    Stata is not recognizing the 2-letter state abbreviation.
    It is not recognizing the 2-letter state abbreviation because you are not using the correct syntax. See #4 at https://www.statalist.org/forums/for...meric-variable, just posted a few moments ago for how to do this.

    I will add to that, that if you want to see what the correspondence between the numbers and the 2-letter abbreviations is, you can just run
    Code:
    label list staten
    to see it.

    Comment

    Working...
    X