/* 17.871 - PS3 Mike Sances Due: April 4, 2012 */ clear set more off cd "~/Dropbox/Spring 2012/17.871 - Political Science Laboratory/problem sets/ps3" use death * a * tab death bd, col tab death wv, col tab death bd if wv==0, col tab death bd if wv==1, col * b * reg death bd * c * reg death bd wv cor death bd wv cor * d * * see writeup * e * replace ac = (ac-1)/6 reg death bd wv ac fv vs v2 ms yv * f * * output to spreadsheet so we can calculate the prediction esttab using "coefs.csv", cells(b) * end *