I wonder if there is any difference between these two codes #1 & #2. I run #2 the result is fine though I have not run #1 because I don't know what "naf2" is. Is there anyone of statists who could assist me to read the first code? I mean what would look like "di "********** INDUSTRIA `industry' " in practice?
Code:
#1
local ind2 "17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36"
foreach industry of local ind2 {
di "********** INDUSTRIA `industry' "
opreg lntotal_production if naf2==`industry', exit(exit) state(lnk) proxy(lnInvtot) free(lnmaterials lnemp_tot) cvars(trend) vce(bootstrap, seed(1) reps(50))
predict aux_op
replace tfp_op_output=ln(aux_op)
drop aux_op
#2
opreg lntotal_production, exit(exit) state(lnk) proxy(lnInvtot) free(lnmaterials lnemp_tot) cvars(trend) vce(bootstrap, seed(1) reps(50))
predict aux_op
replace tfp_op_output=ln(aux_op)
drop aux_opParis
0 Response to opreg with If
Post a Comment