Skip to content

Commit 9f38fcf

Browse files
authored
rebuild vignettes (#79)
2 parents b88dc2d + b70dd06 commit 9f38fcf

File tree

4 files changed

+42
-41
lines changed

4 files changed

+42
-41
lines changed

man/figures/gd/NTDs_map-1.png

172 Bytes
Loading

vignettes/opgd.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ g = gd_optunidisc(NDVIchange ~ .,
3939
data = dplyr::select(ndvi,-c(Climatezone,Mining)),
4040
discnum = 3:15, cores = 6)
4141
tictoc::toc()
42-
## 2.08 sec elapsed
42+
## 3.32 sec elapsed
4343
```
4444

4545

vignettes/shegd.Rmd

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,23 @@ By accessing the concrete result through `lesh.m$interaction`, which returns a `
157157
``` r
158158
lesh.m$interaction
159159
## # A tibble: 15 × 8
160-
## variable1 variable2 Interaction Variable1 Q-statisti…¹ Variable2 Q-statisti…²
161-
## <chr> <chr> <chr> <dbl> <dbl>
162-
## 1 Climatezone Mining Weaken, uni- 0.821 0.140
163-
## 2 Climatezone Tempchange Weaken, uni- 0.821 0.333
164-
## 3 Climatezone Precipitation Enhance, bi- 0.821 0.873
165-
## 4 Climatezone GDP Enhance, bi- 0.821 0.0917
166-
## 5 Climatezone Popdensity Enhance, bi- 0.821 0.223
167-
## 6 Mining Tempchange Enhance, bi- 0.140 0.333
168-
## 7 Mining Precipitation Weaken, uni- 0.140 0.873
169-
## 8 Mining GDP Enhance, bi- 0.140 0.0917
170-
## 9 Mining Popdensity Enhance, bi- 0.140 0.223
171-
## 10 Tempchange Precipitation Enhance, bi- 0.333 0.873
172-
## 11 Tempchange GDP Enhance, nonlinear 0.333 0.0917
173-
## 12 Tempchange Popdensity Enhance, bi- 0.333 0.223
174-
## 13 Precipitation GDP Enhance, bi- 0.873 0.0917
175-
## 14 Precipitation Popdensity Enhance, bi- 0.873 0.223
176-
## 15 GDP Popdensity Weaken, uni- 0.0917 0.223
160+
## variable1 variable2 Interaction Variable1 Q-statisti…¹ Variable2 Q-statisti…²
161+
## <chr> <chr> <chr> <dbl> <dbl>
162+
## 1 Climatezone Mining Weaken, un… 0.821 0.140
163+
## 2 Climatezone Tempchan… Weaken, un… 0.821 0.333
164+
## 3 Climatezone Precipit… Enhance, b… 0.821 0.873
165+
## 4 Climatezone GDP Enhance, b… 0.821 0.0917
166+
## 5 Climatezone Popdensi… Enhance, b… 0.821 0.223
167+
## 6 Mining Tempchan… Enhance, b… 0.140 0.333
168+
## 7 Mining Precipit… Weaken, un… 0.140 0.873
169+
## 8 Mining GDP Enhance, b… 0.140 0.0917
170+
## 9 Mining Popdensi… Enhance, b… 0.140 0.223
171+
## 10 Tempchange Precipit… Enhance, b… 0.333 0.873
172+
## 11 Tempchange GDP Enhance, n… 0.333 0.0917
173+
## 12 Tempchange Popdensi… Enhance, b… 0.333 0.223
174+
## 13 Precipitati… GDP Enhance, b… 0.873 0.0917
175+
## 14 Precipitati… Popdensi… Enhance, b… 0.873 0.223
176+
## 15 GDP Popdensi… Weaken, un… 0.0917 0.223
177177
## # ℹ abbreviated names: ¹​`Variable1 Q-statistics`, ²​`Variable2 Q-statistics`
178178
## # ℹ 3 more variables: `Variable1 and Variable2 interact Q-statistics` <dbl>,
179179
## # `Variable1 SPD` <dbl>, `Variable2 SPD` <dbl>

vignettes/spade.Rmd

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@ depression
2727
## Bounding box: xmin: -83.1795 ymin: 32.11464 xmax: -78.6023 ymax: 35.17354
2828
## Geodetic CRS: WGS 84
2929
## # A tibble: 1,072 × 12
30-
## Depression_prevelence PopulationDensity Population65 NoHealthInsurance Neighbor_Disadvantage
31-
## * <dbl> <dbl> <dbl> <dbl> <dbl>
32-
## 1 23.1 61.5 22.5 7.98 -0.0525
33-
## 2 22.8 58.3 16.8 11.0 -0.254
34-
## 3 23.2 35.9 24.5 9.31 -0.0540
35-
## 4 21.8 76.1 21.8 13.2 0.0731
36-
## 5 20.7 47.3 22.0 11 0.763
37-
## 6 21.3 32.5 19.2 13.0 0.422
38-
## 7 22 36.9 19.2 10.8 0.113
39-
## 8 21.2 61.5 15.9 8.57 -0.154
40-
## 9 22.7 67.2 15.7 17.8 -0.320
41-
## 10 20.6 254. 11.3 12.7 0.457
30+
## Depression_prevelence PopulationDensity Population65 NoHealthInsurance
31+
## * <dbl> <dbl> <dbl> <dbl>
32+
## 1 23.1 61.5 22.5 7.98
33+
## 2 22.8 58.3 16.8 11.0
34+
## 3 23.2 35.9 24.5 9.31
35+
## 4 21.8 76.1 21.8 13.2
36+
## 5 20.7 47.3 22.0 11
37+
## 6 21.3 32.5 19.2 13.0
38+
## 7 22 36.9 19.2 10.8
39+
## 8 21.2 61.5 15.9 8.57
40+
## 9 22.7 67.2 15.7 17.8
41+
## 10 20.6 254. 11.3 12.7
4242
## # ℹ 1,062 more rows
43-
## # ℹ 7 more variables: Beer <dbl>, MentalHealthPati <dbl>, NatureParks <dbl>, Casinos <dbl>,
43+
## # ℹ 8 more variables: Neighbor_Disadvantage <dbl>, Beer <dbl>,
44+
## # MentalHealthPati <dbl>, NatureParks <dbl>, Casinos <dbl>,
4445
## # DrinkingPlaces <dbl>, X.HouseRent <dbl>, geometry <POINT [°]>
4546
```
4647

@@ -118,16 +119,16 @@ depression_opgd$factor
118119
## # A tibble: 10 × 3
119120
## variable `Q-statistic` `P-value`
120121
## <chr> <dbl> <dbl>
121-
## 1 Neighbor_Disadvantage 0.140 4.96e-10
122-
## 2 PopulationDensity 0.0919 2.33e- 1
123-
## 3 Population65 0.0896 1.00e+ 0
124-
## 4 NoHealthInsurance 0.0678 6.48e- 1
125-
## 5 NatureParks 0.0596 1.00e+ 0
126-
## 6 DrinkingPlaces 0.0541 1.00e+ 0
127-
## 7 X.HouseRent 0.0344 1.00e+ 0
128-
## 8 Beer 0.0141 1 e+ 0
129-
## 9 MentalHealthPati 0.0130 1.00e+ 0
130-
## 10 Casinos 0.0121 1 e+ 0
122+
## 1 Neighbor_Disadvantage 0.140 4.96 e-10
123+
## 2 PopulationDensity 0.0919 2.33 e- 1
124+
## 3 Population65 0.0896 1.000e+ 0
125+
## 4 NoHealthInsurance 0.0678 6.48 e- 1
126+
## 5 NatureParks 0.0596 1.000e+ 0
127+
## 6 DrinkingPlaces 0.0541 1.000e+ 0
128+
## 7 X.HouseRent 0.0344 1.000e+ 0
129+
## 8 Beer 0.0141 1 e+ 0
130+
## 9 MentalHealthPati 0.0130 1.000e+ 0
131+
## 10 Casinos 0.0121 1 e+ 0
131132
```
132133

133134
### Spatial Weight Matrix

0 commit comments

Comments
 (0)