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
Generate a new variables, with the last two numbers of another variableHi there, In my databank, I have a variable that tells me about a departure time (the variable is n…
How to move x-axis from y=-0.8 to y=0?Dear all, Now I plot a twoway graph.I want to move the x-axis to zero.Here is my codes and graph.I …
Marginal contrasts with an interaction termHello, I'm attempting to do some post estimation on a model with an interaction term. I want to tes…
Panel Model with Longitudinal/Cohort Data and Fixed EffectsI am working on a project using the Young Lives longitudinal dataset, a longitudinal survey of child…
Help needed for data cleaningHi, I am using Stata version 16 and need some help in a task. Below is an example of my dataset: …
Subscribe to:
Post Comments (Atom)
0 Response to Dissimilarity Index for Neighborhood Level Data
Post a Comment