Saturday, October 24, 2009

Quick graph of coefficients by Nichols

sysuse nlsw88, clear
g coef=.
g t=tenure*12
qui forv i=30 (1) 100 {
reg wage grade if t<`i', r
replace coef=_b[grade] in `i'
}
g maxt=_n in 30/100
line coef maxt
tabdisp maxt, c(coef)

No comments:

Post a Comment