Skip to content

Commit 8ab7e42

Browse files
authored
rebuild vignettes (#100)
2 parents 1db4943 + b4604b5 commit 8ab7e42

File tree

7 files changed

+29
-27
lines changed

7 files changed

+29
-27
lines changed

man/figures/rgdrid/rgd_id-1.png

7 Bytes
Loading

man/figures/rgdrid/rid_plot-1.png

344 Bytes
Loading

vignettes/idsa.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ idsa.model = idsa(Depression_prevelence ~ .,
6666
data = depression,
6767
wt = wt, cores = 12)
6868
tictoc::toc()
69-
## 87 sec elapsed
69+
## 82.64 sec elapsed
7070
idsa.model
7171
## *** Interactive Detector For Spatial Associations
7272
##

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-
## 3.32 sec elapsed
42+
## 4.05 sec elapsed
4343
```
4444

4545

vignettes/rgdrid.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ data("ndvi")
2121

2222
``` r
2323
names(ndvi)
24-
## [1] "NDVIchange" "Climatezone" "Mining" "Tempchange"
25-
## [5] "Precipitation" "GDP" "Popdensity"
24+
## [1] "NDVIchange" "Climatezone" "Mining" "Tempchange" "Precipitation"
25+
## [6] "GDP" "Popdensity"
2626
```
2727

2828
### Run RGD
@@ -40,9 +40,9 @@ ndvi_rgd
4040
## | Precipitation | 0.8883955 | 4.77e-10 |
4141
## | Climatezone | 0.8218335 | 7.34e-10 |
4242
## | Tempchange | 0.3722571 | 3.22e-10 |
43-
## | Popdensity | 0.2193538 | 9.31e-10 |
43+
## | Popdensity | 0.2205321 | 9.65e-10 |
4444
## | Mining | 0.1411154 | 6.73e-10 |
45-
## | GDP | 0.1406153 | 4.86e-10 |
45+
## | GDP | 0.1164814 | 1.08e-10 |
4646
plot(ndvi_rgd)
4747
```
4848

vignettes/sesu.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fvcpath = "https://github.com/SpatLyu/rdevdata/raw/main/FVC.tif"
2727
fvc = terra::rast(paste0("/vsicurl/",fvcpath))
2828
fvc
2929
## class : SpatRaster
30-
## dimensions : 418, 568, 13 (nrow, ncol, nlyr)
30+
## size : 418, 568, 13 (nrow, ncol, nlyr)
3131
## resolution : 1000, 1000 (x, y)
3232
## extent : -92742.16, 475257.8, 3591385, 4009385 (xmin, xmax, ymin, ymax)
3333
## coord. ref. : Asia_North_Albers_Equal_Area_Conic

vignettes/shegd.Rmd

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,29 @@ By accessing the concrete result through `lesh.m$interaction`, which returns a `
156156

157157
``` r
158158
lesh.m$interaction
159-
## # 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, 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
159+
## # A tibble: 15 × 11
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
177177
## # ℹ abbreviated names: ¹​`Variable1 Q-statistics`, ²​`Variable2 Q-statistics`
178-
## # ℹ 3 more variables: `Variable1 and Variable2 interact Q-statistics` <dbl>,
179-
## # `Variable1 SPD` <dbl>, `Variable2 SPD` <dbl>
178+
## # ℹ 6 more variables: `Variable1 and Variable2 interact Q-statistics` <dbl>,
179+
## # `Variable1 P-value` <dbl>, `Variable2 P-value` <dbl>,
180+
## # `Variable1 and Variable2 interact P-value` <dbl>, `Variable1 SPD` <dbl>,
181+
## # `Variable2 SPD` <dbl>
180182
```
181183

182184
Use `lesh.m$spd_lesh` to access the SHAP power of determinants:

0 commit comments

Comments
 (0)