You are on page 1of 6

GWR :

> h <- gwr.sel(kematian_bayi ~ medis+ASI+vitamin+kesehatan_ibu +


kesehatan_bayi, coords=cbind(X,Y), adapt=FALSE,gweight=gwr.Gauss)
Bandwidth: 4.424661 CV score: 289397.8
Bandwidth: 7.152104 CV score: 272526.9
Bandwidth: 8.837757 CV score: 269548.3
Bandwidth: 8.87735 CV score: 269499.4
Bandwidth: 9.904017 CV score: 268438.9
Bandwidth: 10.53853 CV score: 267939
Bandwidth: 10.93068 CV score: 267674.2
Bandwidth: 11.17305 CV score: 267524.7
Bandwidth: 11.32284 CV score: 267437.3
Bandwidth: 11.41541 CV score: 267385
Bandwidth: 11.47263 CV score: 267353.3
Bandwidth: 11.50799 CV score: 267334
Bandwidth: 11.52984 CV score: 267322.1
Bandwidth: 11.54335 CV score: 267314.8
Bandwidth: 11.55169 CV score: 267310.3
Bandwidth: 11.55685 CV score: 267307.6
Bandwidth: 11.56004 CV score: 267305.9
Bandwidth: 11.56201 CV score: 267304.8
Bandwidth: 11.56323 CV score: 267304.1
Bandwidth: 11.56398 CV score: 267303.7
Bandwidth: 11.56445 CV score: 267303.5
Bandwidth: 11.56473 CV score: 267303.3
Bandwidth: 11.56491 CV score: 267303.2
Bandwidth: 11.56502 CV score: 267303.2
Bandwidth: 11.56509 CV score: 267303.2
Bandwidth: 11.56513 CV score: 267303.1
Bandwidth: 11.56513 CV score: 267303.1
Warning message:
In gwr.sel(kematian_bayi ~ medis + ASI + vitamin + kesehatan_ibu + :
Bandwidth converged to upper bound:11.5651999118044

es(gwr2)
[1] "SDF" "lhat" "lm" "results" "bandwidth" "adapt"
[7] "hatmatrix" "gweight" "gTSS" "this.call" "fp.given" "timings"
> names(gwr2$SDF)
[1] "sum.w" "(Intercept)" "medis"
[4] "ASI" "vitamin" "kesehatan_ibu"
[7] "kesehatan_bayi" "(Intercept)_se" "medis_se"
[10] "ASI_se" "vitamin_se" "kesehatan_ibu_se"
[13] "kesehatan_bayi_se" "gwr.e" "pred"
[16] "pred.se" "localR2" "(Intercept)_se_EDF"
[19] "medis_se_EDF" "ASI_se_EDF" "vitamin_se_EDF"
[22] "kesehatan_ibu_se_EDF" "kesehatan_bayi_se_EDF" "pred.se"
> gwr2$SDF$"(Intercept)"
[1] 29.83569 27.92785 27.83170 27.85806 27.85141 28.07054 27.99484 27.73662
[9] 27.94394 28.43906 27.76216 27.63887 28.13534 27.98494 28.11456 28.00753
[17] 28.22245 27.67803 27.91499 27.91499 27.77987 27.79891 27.80053 28.14219
[25] 27.94152 27.69681 28.00612 28.91454 27.89588 27.71675 27.75753 27.99567
[33] 27.82007 27.69107 28.22245 27.78398 29.86411 28.15550
> gwr2$SDF$"medis"
[1] 1.049123 1.099885 1.096473 1.092088 1.098609 1.100933 1.101748 1.097281
[9] 1.100524 1.111101 1.094698 1.090754 1.104940 1.100851 1.107094 1.105067
[17] 1.101640 1.097102 1.097851 1.097851 1.095644 1.096975 1.099532 1.100876
[25] 1.099815 1.094256 1.097723 1.089470 1.099104 1.098324 1.098327 1.098171
[33] 1.103355 1.098155 1.101640 1.101627 1.055020 1.097780
> gwr2$SDF$"ASI"
[1] -0.01590846 -0.01324782 -0.01283216 -0.01265957 -0.01299442 -0.01365502
[7] -0.01351180 -0.01264981 -0.01332142 -0.01514257 -0.01257096 -0.01206952
[13] -0.01403238 -0.01343927 -0.01409625 -0.01372174 -0.01407498 -0.01250278
[19] -0.01310714 -0.01310714 -0.01266392 -0.01278085 -0.01292253 -0.01383101
[25] -0.01327735 -0.01239323 -0.01332304 -0.01527653 -0.01312826 -0.01265929
[31] -0.01275551 -0.01332142 -0.01317523 -0.01259003 -0.01407498 -0.01299612
[37] -0.01630551 -0.01369818
> gwr2$SDF$"vitamin"
[1] -0.001734494 -0.002613990 -0.002666784 -0.002661105 -0.002653589
[6] -0.002542060 -0.002578026 -0.002711919 -0.002605039 -0.002343926
[11] -0.002703777 -0.002770573 -0.002503670 -0.002584351 -0.002510466
[16] -0.002566388 -0.002465878 -0.002740759 -0.002623645 -0.002623645
[21] -0.002693534 -0.002682006 -0.002676950 -0.002506783 -0.002607389
[26] -0.002736425 -0.002579011 -0.002139421 -0.002630968 -0.002719850
[31] -0.002699964 -0.002583430 -0.002661037 -0.002732636 -0.002465878
[36] -0.002681534 -0.001713267 -0.002505135
> gwr2$SDF$"kesehatan_ibu"
[1] 0.04965079 0.04514282 0.04487986 0.04493417 0.04493876 0.04551646
[7] 0.04532330 0.04463237 0.04518690 0.04649080 0.04469098 0.04435117
[13] 0.04569692 0.04529459 0.04565074 0.04536745 0.04590907 0.04447675
[19] 0.04510240 0.04510240 0.04474085 0.04479544 0.04480838 0.04570080
[25] 0.04517819 0.04451680 0.04533897 0.04759970 0.04505676 0.04458343
[31] 0.04469109 0.04531339 0.04487273 0.04451489 0.04590907 0.04477200
[37] 0.04973606 0.04572459
> gwr2$SDF$"kesehatan_bayi"
[1] -0.04649236 -0.04054623 -0.04021107 -0.04028887 -0.04028382 -0.04102904
[7] -0.04077708 -0.03988893 -0.04060230 -0.04227486 -0.03996919 -0.03953534
[13] -0.04125612 -0.04074139 -0.04119245 -0.04082861 -0.04153718 -0.03968760
[19] -0.04049729 -0.04049729 -0.04003225 -0.04010078 -0.04011327 -0.04126829
[25] -0.04059222 -0.03974419 -0.04080435 -0.04375411 -0.04043597 -0.03982378
[31] -0.03996328 -0.04077038 -0.04019023 -0.03973527 -0.04153718 -0.04006260
[37] -0.04659027 -0.04130459

UJI KECOCOKAN MODEL


>gwr.test(gwr2)

Brunsdon, Fotheringham & Charlton (2002, pp. 91-2) ANOVA

data: gwr2
F = 1.0089, df1 = 32.000, df2 = 31.525, p-value = 0.4905
alternative hypothesis: greater
sample estimates:
SS OLS residuals SS GWR residuals
149193.9 147884.4

> # Uji Pengaruh Geografis terhadap setiap prediktor


> LMZ.F3GWR.test(gwr2)

Leung et al. (2000) F(3) test


F statistic Numerator d.f. Denominator d.f. Pr(>)
(Intercept) 0.216795 7.619413 31.914 0.9832
medis 0.012806 7.770424 31.914 1.0000
ASI 0.099048 4.416133 31.914 0.9869
vitamin 0.509919 9.279916 31.914 0.8604
kesehatan_ibu 0.745045 10.960348 31.914 0.6883
kesehatan_bayi 0.720840 10.027409 31.914 0.6994

> # Melihat nilai bandwidth


> gwr2$bandwidth
[1] 11.56513

> # Menampilkan Nilai koefisien dan nilai prediksi


> gwr2$SDF[,2:4]
coordinates X.Intercept. medis ASI
1 (122.37, 7.85) 29.83569 1.049123 -0.01590846
2 (112.43, 7.472) 27.92785 1.099885 -0.01324782
3 (112.001, 7.816) 27.83170 1.096473 -0.01283216
4 (112.21, 8.5) 27.85806 1.092088 -0.01265957
5 (112.065, 7.54) 27.85141 1.098609 -0.01299442
6 (113.125, 7.46) 28.07054 1.100933 -0.01365502
7 (112.734, 7.28) 27.99484 1.101748 -0.01351180
8 (111.5, 7.5) 27.73662 1.097281 -0.01264981
9 (112.5, 7.4) 27.94394 1.100524 -0.01332142
10 (114.735, 5.895) 28.43906 1.111101 -0.01514257
11 (111.675, 7.935) 27.76216 1.094698 -0.01257096
12 (111.102, 8.201) 27.63887 1.090754 -0.01206952
13 (113.375, 6.91) 28.13534 1.104940 -0.01403238
14 (112.7, 7.4) 27.98494 1.100851 -0.01343927
15 (113.235, 6.59) 28.11456 1.107094 -0.01409625
16 (112.74, 6.81) 28.00753 1.105067 -0.01372174
17 (113.86, 7.395) 28.22245 1.101640 -0.01407498
18 (111.2, 7.38) 27.67803 1.097102 -0.01250278
19 (112.4, 7.75) 27.91499 1.097851 -0.01310714
20 (112.4, 7.75) 27.91499 1.097851 -0.01310714
21 (111.75, 7.835) 27.77987 1.095644 -0.01266392
22 (111.825, 7.68) 27.79891 1.096975 -0.01278085
23 (111.79, 7.31) 27.80053 1.099532 -0.01292253
24 (113.48, 7.5) 28.14219 1.100876 -0.01383101
25 (112.5, 7.5) 27.94152 1.099815 -0.01327735
26 (111.345, 7.845) 27.69681 1.094256 -0.01239323
27 (112.86, 7.875) 28.00612 1.097723 -0.01332304
28 (117.37, 7.85) 28.91454 1.089470 -0.01527653
29 (112.282, 7.54) 27.89588 1.099104 -0.01312826
30 (111.38, 7.3) 27.71675 1.098324 -0.01265929
31 (111.59, 7.395) 27.75753 1.098327 -0.01275551
32 (112.8, 7.8) 27.99567 1.098171 -0.01332142
33 (111.825, 6.79) 27.82007 1.103355 -0.01317523
34 (111.25, 7.26) 27.69107 1.098155 -0.01259003
35 (113.86, 7.395) 28.22245 1.101640 -0.01407498
36 (111.67, 6.97) 27.78398 1.101627 -0.01299612
37 (122.365, 6.87) 29.86411 1.055020 -0.01630551
38 (113.6, 7.95) 28.15550 1.097780 -0.01369818
> gwr2$SDF[,c(2:4,8,9,11)]
coordinates X.Intercept. medis ASI X.Intercept._se
medis_se
1 (122.37, 7.85) 29.83569 1.049123 -0.01590846 25.27081
2.956695
2 (112.43, 7.472) 27.92785 1.099885 -0.01324782 25.20506
2.947333
3 (112.001, 7.816) 27.83170 1.096473 -0.01283216 25.21819
2.948104
4 (112.21, 8.5) 27.85806 1.092088 -0.01265957 25.21289
2.947843
5 (112.065, 7.54) 27.85141 1.098609 -0.01299442 25.21583
2.947952
6 (113.125, 7.46) 28.07054 1.100933 -0.01365502 25.18726
2.946326
7 (112.734, 7.28) 27.99484 1.101748 -0.01351180 25.19663
2.946848
8 (111.5, 7.5) 27.73662 1.097281 -0.01264981 25.23411
2.948994
9 (112.5, 7.4) 27.94394 1.100524 -0.01332142 25.20302
2.947215
10 (114.735, 5.895) 28.43906 1.111101 -0.01514257 25.15767
2.944833
11 (111.675, 7.935) 27.76216 1.094698 -0.01257096 25.22884
2.948726
12 (111.102, 8.201) 27.63887 1.090754 -0.01206952 25.24944
2.949939
13 (113.375, 6.91) 28.13534 1.104940 -0.01403238 25.18106
2.945977
14 (112.7, 7.4) 27.98494 1.100851 -0.01343927 25.19766
2.946911
15 (113.235, 6.59) 28.11456 1.107094 -0.01409625 25.18378
2.946126
16 (112.74, 6.81) 28.00753 1.105067 -0.01372174 25.19591
2.946796
17 (113.86, 7.395) 28.22245 1.101640 -0.01407498 25.17204
2.945486
18 (111.2, 7.38) 27.67803 1.097102 -0.01250278 25.24456
2.949580
19 (112.4, 7.75) 27.91499 1.097851 -0.01310714 25.20628
2.947416
20 (112.4, 7.75) 27.91499 1.097851 -0.01310714 25.20628
2.947416
21 (111.75, 7.835) 27.77987 1.095644 -0.01266392 25.22621
2.948567
22 (111.825, 7.68) 27.79891 1.096975 -0.01278085 25.22355
2.948403
23 (111.79, 7.31) 27.80053 1.099532 -0.01292253 25.22416
2.948413
24 (113.48, 7.5) 28.14219 1.100876 -0.01383101 25.17953
2.945895
25 (112.5, 7.5) 27.94152 1.099815 -0.01327735 25.20315
2.947226
26 (111.345, 7.845) 27.69681 1.094256 -0.01239323 25.24004
2.949363
27 (112.86, 7.875) 28.00612 1.097723 -0.01332304 25.19419
2.946730
28 (117.37, 7.85) 28.91454 1.089470 -0.01527653 25.15210
2.945038
29 (112.282, 7.54) 27.89588 1.099104 -0.01312826 25.20937
2.947582
30 (111.38, 7.3) 27.71675 1.098324 -0.01265929 25.23800
2.949200
31 (111.59, 7.395) 27.75753 1.098327 -0.01275551 25.23090
2.948803
32 (112.8, 7.8) 27.99567 1.098171 -0.01332142 25.19561
2.946808
33 (111.825, 6.79) 27.82007 1.103355 -0.01317523 25.22236
2.948279
34 (111.25, 7.26) 27.69107 1.098155 -0.01259003 25.24258
2.949457
35 (113.86, 7.395) 28.22245 1.101640 -0.01407498 25.17204
2.945486
36 (111.67, 6.97) 27.78398 1.101627 -0.01299612 25.22765
2.948588
37 (122.365, 6.87) 29.86411 1.055020 -0.01630551 25.27072
2.957011
38 (113.6, 7.95) 28.15550 1.097780 -0.01369818 25.17765
2.945794
vitamin_se
1 0.007849258
2 0.007851797
3 0.007857032
4 0.007854394
5 0.007856234
6 0.007844323
7 0.007848399
8 0.007863828
9 0.007850996
10 0.007832336
11 0.007861368
12 0.007869719
13 0.007842063
14 0.007848751
15 0.007843457
16 0.007848429
17 0.007837806
18 0.007868217
19 0.007852121
20 0.007852121
21 0.007860346
22 0.007859344
23 0.007859840
24 0.007840987
25 0.007850983
26 0.007866057
27 0.007846972
28 0.007824722
29 0.007853548
30 0.007865564
31 0.007862568
32 0.007847617
33 0.007859447
34 0.007867477
35 0.007837806
36 0.007861508
37 0.007849255
38 0.007839867

You might also like