Closed ajdamico closed 8 months ago
can you run this in stata?
20161210 reproduce slides 9 and 13.txt
is this what you need?
the functions had dome incorrect matrix operations, but the last commits fixed them.
So try this:
# these calculations match pdf page 13
# http://www.ophi.org.uk/wp-content/uploads/Jindra_151109_OPHISeminar.pdf#page=13
svyafc(
~ wage + collgrad + hours ,
design = des_nlsw88 ,
cutoffs = list( 4, 'college grad' , 26 ) ,
k = 0.5 ,
g = 0 ,
dimw = c( 0.5 , 0.25 , 0.25 ) ,
na.rm = TRUE
)
svyafc(
~ wage + collgrad + hours ,
design = des_nlsw88 ,
cutoffs = list( 4, 'college grad' , 26 ) ,
k = 0.75 ,
g = 0 ,
dimw = c( 0.5 , 0.25 , 0.25 ) ,
na.rm = TRUE
)
svyafc(
~ wage + collgrad + hours ,
design = des_nlsw88 ,
cutoffs = list( 4, 'college grad' , 26 ) ,
k = 1 ,
g = 0 ,
dimw = c( 0.5 , 0.25 , 0.25 ) ,
na.rm = TRUE
)
Closing it!
thanks!
also might be useful for me to show in 6.1