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
How to show Wald, LR test, SSE or σ ̂u, θ and LR test in a regression output table?Good morning to the community Stata I would like to perform a comparison between Pooled OLS model, a…
Question about the command --localp-- @Nick CoxNick Cox Dear Nick, I have a question about your command --localp--.I want to plot two graphs in one…
Calculate the median and store it as an scalar.Good morning, I would like to calculate the median of a variable, let's call X and after store that…
Suest command: unable to generate scores error with different regression modelsDear all, I have a following problem. Firstly, I am calculating 2 regressions for for two groups of…
Creating a wave identifier - observations wrongly mappedHello, I am quite new to Stata and this is my first post and I would really appreciate any help. I …
Subscribe to:
Post Comments (Atom)
0 Response to Meaning of different code
Post a Comment