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?
Seperating a string into substrings (by upper case letters)Dear all,
I have to "cut a string into pieces". The "seperator" being a upper case letter.
e.g. va…
Categorical Variables Treatment at Regression AnalysisHello everyone, Hope you all feeling well. I need help in the following specific case in STATA:
Fir…
Applying Brent's method in STATAHello,
I wanted to apply Brent's theorem to a function generated in STATA, in order to invert it an…
Likelihood ratio test (LR) for identify the individual firm effectHello,
I want to test the joint significance of the individual effects in my fixed effect model and…
Troubleshooting X11 Forwarding after an SSH tunnel to an EC2 InstanceI am doing an SSH tunnel to an AWS EC2 instance with the eventual goal of getting a working GUI of S…
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