Log
Log
Log
___
____ ____ ____ ____(R)
/__ / ____/ / ____/
___/ / /___/ / /___/
Statistics/Data Analysis
2 . do "C:\Users\rdliv\Downloads\Tugas data3.do"
8 .
9 . //setting data panel
10 . xtset Firm Year
panel variable: Firm (strongly balanced)
time variable: Year, 1970 to 1984
delta: 1 unit
11 .
12 . *Fixed Effects
13 . xtreg TC Q PF LF , fe
F(3,81) = 355.25
corr(u_i, Xb) = -0.9045 Prob > F = 0.0000
sigma_u 748483
sigma_e 210422.78
rho .92675366 (fraction of variance due to u_i)
Friday March 18 07:16:2 2022 Page
F test that all u_i=0: F(5, 81) = 14.60 Prob > F = 0.0000
15 .
16 . *Random Effects
17 . xtreg TC Q PF LF , re
sigma_u 107411.2
sigma_e 210422.78
rho .206704 (fraction of variance due to u_i)
19 .
20 . *menyajikan tabel hasil estimasi berbagai model
21 . esttab ols fixed random using panel.rtf, replace se star (* 0.1 ** 0.05 *** 0.01) mtitle ("OLS"
(output written to panel.rtf)
22 .
23 . *Uji Hausman: memilih model
24 . xtreg TC Q PF LF , fe
F(3,81) = 355.25
corr(u_i, Xb) = -0.9045 Prob > F = 0.0000
sigma_u 748483
sigma_e 210422.78
rho .92675366 (fraction of variance due to u_i)
F test that all u_i=0: F(5, 81) = 14.60 Prob > F = 0.0000
Friday March 18 07:16:51 Page
26 .
27 . xtreg TC Q PF LF , re
sigma_u 107411.2
sigma_e 210422.78
rho .206704 (fraction of variance due to u_i)
29 .
30 . hausman fixed random
Note: the rank of the differenced variance matrix (2) does not equal the number of coefficients be
problems computing the test. Examine the output of your estimators for anything unexpecte
coefficients are on a similar scale.
Coefficients
(b) (B) (b-B) sqrt(diag(V_b-V_B))
fixed random Difference S.E.
Q 3319023 2288588 1030435 131808
PF .7730709 1.123591 -.3505204 .
LF -3797368 -3084994 -712373.5 .
chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= 60.87
Prob>chi2 = 0.0000
(V_b-V_B is not positive definite)
Friday March 18 07:16:51 Page
31 . //Jika H0 ditolak direkomendasikan memilih FE
32 .
33 . *Hasil Esttab
34 . eststo: xtreg TC Q PF LF , fe
F(3,81) = 355.25
corr(u_i, Xb) = -0.9045 Prob > F = 0.0000
sigma_u 748483
sigma_e 210422.78
rho .92675366 (fraction of variance due to u_i)
F test that all u_i=0: F(5, 81) = 14.60 Prob > F = 0.0000
(est1 stored)
35 . eststo: xtreg TC Q PF LF , re
sigma_u 107411.2
sigma_e 210422.78
rho .206704 (fraction of variance due to u_i)
(est2 stored)
Friday March 18 07:16:51 Page
36 . eststo: hausman fixed random
Note: the rank of the differenced variance matrix (2) does not equal the number of coefficients be
problems computing the test. Examine the output of your estimators for anything unexpecte
coefficients are on a similar scale.
Coefficients
(b) (B) (b-B) sqrt(diag(V_b-V_B))
fixed random Difference S.E.
Q 3319023 2288588 1030435 131808
PF .7730709 1.123591 -.3505204 .
LF -3797368 -3084994 -712373.5 .
chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= 60.87
Prob>chi2 = 0.0000
(V_b-V_B is not positive definite)
(est3 stored)
37 . esttab
N 90 90 90
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
38 . esttab, se r2
N 90 90 90
R-sq 0.929
39 .
end of do-file
40 . log close
name: <unnamed>
log: C:\Users\rdliv\Downloads\log.smcl
log type: smcl
closed on: 18 Mar 2022, 07:14:01