Dear Stata Users,
I would like to obtain beta (standardized) coefficients to compare the magnitude of the effects of independent variables.
We can obtain them in Stata by
reg y x1 x2 x3, beta
It is also possible to first standardize the variables for example by user-written center command and run the regression again.
I have two questions:
1. How should we obtain beta coefficients for panel data? Should I use the pooled mean and standard deviation to calculate standardized variables?
2. When there is another endogenous variable (and panel data) as below, how can I get the beta coefficients?
xtivreg2 y1 (y2=z1 z2) x1 x2 x3, fe bw(2) robust
Many thanks for any help in advance.
I would like to obtain beta (standardized) coefficients to compare the magnitude of the effects of independent variables.
We can obtain them in Stata by
reg y x1 x2 x3, beta
It is also possible to first standardize the variables for example by user-written center command and run the regression again.
I have two questions:
1. How should we obtain beta coefficients for panel data? Should I use the pooled mean and standard deviation to calculate standardized variables?
2. When there is another endogenous variable (and panel data) as below, how can I get the beta coefficients?
xtivreg2 y1 (y2=z1 z2) x1 x2 x3, fe bw(2) robust
Many thanks for any help in advance.
Comment