Minh họa các câu lệnh phân tích dữ liệu Likert trên STATA Các nội dung trao đổi (1) Nhập liệu, Các câu lệnh cơ bản, Thống kê(2) Đánh giá độ tin cậy Cronbach’s alpha(3) Phân tích nhân tố EFA(4) Mô hình hồi quy tuyến tính OLS(Đa cộng tuyến, Phương sai thay đổi, Sự tự tương quan)(5) Mô hình Biến trung gian (Mediator Model) Mô hình Biến điều tiết (Moderator Model) (Nâng cao)
Trang 1KẾT QUẢ MINH HỌA CÁC BƯỚC PHÂN TÍCH INTERVAL SCALE (LIKERT)
1 CÂU LỆNH NỀN TẢNG
tsset STT
time variable: STT, 1 to 192
delta: 1 unit
2 MÃ HÓA & THỐNG KÊ
CÁC BIẾN NOMINAL & ORDINAL
label define GTINHMH 1 "Nam" 2 "Nu"
label values GTINH GTINHMH
label define TDOMH 1 "Trung cap" 2 "Cao dang" 3 "Dai hoc" 4 "Sau dai hoc"
label values TDO TDOMH
label values DTUOI DTUOIMH
Ví dụ minh họa này được thể hiện bởi các nhân tố sau:
- Nhân tố phụ thuộc: F
- Nhân tố độc lập: A, B, C, D, E
ĐĂ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***
Trang 2tab DTUOI
DTUOI | Freq Percent Cum
-+ -
< 25 tuoi | 35 18.23 18.23 Tu 25 - 35 tuoi | 49 25.52 43.75 Từ 36 - 45 tuoi | 72 37.50 81.25 > 45 tuoi | 36 18.75 100.00 -+ -
Total | 192 100.00 label define TNHAPMH 1 "< 5 trieu VND/thang" 2 "Tu 5 - 10 trieu VND/thang" 3 "> 10 trieu VND/thang" label values TNHAP TNHAPMH tab TNHAP TNHAP | Freq Percent Cum -+ -
< 5 trieu VND/thang | 16 8.33 8.33 Tu 5 - 10 trieu VND/thang | 103 53.65 61.98 > 10 trieu VND/thang | 73 38.02 100.00 -+ -
Total | 192 100.00 3 THỐNG KÊ CÁC BIẾN TRONG MÔ HÌNH sum A1 A2 A3 A4 A5 Variable | Obs Mean Std Dev Min Max -+ -
A1 | 192 4.151042 .8938996 3 5
A2 | 192 4.010417 837533 2 5
A3 | 192 4.010417 837533 2 5
A4 | 192 4.114583 .7431332 2 5
A5 | 192 4.036458 .7334377 2 5
sum B1 B2 B3 B4 Variable | Obs Mean Std Dev Min Max -+ -
B1 | 192 4.020833 .8119418 1 5
B2 | 192 3.833333 1.113145 1 5
B3 | 192 3.9375 .9413425 1 5
B4 | 192 4.041667 .8489805 1 5
Trang 3sum C1 C2 C3 C4
Variable | Obs Mean Std Dev Min Max
-+ -
C1 | 192 3.598958 1.068639 1 5
C2 | 192 3.770833 .9918956 1 5
C3 | 192 3.802083 .8576089 1 5
C4 | 192 3.598958 1.028698 1 5
sum D1 D2 D3 Variable | Obs Mean Std Dev Min Max -+ -
D1 | 192 3.890625 .9508969 1 5
D2 | 192 4.03125 1.017678 1 5
D3 | 192 3.479167 .9320266 1 5
sum E1 E2 E3 E4 Variable | Obs Mean Std Dev Min Max -+ -
E1 | 192 3.973958 .9120192 1 5
E2 | 192 3.90625 .7870433 2 5
E3 | 192 3.9375 .9245064 1 5
E4 | 192 4 .8979325 1 5
sum F1 F2 F3 F4 F5 Variable | Obs Mean Std Dev Min Max -+ -
F1 | 192 3.661458 900828 2 5
F2 | 192 3.973958 .8648754 2 5
F3 | 192 3.84375 913289 1 5
F4 | 192 3.744792 .8515302 2 5
F5 | 192 4.114583 .8667178 2 5
Trang 44 ĐÁNH GIÁ ĐỘ TIN CẬY CRONBACH’S ALPHA
alpha A1 A2 A3 A4 A5,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - A1 | 192 + 0.7466 0.5989 .5336587 0.9597 A2 | 192 + 0.9391 0.8991 .4460851 0.8985 A3 | 192 + 0.9391 0.8991 .4460851 0.8985 A4 | 192 + 0.8927 0.8356 .4949144 0.9124 A5 | 192 + 0.9360 0.9011 .4787031 0.9012 -+ - Test scale | .4798893 0.9307 -
alpha B1 B2 B3 B4,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - B1 | 192 + 0.9085 0.8462 .6559046 0.8705 B2 | 192 + 0.7902 0.5959 .6921175 0.9704 B3 | 192 + 0.9735 0.9491 .5337405 0.8252 B4 | 192 + 0.9258 0.8709 .6228912 0.8596 -+ - Test scale | .6261635 0.9092 -
alpha C1 C2 C3 C4,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - C1 | 192 + 0.9430 0.8859 57488 0.8309 C2 | 192 + 0.8999 0.8157 .6555683 0.8589 C3 | 192 + 0.8063 0.6873 .8059828 0.9045 C4 | 192 + 0.8611 0.7435 .6883181 0.8861 -+ - Test scale | .6811873 0.9012 -
Trang 5alpha D1 D2 D3,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - D1 | 192 + 0.8353 0.6186 414267 0.6063 D2 | 192 + 0.8418 0.6059 398233 0.6200 D3 | 192 + 0.7635 0.4961 .5741165 0.7436 -+ - Test scale | .4622055 0.7453 -
alpha E1 E2 E3 E4,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - E1 | 192 + 0.9731 0.9489 .5582461 0.8924 E2 | 192 + 0.7524 0.6125 .8074825 0.9904 E3 | 192 + 0.9734 0.9490 .5524106 0.8923 E4 | 192 + 0.9703 0.9443 .5673538 0.8942 -+ - Test scale | .6213733 0.9407 -
alpha F1 F2 F3 F4 F5,item
Test scale = mean(unstandardized items)
average
item-test item-rest interitem
Item | Obs Sign correlation correlation covariance alpha -+ - F1 | 192 + 0.8435 0.7451 .4850885 0.8741 F2 | 192 + 0.8813 0.8078 .4730357 0.8602 F3 | 192 + 0.8059 0.6865 .5035586 0.8875 F4 | 192 + 0.8534 0.7671 491124 0.8694 F5 | 192 + 0.8253 0.7231 502486 0.8788 -+ - Test scale | .4910586 0.8967 -
Trang 65a PHÂN TÍCH NHÂN TỐ KHÁM PHÁ EFA CÁC BIẾN ĐỘC LẬP
Factor analysis/correlation Number of obs = 192
Method: principal-component factors Retained factors = 5
Rotation: (unrotated) Number of params = 90
Trang 7Factor loadings (pattern matrix) and unique variances
- Variable | Factor1 Factor2 Factor3 Factor4 Factor5 | Uniqueness -+ -+ - A1 | 0.5206 | 0.4302 A2 | 0.6576 0.5428 | 0.1013 A3 | 0.6479 0.5412 | 0.1054 A4 | 0.5720 -0.5228 | 0.1722 A5 | 0.6750 | 0.0976 B1 | 0.5330 0.5899 | 0.1254 B2 | | 0.4338 B3 | 0.5996 0.5635 | 0.0370 B4 | 0.5652 0.5924 | 0.1039 C1 | 0.6116 | 0.1101 C2 | 0.5487 -0.5229 | 0.1813 C3 | 0.6597 | 0.3172 C4 | 0.6025 | 0.2522 D1 | -0.5749 | 0.2564 D2 | 0.5209 -0.5848 | 0.2451 D3 | 0.6863 | 0.3361 E1 | 0.5078 0.6289 | 0.0470 E2 | | 0.4291 E3 | 0.5182 0.6483 | 0.0487 E4 | 0.6296 | 0.0551 - (blanks represent abs(loading)<.5)
rotate,kaiser blanks(0.5)
Factor analysis/correlation Number of obs = 192
Method: principal-component factors Retained factors = 5
Rotation: orthogonal varimax (Kaiser on) Number of params = 90
Trang 8Rotated factor loadings (pattern matrix) and unique variances
- Variable | Factor1 Factor2 Factor3 Factor4 Factor5 | Uniqueness -+ -+ - A1 | 0.7251 | 0.4302 A2 | 0.9401 | 0.1013 A3 | 0.9397 | 0.1054 A4 | 0.8990 | 0.1722 A5 | 0.9378 | 0.0976 B1 | 0.9278 | 0.1254 B2 | 0.7340 | 0.4338 B3 | 0.9670 | 0.0370 B4 | 0.9382 | 0.1039 C1 | 0.9151 | 0.1101 C2 | 0.8908 | 0.1813 C3 | 0.7865 | 0.3172 C4 | 0.8388 | 0.2522 D1 | 0.8094 | 0.2564 D2 | 0.8044 | 0.2451 D3 | 0.6222 | 0.3361 E1 | 0.9750 | 0.0470 E2 | 0.7279 | 0.4291 E3 | 0.9719 | 0.0487 E4 | 0.9706 | 0.0551 - (blanks represent abs(loading)<.5)
Factor rotation matrix
Trang 95b PHÂN TÍCH NHÂN TỐ KHÁM PHÁ EFA CÁC BIẾN PHỤ THUỘC
Factor analysis/correlation Number of obs = 192
Method: principal-component factors Retained factors = 1
Rotation: (unrotated) Number of params = 5
LR test: independent vs saturated: chi2(10) = 944.69 Prob>chi2 = 0.0000
Factor loadings (pattern matrix) and unique variances
Trang 10rotate,kaiser blanks(0.5)
Factor analysis/correlation Number of obs = 192
Method: principal-component factors Retained factors = 1
Rotation: orthogonal varimax (Kaiser on) Number of params = 5
LR test: independent vs saturated: chi2(10) = 944.69 Prob>chi2 = 0.0000
Rotated factor loadings (pattern matrix) and unique variances
(blanks represent abs(loading)<.5)
Factor rotation matrix
6 TÍNH TOÁN GIÁ TRỊ TRUNG BÌNH ĐẠI DIỆN CÁC NHÂN TỐ
gen Atrungbinh=( A1+ A2+ A3+ A4+ A5)/5
Trang 11sum Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh Ftrungbinh
Variable | Obs Mean Std Dev Min Max
-+ -
Atrungbinh | 192 4.064583 .7180513 2.2 5
Btrungbinh | 192 3.958333 .8298794 1.25 5
Ctrungbinh | 192 3.692708 .8694037 1.5 5
Dtrungbinh | 192 3.800347 .7875263 1 5
Etrungbinh | 192 3.954427 812738 1.25 5
-+ -
Ftrungbinh | 192 3.867708 740029 2 5
7 PHÂN TÍCH TƯƠNG QUAN PEARSON pwcorr Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh,sig | Ftrung~h Atrung~h Btrung~h Ctrung~h Dtrung~h Etrung~h -+ -
Ftrungbinh | 1.0000 |
|
Atrungbinh | 0.2168 1.0000 | 0.0025 |
Btrungbinh | 0.2369 0.0524 1.0000 | 0.0009 0.4702 |
Ctrungbinh | 0.5855 0.0227 0.1436 1.0000 | 0.0000 0.7543 0.0469 |
Dtrungbinh | 0.5779 0.0279 0.2262 0.5083 1.0000 | 0.0000 0.7013 0.0016 0.0000 |
Etrungbinh | 0.2241 -0.0797 -0.1067 0.0458 0.1384 1.0000 | 0.0018 0.2718 0.1409 0.5278 0.0556 |
Trang 128 MÔ HÌNH HỒI QUY TUYẾN TÍNH & KIỂM ĐỊNH SAU MÔ HÌNH
reg Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh
Source | SS df MS Number of obs = 192
-+ - F(5, 186) = 42.00 Model | 55.4693612 5 11.0938722 Prob > F = 0.0000 Residual | 49.1304292 186 264142093 R-squared = 0.5303 -+ - Adj R-squared = 0.5177 Total | 104.59979 191 547642882 Root MSE = .51395
-
Ftrungbinh | Coef Std Err t P>|t| [95% Conf Interval] -+ -
Atrungbinh | .2143604 .0520302 4.12 0.000 1117153 .3170056
Btrungbinh | .104993 .0465323 2.26 0.025 0131941 .1967919
Ctrungbinh | .3342605 .0497132 6.72 0.000 2361863 .4323347
Dtrungbinh | .3001746 .0564638 5.32 0.000 1887828 .4115664
Etrungbinh | .1739241 .0468384 3.71 0.000 0815213 .2663269
_cons | -.4820392 .3701749 -1.30 0.194 -1.21232 .2482418
-
est sto ols reg Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh,beta Source | SS df MS Number of obs = 192
-+ - F(5, 186) = 42.00 Model | 55.4693612 5 11.0938722 Prob > F = 0.0000 Residual | 49.1304292 186 264142093 R-squared = 0.5303 -+ - Adj R-squared = 0.5177 Total | 104.59979 191 547642882 Root MSE = .51395
-
Ftrungbinh | Coef Std Err t P>|t| Beta -+ -
Atrungbinh | .2143604 .0520302 4.12 0.000 .2079943
Btrungbinh | .104993 .0465323 2.26 0.025 .1177407
Ctrungbinh | .3342605 .0497132 6.72 0.000 .3926972
Dtrungbinh | .3001746 .0564638 5.32 0.000 .3194407
Etrungbinh | .1739241 .0468384 3.71 0.000 .1910124
_cons | -.4820392 .3701749 -1.30 0.194
-
Trang 13reg Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh
Source | SS df MS Number of obs = 192
reg Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh
Source | SS df MS Number of obs = 192
Trang 14dwstat
Durbin-Watson d-statistic( 6, 192) = 1.597078
reg Ftrungbinh Atrungbinh Btrungbinh Ctrungbinh Dtrungbinh Etrungbinh
Source | SS df MS Number of obs = 192
Breusch-Pagan / Cook-Weisberg test for heteroskedasticity
Ho: Constant variance
Variables: fitted values of Ftrungbinh
chi2(1) = 4.39
Prob > chi2 = 0.0362