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
Combining surveys with distinct analytical weightsHi. I have a dataset which combine 14 household surveys in 14 countries. Each survey was conducted …
Interpretation of "/logs" in Stata17 output using mestregDear Stata users, Can someone please kindly explain in simple terms what the "/logs" output refers …
eivreg in rolling window setting (estimates not stored properly)Dear Statalist, I might be shooting my shot with this post but I want to implement the eivreg comma…
Plotting a bar graph with two y-axisdear colleagues I am trying two create a bar graph with two y-axis from my data and code below and a…
Adding and simplifying observations; from daily to weeklyHello to all. I´m kind of new in using STATA, and I´m having trouble figuring out how to merge obser…
Subscribe to:
Post Comments (Atom)
0 Response to Stack constant after running multiple regressions
Post a Comment