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
Margins after SEMHi, I am using SEM to estimate an autoregressive model: Code: sem (r9cesdnmv2 <- relwmo2v2c) …
beginner's question Dear Stata users, I have a data set with 3 variables. These variables can take values "1-10". How …
mediation analysis with multiple mediatorsDear Stata users, I am new to mediation analysis, so I am still learning but from what I read it se…
Specify default for string argument to Stata -program-I'm writing a Stata program, but having trouble specifying a default value for the string argument m…
stata16.1 updateI updated my stata, but a new problem occurred. After I entered the "help" command in the command wi…
Subscribe to:
Post Comments (Atom)
0 Response to Dissimilarity Index for Neighborhood Level Data
Post a Comment