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
Related Posts with Dissimilarity Index for Neighborhood Level Data
Plotting coefficient of two dependent variables from multiple modelsHello Statalist, I have multiple regression models with different dependent variables (say, v1 to v…
marginal effects command with pwcompareAfter running a xtlogit regression, I was trying to compare the effects of investing on the mental h…
Breusch-Pagan and Hausman Interpretation and Execution in Panel Data ModelsHi Guys, I am running a series of regressions on a panel of 36 countries over a 40 year period to d…
Creating a foreach loop for all string values of a variable.Hello, I am looking to code a foreach loop that completes a ustrlen() command for all string values…
Missing data Treatment in STATA - Zero or BlankDear Statalist, I tried to find the thread of missing data treatment in STATA but I could not find …
Subscribe to:
Post Comments (Atom)
0 Response to Dissimilarity Index for Neighborhood Level Data
Post a Comment