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?
weighted random effects model with clustered SEHello: I want to estimated a weighted RE model with clustered standard errors. The xtreg does not a…
Reformatting a monthly date variableI have a date variable in month-year format that looks like "2012m8". I got to that format using the…
How can I select a study population matching a published prospective trial?Dear Experts, I have a very large population database of patients who have been treated for localiz…
Graph Scale and Text when using Graph Combine CommandI want to combine graphs, but when I do, the formatting is almost always problematic. If I have thr…
Estimate store using lincomHi everyone, I hope you are doing great. I am trying to store the results of a lincom to later use …
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