Simulation Code for "Homophily and Contagion Are Generically Confounded in Observational Social Network Studies"
The R code for the simulations in
Shalizi and Thomas, "Homophily and Contagion Are Generically Confounded in
Observational Social Network
Studies", arxiv:1004.4704