Dear all,
Please kindly help. I would like to report the constants clearly after running my regressions.
Below is my code and the attached (Array ) describes what I have and what I want. I am struggling but failed.
I appreciate your time.
cap log close
cap clear
eststo clear
use "building", clear
sort weight1 MT
xtset weight1 MT
* dependent vars
local dvar1 y1
local dvar2 y2
local dvar3 y3
* indepedent vars
local ivars1 x1
local ivars2 x1 x2 x3
local ivars3 x1 x2 x3 x4
forv d=1/3 {
forv i=1/3 {
foreach var of varlist `dvar`d'' {
eststo: newey `var' `ivars`i'', lag(3)
}
}
}
esttab _all using Table.rtf, replace
Best regards,
Chris
Related Posts with Stack constant after running multiple regressions
Error r(3900) while running Latent Class AnalysisHello STATALIST group Can anyone tell me why I am getting the following error while running Latent…
DID when Treatment affects all entities simultaneously, but varies over time/placeHey everyone! I hope I am able in my first posting to not sound too naive in my question For my th…
xtdcce2 and xtmg commandsDear all I want to test the relationship between my 3 dependent variables and 8 independent variabl…
Percentile Calculation Panel DataHi I have a panel data set from 1987Q1 to 2016Q4. I want to assign each observation using deciles. B…
Stata - reproducible research (in 2021)Stata's update to 17 is impressive and tempting (not least because of increased speed and improved i…
Subscribe to:
Post Comments (Atom)
0 Response to Stack constant after running multiple regressions
Post a Comment