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
Update to -dstat- available from SSCThanks to Kit Baum, the dstat package has been updated on SSC. To install the update, type Code: .…
Creating a PP plot from a linear regression model with sampling weightsI have a dataset that has sampling weights. I have fitted a multivariable linear regression model an…
How to skip the r(2000) error and continue with code in StataDear all, My search on this topic has not been satisfactory: https://www.statalist.org/forums/for…
How to calculate the number of portfolio firms that held onto a stock by stock and quarter?Dear all, Currently I have a database of funds holdings of a particular stock with the time series …
D-efficient design - DCREATE: Output of D-error and Fisher-Information MatrixHello together, I have recently applied the DCREATE function for a stated preference experiment in m…
Subscribe to:
Post Comments (Atom)
0 Response to Stack constant after running multiple regressions
Post a Comment