3 ms·
I'm working on reproducing the graph with the data available from the NYT, but I'm not sure on one or two details of the author's method. If someone sees it, pl
by carbocation 14y ago
I'm working on reproducing the graph with the data available from the NYT, but I'm not sure on one or two details of the author's method. If someone sees it, please let me know! Things I can't tell so far:
1) How is a "teacher" defined? Just(hash firstname lastname)? If so...
2) When a teacher teaches multiple subjects per year, which one is chosen? Or are they both represented, so that "teacher" actually means (hash firstname lastname subject)?
- tmoertel 14y agoIf you want to see how I recreated the OP's graph, just fork my GitHub repo. It has R code and the data sets, too: https://github.com/tmoertel/nyva-cursory https://github.com/tmoertel/nyva-cursory Anyway, here are the variables I used to identify comparable observations: ## these variables identify comparable teacher observations id_vars <- c("subject", "grade", "dbn", "teacher_name_first_1", "teacher_name_last_1") So I used subject, grade, school (identified by dbn) and the teacher's first and last names.
- carbocation 14y agoNice, thanks for sharing. I used the same variables with the exception of dbn; my code is here https://gist.github.com/4652968 https://gist.github.com/4652968 (I later started applying filters such as 4th-grade teachers only, etc., which is reflected in the gist.) I was pretty curious how the author specifically munged his data, since then we could put to rest the speculation about the degree of correlation.