Announcement

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

  • Dissimilarity Index for Neighborhood Level Data

    Hello,

    I need to calculate a racial dissimilarity index score for each of 52 neighborhoods in my study. For each neighborhood, I have the proportion of individuals who are black and the proportion white (scale of 0-1). I have tried using "seg" to calculate a dissimilarity index score for each neighborhood, but I only get a dissimilarity index score for the whole of my data, not one value for each neighborhood. The code I used was:

    seg paa15 pwhite15, d by(neighborhood) generate (d dissimindex)

    Can anyone help me figure out what I am doing wrong, and how to get the index score separately for each of my neighborhoods?

    Thank you!

    Melissa Sherry

  • #2
    ? abs(pblack - pwhite)/2

    Comment


    • #3
      Thank you so much! I didn't realize it was that simple! Really appreciate your prompt response!

      Comment

      Working...
      X