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?
Data Set required for Economic Turmoil and ConflictHello I am looking for two dataset to create dummy variables from. 1. Regarding Economic Turmoil ex.…
(Country) fixed effects for bilateral trade data in gravity modelHello everyone, I'm currently working on a Gravity Model and I'm quite confused about how to proper…
New to stata need help.hi my final year project involves analyzing bicycle crashes in my state, im new to the software stat…
annual cross sectional regression versus panel regressionDear all In one article I have read that they estimate "average coefficients from ten annual (2005–2…
Merge IssueHello Everyone, Hope you are doing great. I am running my code, but right in the middle of my code …
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