Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS, GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)

32 12 0
Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS, GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS, GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)Phân tích dữ liệu bảng trên STATA (POOL, FEM, REM, GLS GMM, ARDL, MG, PMG, PCSE, DFE, (Kiểm định Hausman, đa cộng tuyến, phương sai thay đổi, tự tương quan)

Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA KẾT QUẢ MINH HỌA CÁC BƯỚC PHÂN TÍCH DATA PANEL (DỮ LIỆU BẢNG) CÁC CÂU LỆNH NỀN TẢNG Ví dụ minh họa thể biến sau: encode countrycode,gen(code) xtset code year panel variable: time variable: delta: THỐNG KÊ - Biến phụ thuộc: a - Biến độc lập: b, c, d, e, f, g code (strongly balanced) year, 2011 to 2023 unit ĐĂNG KÝ HỌC TRỰC TUYẾN STATA QUA ZALO: 0905392489 ***TỪ CƠ BẢN ĐẾN NÂNG CAO*** ***CÓ ĐẦY ĐỦ TÀI LIỆU & DỮ LIỆU*** ***ĐA DẠNG CÁC LOẠI DỮ LIỆU*** sum a b c d e f g Variable | Obs Mean Std Dev Min Max -+ a | 1,482 4.914005 4.858816 0176453 28.20538 b | 1,482 15149.12 19806.96 194.8731 111968.4 c | 1,482 61.18398 20.2548 14.24 100 d | 1,482 29.02917 11.51638 9.435128 74.11302 e | 1,482 126.0217 84.43464 39.10697 782.1506 f | 1,482 6.670216 23.27249 -58.32288 449.0828 g | 1,482 3564339 2430777 0291346 TƯƠNG QUAN pwcorr a b c d e f g,sig | a b c d e f g -+ a | 1.0000 | | b | 0.7031 1.0000 | 0.0000 | c | 0.5798 0.5769 1.0000 | 0.0000 0.0000 | d | 0.2372 -0.0774 0.1350 1.0000 | 0.0000 0.0029 0.0000 | e | 0.0092 -0.2369 -0.3305 0.0787 1.0000 | 0.7223 0.0000 0.0000 0.0024 | f | 0.0760 0.0895 0.1249 -0.0987 -0.0338 1.0000 | 0.0034 0.0006 0.0000 0.0001 0.1933 | g | 0.6199 0.7910 0.5981 -0.1316 -0.2847 0.0859 1.0000 | 0.0000 0.0000 0.0000 0.0000 0.0000 0.0009 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 1/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA KIỂM ĐỊNH SỰ PHỤ THUỘC CHÉO (Dành cho Dữ liệu Bảng Panel Data) xtcdf a xtcd test on variables a Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | a + 16.984 0.000 13.00 + 0.06 0.58 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups Ta thấy giá trị P-Value = 0.000 = 0.00% < 5%: Có tồn phụ thuộc chéo Các biến giải thích tương tự xtcdf b xtcd test on variables b Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | b + 179.371 0.000 13.00 + 0.62 0.75 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups xtcdf c xtcd test on variables c Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | c + 155.706 0.000 13.00 + 0.54 0.89 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 2/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA xtcdf d xtcd test on variables d Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | d + 32.449 0.000 13.00 + 0.11 0.47 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups xtcdf e xtcd test on variables e Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | e + 100.277 0.000 13.00 + 0.35 0.64 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups xtcdf f xtcd test on variables f Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | f + 27.38 0.000 13.00 + 0.09 0.32 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups xtcdf g xtcd test on variables g Panelvar: code Timevar: year + Variable | CD-test p-value average joint T | mean ρ mean abs(ρ) | + + | g + 116.053 0.000 13.00 + 0.40 0.53 | + Notes: Under the null hypothesis of cross-section independence, CD ~ N(0,1) P-values close to zero indicate data are correlated across panel groups Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 3/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA Tham khảo cách kiểm định phụ thuộc chéo (Dành cho Dữ liệu chuỗi thời gian Time series Data) xtreg a b c d e f g Random-effects GLS regression Group variable: code Number of obs Number of groups = = 1,482 114 R-sq: within = 0.1742 between = 0.6474 overall = 0.6355 Obs per group: = avg = max = 13 13.0 13 corr(u_i, X) Wald chi2(6) Prob > chi2 = (assumed) = = 498.19 0.0000 -a | Coef Std Err z P>|z| [95% Conf Interval] -+ -b | 0001551 9.70e-06 16.00 0.000 0001361 0001742 c | 0380209 0091932 4.14 0.000 0200026 0560392 d | 0781911 0067266 11.62 0.000 0650072 0913749 e | 0070384 0008001 8.80 0.000 0054702 0086066 f | 0011894 0010654 1.12 0.264 -.0008988 0032777 g | 5588027 5384923 1.04 0.299 -.4966228 1.614228 _cons | -3.126465 6432633 -4.86 0.000 -4.387238 -1.865692 -+ -sigma_u | 2.8112184 sigma_e | 72655485 rho | 93738672 (fraction of variance due to u_i) - xtcsd,pesaran Pesaran's test of cross sectional independence = 5.398, Pr = 0.0000 Câu lệnh kiểm định phụ thuộc chéo xtcsd,pesaran thực sau kết mơ hình xtreg a b c d e f g Kết kiểm định Pesaran cho thấy giá trị Pr = 0.0000 = 0.00% < 5%: Điều cho thấy có phụ thuộc chéo biến Do đó, liệu cần áp dụng kiểm định tính dừng hệ thứ Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 4/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA KIỂM ĐỊNH TÍNH DỪNG 5.1 Kiểm định tính dừng hệ thứ xtunitroot llc a Levin-Lin-Chu unit-root test for a -Ho: Panels contain unit roots Ha: Panels are stationary AR parameter: Common Panel means: Included Time trend: Not included Number of panels = Number of periods = 114 13 Asymptotics: N/T -> ADF regressions: lag LR variance: Bartlett kernel, 7.00 lags average (chosen by LLC) -Statistic p-value -Unadjusted t -6.3379 Adjusted t* -0.4551 0.3245 -Ta thấy P-Value = 0.3245 = 32,45% > 5%: Nên biến a không dừng, lấy sai phân bậc thực kiểm định tính dừng sai phân bậc biến a gen da=d.a (114 missing values generated) xtunitroot llc da Levin-Lin-Chu unit-root test for da Ho: Panels contain unit roots Ha: Panels are stationary AR parameter: Common Panel means: Included Time trend: Not included Number of panels = Number of periods = 114 12 Asymptotics: N/T -> ADF regressions: lag LR variance: Bartlett kernel, 7.00 lags average (chosen by LLC) -Statistic p-value -Unadjusted t -31.0850 Adjusted t* -17.1057 0.0000 -Ta thấy P-Value = 0.0000 = 0.00% < 5%: Nên biến a dừng Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 5/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA Tương tự cho biến khác Ngồi kiểm định llc thay kiểm định khác, tham khảo đây: Help xtuniroot Levin-Lin-Chu test xtunitroot llc varname [if] [in] [, LLC_options] Harris-Tzavalis test xtunitroot ht varname [if] [in] [, HT_options] Breitung test xtunitroot breitung varname [if] [in] [, Breitung_options] Im-Pesaran-Shin test xtunitroot ips varname [if] [in] [, IPS_options] Fisher-type tests (combining p-values) xtunitroot fisher varname [if] [in], {dfuller | pperron} lags(#) [Fisher_options] Hadri Lagrange multiplier stationarity test xtunitroot hadri varname [if] [in] [, Hadri_options] 5.2 Kiểm định tính dừng hệ thứ (Dữ liệu minh họa chọn loại này) xtcips a,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for a Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test H0 (homogeneous non-stationary): bi = for all i CIPS = -0.901 N,T = (114,13) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 6/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA Ta thấy giá trị trị tuyệt đối CIPS 0.901 nhỏ giá trị trị tuyệt đối Critical Value at 10%; 5%; 1% (đã lấy giá trị tuyệt đối tương ứng 1.98; 2.04; 2.16) nên biến a khơng dừng Do đó, cần lấy sai phân bậc & kiểm định tính dừng biến sai phân bậc biến a gen da=d.a (114 missing values generated) xtcips da,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for da Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -3.184 N,T = (114,12) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 -Ta thấy giá trị trị tuyệt đối CIPS 3.184 lớn giá trị trị tuyệt đối Critical Value at 10%; 5%; 1% (đã lấy giá trị tuyệt đối tương ứng 1.98; 2.04; 2.16) nên biến sai phân bậc biến a dừng Do đó, phân tích mơ hình hồi quy biến da (biến sai phân bậc biến a đưa vào chạy mô hình thay cho biến a) xtcips b,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for b Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 7/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA CIPS* = -0.949 N,T = (114,13) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 - gen db=d.b (114 missing values generated) xtcips db,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for D.b Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -2.343 N,T = (114,12) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 - xtcips c,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for c Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -0.349 N,T = (114,13) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 8/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA gen dc=d.c (114 missing values generated) xtcips dc,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for D.c Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -0.904 N,T = (114,12) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 - gen ddc=d.dc (228 missing values generated) xtcips ddc,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for ddc Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -2.690 N,T = (114,11) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 9/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA xtcips d,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for d Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -1.361 N,T = (114,13) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 - gen dd=d.d (114 missing values generated) xtcips dd,bglags(1) maxlags(1) Pesaran Panel Unit Root Test with cross-sectional and first difference mean included for dd Deterministics chosen: constant Dynamics: lags criterion decision General to Particular based on F joint test Individual ti were truncated during the aggregation process H0 (homogeneous non-stationary): bi = for all i CIPS* = -2.954 N,T = (114,12) -| 10% 5% 1% -+ -Critical values at | -1.98 -2.04 -2.16 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 10/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA hausman fe re Note: the rank of the differenced variance matrix (5) does not equal the number of coefficients being tested (6); be sure this is what you expect, or there may be problems computing the test Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale Coefficients -| (b) (B) (b-B) sqrt(diag(V_b-V_B)) | fe re Difference S.E -+ -db | 0001635 0001519 0000116 6.36e-06 ddc | -.1470063 -.1203368 -.0266695 0514267 dd | 0049415 0081669 -.0032254 0010309 e | 0023624 000737 0016254 0005867 f | 0009701 0000776 0008925 0004349 dg | 3645751 5680972 -.2035221 1017435 -b = consistent under Ho and Ha; obtained from xtreg B = inconsistent under Ha, efficient under Ho; obtained from xtreg Test: Ho: difference in coefficients not systematic chi2(5) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 21.73 Prob>chi2 = 0.0006 xtreg da db ddc dd e f dg,fe Fixed-effects (within) regression Group variable: code Number of obs Number of groups = = 1,254 114 R-sq: within = 0.0913 between = 0.0717 overall = 0.0582 Obs per group: = avg = max = 11 11.0 11 corr(u_i, Xb) F(6,1134) Prob > F = -0.5386 = = 18.98 0.0000 -da | Coef Std Err t P>|t| [95% Conf Interval] -+ -db | 0001635 0000176 9.29 0.000 000129 000198 ddc | -.1470063 1809546 -0.81 0.417 -.5020498 2080372 dd | 0049415 0062131 0.80 0.427 -.0072489 017132 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 18/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA e | 0023624 0006152 3.84 0.000 0011554 0035693 f | 0009701 000691 1.40 0.161 -.0003857 0023259 dg | 3645751 5366237 0.68 0.497 -.6883117 1.417462 _cons | -.3486181 0767237 -4.54 0.000 -.4991544 -.1980817 -+ -sigma_u | 21377184 sigma_e | 438324 rho | 1921503 (fraction of variance due to u_i) -F test that all u_i=0: F(113, 1134) = 1.56 Prob > F = 0.0003 xttest3 Modified Wald test for groupwise heteroskedasticity in fixed effect regression model H0: sigma(i)^2 = sigma^2 for all i chi2 (114) = Prob>chi2 = 1.4e+08 0.0000 xtreg da db ddc dd e f dg,fe Fixed-effects (within) regression Group variable: code Number of obs Number of groups = = 1,254 114 R-sq: within = 0.0913 between = 0.0717 overall = 0.0582 Obs per group: = avg = max = 11 11.0 11 F(6,1134) = 18.98 corr(u_i, Xb) = -0.5386 Prob > F = 0.0000 -da | Coef Std Err t P>|t| [95% Conf Interval] -+ -db | 0001635 0000176 9.29 0.000 000129 000198 ddc | -.1470063 1809546 -0.81 0.417 -.5020498 2080372 dd | 0049415 0062131 0.80 0.427 -.0072489 017132 e | 0023624 0006152 3.84 0.000 0011554 0035693 f | 0009701 000691 1.40 0.161 -.0003857 0023259 dg | 3645751 5366237 0.68 0.497 -.6883117 1.417462 _cons | -.3486181 0767237 -4.54 0.000 -.4991544 -.1980817 -+ -sigma_u | 21377184 sigma_e | 438324 rho | 1921503 (fraction of variance due to u_i) -F test that all u_i=0: F(113, 1134) = 1.56 Prob > F = 0.0003 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 19/32 Liên hệ Zalo 24/7: 0905392489 Phân tích SPSS 0905392489 (Youtube) Hướng dẫn Phân tích STATA xtserial da db ddc dd e f dg Wooldridge test for autocorrelation in panel data H0: no first-order autocorrelation F( 1, 113) = 0.540 Prob > F = 0.4639 xtgls da db ddc dd e f dg,panels(h) Cross-sectional time-series FGLS regression Coefficients: Panels: Correlation: generalized least squares heteroskedastic no autocorrelation Estimated covariances = Estimated autocorrelations = Estimated coefficients = 114 Number of obs = 1,254 Number of groups = 114 Time periods = 11 Wald chi2(6) = 127.80 Prob > chi2 = 0.0000 -da | Coef Std Err z P>|z| [95% Conf Interval] -+ -db | 0001437 0000137 10.46 0.000 0001168 0001706 ddc | -.0543786 0552563 -0.98 0.325 -.1626789 0539218 dd | 0021654 0018894 1.15 0.252 -.0015378 0058686 e | 0001268 000053 2.39 0.017 0000229 0002306 f | -.0004513 0002924 -1.54 0.123 -.0010244 0001217 dg | 3358597 2008047 1.67 0.094 -.0577103 7294297 _cons | -.0174819 0080504 -2.17 0.030 -.0332604 -.0017034 - est sto gls esttab pool fe re gls,r2 star(* 0.1 ** 0.05 *** 0.01) brackets nogap -(1) (2) (3) (4) da da da da -db 0.000148*** 0.000164*** 0.000152*** 0.000144*** [9.09] [9.29] [9.26] [10.46] ddc -0.113 -0.147 -0.120 -0.0544 [-0.65] [-0.81] [-0.69] [-0.98] dd 0.00940 0.00494 0.00817 0.00217 [1.52] [0.80] [1.33] [1.15] e 0.000685*** 0.00236*** 0.000737*** 0.000127** [4.28] [3.84] [3.99] [2.39] f -0.000126 0.000970 0.0000776 -0.000451 Phân tích SPSS 0905392489 (Youtube) | Đào tạo trực tuyến (Online) SPSS AMOS STATA | Trang 20/32

Ngày đăng: 29/05/2023, 10:04

Tài liệu cùng người dùng

Tài liệu liên quan