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?
How do you write a file path to use a file on Google Drive?I have a .dta file stored in a folder on Google Drive. The URL is https://drive.google.com/drive/fol…
Why do results of teffects versus psmatch2 differ so much?I use teffects and psmatch2 to check if they produce same results. They do not. Below is the code. W…
table that shows average number of appliances owned by household typeDear all, I am stuck with the following challenge: I have household data with the information: hous…
Panel data xtreg i.years - multiple years omittedHello, I am doing a research about the effect of gender diversity on firm performance with panel da…
Delete non-matching portions of string variableHi. I have a local (defined below). I also have a string variable Event. I want to only retain words…
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