Skip to content

Commit

Permalink
Merge pull request #31 from stscl/dev
Browse files Browse the repository at this point in the history
rebuild `sesp` vignette
  • Loading branch information
SpatLyu authored Nov 24, 2024
2 parents 841a3d3 + 8cd6e62 commit 41a1e82
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion R/sesp.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ sesp = \(formula, data, listw = NULL, discvar = "all", discnum = 3:8, model = 'o
moran_p = dplyr::pull(moran_g$result,6)
se_alpha = dplyr::if_else(moran_v>=alpha&moran_p<=0.05,
moran_v,alpha,missing = alpha)
se_alpha = dplyr::if_else(se_alpha>=0.95,0.95,se_alpha)
se_alpha = dplyr::if_else(se_alpha>=0.75,0.75,se_alpha)
if (intercept) {
moran_dt = dplyr::bind_cols(moran_dt,gwrcoefs[,1,drop = TRUE])
}
Expand Down
10 changes: 5 additions & 5 deletions docs/articles/sesp.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articles:
pdrm: pdrm.html
sesp: sesp.html
whysed: whysed.html
last_built: 2024-11-23T12:10Z
last_built: 2024-11-24T06:25Z
urls:
reference: https://stscl.github.io/sesp/reference
article: https://stscl.github.io/sesp/articles
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions vignettes/sesp.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ system.time({
model = 'ols', overlay = 'intersection', cores = 8)
})
## user system elapsed
## 4.70 0.68 28.17
## 2.45 0.23 29.56
g1
## *** Spatially Explicit Stratified Power
##
Expand Down Expand Up @@ -125,7 +125,7 @@ system.time({
model = 'lag', cores = 8)
})
## user system elapsed
## 7.80 1.07 252.03
## 5.86 0.18 250.97
g2
## *** Spatially Explicit Stratified Power
##
Expand Down Expand Up @@ -177,7 +177,7 @@ system.time({
model = 'error', cores = 8)
})
## user system elapsed
## 5.35 0.23 135.22
## 8.17 0.89 135.08
g3
## *** Spatially Explicit Stratified Power
##
Expand Down Expand Up @@ -228,7 +228,7 @@ system.time({
model = 'lag', durbin = TRUE, cores = 8)
})
## user system elapsed
## 8.67 1.39 248.84
## 8.33 0.77 246.39
g4
## *** Spatially Explicit Stratified Power
##
Expand Down Expand Up @@ -280,7 +280,7 @@ system.time({
model = 'gwr', cores = 8)
})
## user system elapsed
## 8.35 0.78 147.83
## 8.40 0.68 147.00
g5
## *** Spatially Explicit Stratified Power
##
Expand Down

0 comments on commit 41a1e82

Please sign in to comment.