posts tagged “research”

Because I am a masochistperfectionist, I spent the better part my day making my R code more elegant. I figured out what to do with a simple loop, but wanted to write the code the right way. I always tell myself that the time I spend torturing myselfwriting the right code will help me down the line so I know how to do it next time. I will inevitably forget and spend the same four hours doing the same thing again. As a gift to my future self, I decided that I would write down what I learned because it will likely come up again (you're welcome, future Mike!).

My basic problem comes from the desire to match two lists item-by-item. Python contains a function, zip(), that does this. I want to figure out how to zip in R.

I hope that you will forgive the shameless self-promotion, but I recently published a paper in Sociological Science (yay open access!) that examined neighborhood racial change in New York, Los Angeles, Chicago, and Houston metropolitan neighborhoods with an amazingly talented colleague, Siri Warkentien.

We find mixed results related to future racial integration. On the negative side we find that recent estimates overestimate the stability of long-term racial integration. Previous studies don't really examine the pace of neighborhood change, which reveals many integrated neighborhoods are in fact resegregating.

On a more positive note, we find that some neighborhoods really do maintain multiethnic segregation over many decades. We call those neighborhoods ...