1. Create the dummies and estimate
levelsof year, local(time)
foreach t of local time {
local y_rr = `t' - 1975
gen intra_nafta`t' = yr`y_rr' * intra_nafta
gen imp_nafta_rest`t' = yr`y_rr' * imp_nafta_rest
}
xtreg lnV lncGDP lnpGDP lnD yr* intra_nafta* imp_nafta_rest*, fe vce(robust)
Who can help me explain how y_rr is defined in the above code? What meaning of yr`y_rr' * intra_nafta ? Thank you!
Related Posts with Meaning of different code
Replacing ID on different dataHello, I am having 2 different data file from excel. This is data A (general data) Code: . list id…
Heckman correctionHello, is there a possibility to include an if condition in the Heckman correction? I am currently…
Diff-in-Diff at district level with a Pseudo PanelDear all, I currently try to carry out a diff-in-diff analysis under the use of two cross-sectional…
IV vs OLS standard errorsHi, I am running an IV-regression and get smaller standard errors than from the OLS-regression (usin…
Panel-data mixed logit: repeated choices under different circumstancesHi Statalist, Using the panel-data mixed logit choice model – cmxtmixlogit – one can take into acco…
Subscribe to:
Post Comments (Atom)
0 Response to Meaning of different code
Post a Comment