How can I save the coefficient from the panel data regression and compare them using T-test?
For example, I have a regression
y = cons + b1*X1 + b2*X2 + error
How can I save b1 and b2 as two new variables and t-test them?
I tried
gen b1 = _b[X1]
gen b2 = _b[X2]
But this gives me two columns of the constant value.
Should there be any variation in the coefficient value?
If there is no variation, how can I compare these coefficients are different or not?
Thank you.
Related Posts with How to extract the regression coefficients in a model and compare if they are different significantly?
Forestplot using the metan commandHi, How can I create a forestplot using the metan command, in which the x range will be from 0.4 to…
ARDL ECM bounds testHi, I have selected optimal lags for an ARDL with two variables, plus impulse dummies (time series)…
Eurobarometer and only look at varibles in one countryHi! I have an assignment where I would like to use Eurobarometer. What I want to do is to only look…
Different coefficients with XTREG and REGHDFEDear all. My name is Carlos and I am working in a gravity model with 133 countries in a time period…
Summary table (specifically standard deviation) for ANOVA commandI am trying to get a summary table for my anova command (like the subcommand tabulate does when you …
Subscribe to:
Post Comments (Atom)
0 Response to How to extract the regression coefficients in a model and compare if they are different significantly?
Post a Comment