cd "/Users/jeffreygrogger/Dropbox/BGH/Current draft of paper/"
log using college_highschool.log,replace
pwd
use march-price-quantity-exp-all.dta

generate trend=year-1963
generate trend2=trend*trend
generate trend3=trend*trend*trend
gen trend4=trend^4
forvalues i=1970(1)2000 {
   gen y`i'=max(year-`i',0)
}

regress clghsg_all eu_lnclg 
regress clghsg_all eu_lnclg trend
regress clghsg_all eu_lnclg trend trend2
regress clghsg_all eu_lnclg trend trend2 trend3
regress clghsg_all eu_lnclg trend trend2 trend3 trend4 

forvalues i=1970(1)2000 {
   reg clghsg_all eu_lnclg trend y`i'
}


