

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


clear set mem 1000 use "/Users/hjs/Documents/Bush School Classes/Bush 632 2006/Bush 632 2006 lectures/B632_lecture_8/B632_scientist.dta"
Homework #1 (nested F-test) analysis
Now run the simple model
regress c4_31_tc c4_1_ide c4_3_env c5_3_age c4_7_un_ c4_14_co c4_25_io, beta
regress c4_31_tc c4_1_ide c4_3_env c5_3_age c4_7_un_ c4_14_co c4_25_io c4_32_ct, beta
These model results produce the information needed to conduct the nested-F test
Clearly the certainty variable is important. The mre certain the respondent, the higher the
expected temperature change.
vif hettest ovtest
The VIF and linearity test look ok -- but what gives with the hettest?
Homework #2 (dummy variable) analysis
tab c5_5a sum c5_3_age tab c5_4_gen tab c5_1a tab c5_6_exp
regress c5_5a c5_3_age c5_1a, beta
regress c5_5a c5_3_age c5_1a c5_4_gen, beta
gen gen_ed= c5_1a * c5_4_gen tab gen_ed c5_4_gen
regress c5_5a c5_3_age c5_1a c5_4_gen gen_ed, beta
Nope -- once the intercept is accounted for, education adds as much to womenn scientists'
salary as it does to men scientists' salaries.
But be cautious -- look at the VIF:
vif hettest ovtest
General diagnostic steps
Univariate plots --- focusing here on the dependent variable
histogram c4_31_tc pnorm c4_31_tc
graph matrix c4_31_tc c4_1_ide c4_3_env c5_3_age c4_32_ct
regress c4_31_tc c4_1_ide c4_3_env c5_3_age c4_7_un_ c4_14_co c4_25_io c4_32_ct, beta predict e, resid predict yhat
histogram e rvfplot
ovtest, rhs
acprplot c4_1_ide, mspline msopts (bands(7)) acprplot c4_3_env, mspline msopts (bands(7)) acprplot c5_3_age, mspline msopts (bands(7)) acprplot c4_7_un_, mspline msopts (bands(7)) acprplot c4_14_co, mspline msopts (bands(7)) acprplot c4_25_io, mspline msopts (bands(7)) acprplot c4_32_ct, mspline msopts (bands(7))
hettest
hettest c4_1_ide hettest c4_3_env hettest c5_3_age hettest c4_7_un_ hettest c4_14_co hettest c4_25_io hettest c4_32_ct
regress c4_31_tc c4_1_ide c4_3_env c5_3_age c4_7_un_ c4_14_co c4_25_io c4_32_ct, beta robust
regress c4_31_tc c4_1_ide c4_3_env c5_3_age c4_7_un_ c4_14_co c4_25_io c4_32_ct, beta
dfbeta graph box c4_1_ide c4_3_env, legend(cols(2)) graph box c5_3_age c4_7_un_ c4_14_c, legend(cols(3)) graph box c4_14_co c4_25_io c4_32_ct, legend(cols(3))