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
Dummy-Variable for half yearly observationsHello, my dataset contains half yearly data from 2000 - 2018 which is written as 2000h1 or 2000h2. …
Creating dictionary for txt fileHello, I have a dataset in .txt that I have to import in Stata. I don't have a dictionary file, but…
graph bar with both exclude0 and stack - any way to both stack and control the y axis range?Hello Statalist, I'd like to use graph bar with both its exclude0 and stack options. In other words…
Model selection when we implement multiple imputation (MI) by MICEDear Stata team, I've carried out multiple imputation for 3 covariate variables and 5 outcome varia…
Regression designHello, I'm trying to run a regression to test whether firms’ capital structure changes more during t…
Subscribe to:
Post Comments (Atom)
0 Response to Dissimilarity Index for Neighborhood Level Data
Post a Comment