Skip to content

Commit 69bfb87

Browse files
authored
remove author info in r scripts (#109)
2 parents 7c1297b + 9e401f6 commit 69bfb87

File tree

92 files changed

+1
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1
-281
lines changed

R/gd.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title native geographical detector(GD) model
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @references
43
#' Jin‐Feng Wang, Xin‐Hu Li, George Christakos, Yi‐Lan Liao, Tin Zhang, XueGu & Xiao‐Ying Zheng (2010)
54
#' Geographical Detectors‐Based Health Risk Assessment and its Application in the Neural Tube Defects Study
@@ -45,7 +44,6 @@ gd = \(formula, data, type = "factor", alpha = 0.95){
4544
}
4645

4746
#' @title print GD result
48-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
4947
#' @description
5048
#' S3 method to format output for GD model from `gd()`.
5149
#'
@@ -65,7 +63,6 @@ print.gd_result = \(x, ...) {
6563
}
6664

6765
#' @title plot GD result
68-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
6966
#' @description
7067
#' S3 method to plot output for GD model result in `gd()`.
7168
#'

R/gd_optunidisc.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title optimal univariate discretization based on geodetector q-statistic
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#'
43
#' @param formula A formula.
54
#' @param data A `data.frame`, `tibble` or `sf` object of observation data.

R/geodetector.R

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title factor detector
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @description
43
#' The factor detector q-statistic measures the spatial stratified heterogeneity of a
54
#' variable Y, or the determinant power of a covariate X of Y.
@@ -59,7 +58,6 @@ factor_detector = \(y,x,confintv = FALSE,alpha = 0.95){
5958
}
6059

6160
#' @title interaction detector
62-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
6361
#' @description
6462
#' Identify the interaction between different risk factors, that is, assess whether factors X1 and X2 together
6563
#' increase or decrease the explanatory power of the dependent variable Y, or whether the effects of these factors
@@ -116,7 +114,6 @@ interaction_detector = \(y,x1,x2){
116114
}
117115

118116
#' @title risk detector
119-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
120117
#' @description
121118
#' Determine whether there is a significant difference between the attribute means of two sub regions.
122119
#'
@@ -165,7 +162,6 @@ risk_detector = \(y,x,alpha = 0.95){
165162
}
166163

167164
#' @title ecological detector
168-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
169165
#' @description
170166
#' Compare the effects of two factors \eqn{X_1} and \eqn{X_2} on the spatial distribution of the attribute \eqn{Y}.
171167
#'
@@ -201,7 +197,6 @@ ecological_detector = \(y,x1,x2,alpha = 0.95){
201197
}
202198

203199
#' @title geographical detector
204-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
205200
#' @note
206201
#' Note that only one type of geodetector is supported at a time in `geodetector()`.
207202
#'
@@ -309,7 +304,6 @@ geodetector = \(formula,data,type = "factor",alpha = 0.95){
309304
}
310305

311306
#' @title print factor detector
312-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
313307
#' @description
314308
#' S3 method to format output for factor detector in `geodetector()`.
315309
#'
@@ -326,7 +320,6 @@ print.factor_detector = \(x, ...) {
326320
}
327321

328322
#' @title print interaction detector
329-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
330323
#' @description
331324
#' S3 method to format output for interaction detector in `geodetector()`.
332325
#'
@@ -349,7 +342,6 @@ print.interaction_detector = \(x, ...) {
349342
}
350343

351344
#' @title print risk detector
352-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
353345
#' @description
354346
#' S3 method to format output for risk detector in `geodetector()`.
355347
#'
@@ -383,7 +375,6 @@ print.risk_detector = \(x, ...) {
383375
}
384376

385377
#' @title print ecological detector
386-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
387378
#' @description
388379
#' S3 method to format output for ecological detector in `geodetector()`.
389380
#'
@@ -412,7 +403,6 @@ print.ecological_detector = \(x, ...) {
412403
}
413404

414405
#' @title plot factor detector result
415-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
416406
#' @description
417407
#' S3 method to plot output for factor detector in `geodetector()`.
418408
#'
@@ -468,7 +458,6 @@ plot.factor_detector = \(x, slicenum = 2, alpha = 0.95,
468458
}
469459

470460
#' @title plot interaction detector result
471-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
472461
#' @description
473462
#' S3 method to plot output for interaction detector in `geodetector()`.
474463
#'
@@ -515,7 +504,6 @@ plot.interaction_detector = \(x,alpha = 1,...){
515504
}
516505

517506
#' @title plot risk detector
518-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
519507
#' @description
520508
#' S3 method to plot output for risk detector in `geodetector()`.
521509
#'
@@ -560,7 +548,6 @@ plot.risk_detector = \(x, ...) {
560548
}
561549

562550
#' @title plot ecological detector
563-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
564551
#' @description
565552
#' S3 method to plot output for ecological detector in `geodetector()`.
566553
#'

R/gozh.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title geographically optimal zones-based heterogeneity(GOZH) model
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @references
43
#' Luo, P., Song, Y., Huang, X., Ma, H., Liu, J., Yao, Y., & Meng, L. (2022). Identifying determinants of
54
#' spatio-temporal disparities in soil moisture of the Northern Hemisphere using a geographically optimal
@@ -48,7 +47,6 @@ gozh = \(formula, data, cores = 1,
4847
}
4948

5049
#' @title print GOZH result
51-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
5250
#' @description
5351
#' S3 method to format output for GOZH model from `gozh()`.
5452
#'
@@ -70,7 +68,6 @@ print.gozh_result = \(x, ...) {
7068
}
7169

7270
#' @title plot GOZH result
73-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
7471
#' @description
7572
#' S3 method to plot output for GOZH model result in `gozh()`.
7673
#'
@@ -101,7 +98,6 @@ plot.gozh_result = \(x, ...) {
10198

10299

103100
#' @title geographically optimal zones-based heterogeneity detector
104-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
105101
#' @description
106102
#' Function for geographically optimal zones-based heterogeneity detector.
107103
#' @references

R/idsa.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title interactive detector for spatial associations(IDSA) model
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @references
43
#' Yongze Song & Peng Wu (2021) An interactive detector for spatial associations,
54
#' International Journal of Geographical Information Science, 35:8, 1676-1701,
@@ -138,7 +137,6 @@ idsa = \(formula,data,wt = NULL,discnum = 3:8,discmethod = "quantile",
138137
}
139138

140139
#' @title print IDSA result
141-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
142140
#' @description
143141
#' S3 method to format output for IDSA model from `idsa()`.
144142
#'
@@ -163,7 +161,6 @@ print.idsa_result = \(x, ...) {
163161
}
164162

165163
#' @title plot IDSA risk result
166-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
167164
#' @description
168165
#' S3 method to plot output for IDSA risk result in `idsa()`.
169166
#'

R/lesh.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title locally explained stratified heterogeneity(LESH) model
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#'
43
#' @note
54
#' The LESH model requires at least \eqn{2^n-1} calculations when has \eqn{n} explanatory variables.
@@ -50,7 +49,6 @@ lesh = \(formula,data,cores = 1,...){
5049
}
5150

5251
#' @title print LESH model interaction result
53-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
5452
#' @description
5553
#' S3 method to format output for LESH model interaction result in `lesh()`.
5654
#'
@@ -72,7 +70,6 @@ print.lesh_result = \(x, ...) {
7270
}
7371

7472
#' @title plot LESH model result
75-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
7673
#' @description
7774
#' S3 method to plot output for LESH model interaction result in `lesh()`.
7875
#' @note

R/loess_optscale.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#' @description
33
#' Function for determining optimal spatial data analysis scale based on locally
44
#' estimated scatter plot smoothing (LOESS) model.
5-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
65
#'
76
#' @param qvec A numeric vector of q statistics.
87
#' @param spscalevec A numeric vector of spatial scales corresponding to `qvec`.

R/opgd.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title optimal parameters-based geographical detector(OPGD) model
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @references
43
#' Song, Y., Wang, J., Ge, Y. & Xu, C. (2020) An optimal parameters-based geographical detector
54
#' model enhances geographic characteristics of explanatory variables for spatial heterogeneity
@@ -78,7 +77,6 @@ opgd = \(formula, data, discvar = NULL, discnum = 3:8,
7877
}
7978

8079
#' @title print OPGD result
81-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
8280
#' @description
8381
#' S3 method to format output for OPGD model from `opgd()`.
8482
#'
@@ -101,7 +99,6 @@ print.opgd_result = \(x, ...) {
10199
}
102100

103101
#' @title plot OPGD result
104-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
105102
#' @description
106103
#' S3 method to plot output for OPGD model result in `opgd()`.
107104
#'

R/pid_idsa.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title optimal spatial data discretization based on SPADE q-statistics
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @description
43
#' Function for determining the optimal spatial data discretization based on SPADE q-statistics.
54
#' @references
@@ -134,7 +133,6 @@ cpsd_disc = \(formula, data, wt, discnum = 3:8, discmethod = "quantile", strate
134133
}
135134

136135
#' PSD of an interaction of explanatory variables (PSD-IEV)
137-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
138136
#' @references
139137
#' Yongze Song & Peng Wu (2021) An interactive detector for spatial associations,
140138
#' International Journal of Geographical Information Science, 35:8, 1676-1701,

R/psd_pseudop.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#' @title calculate power of spatial determinant(PSD) and the corresponding pseudo-p value
2-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
32
#' @description
43
#' Function for calculate power of spatial determinant \eqn{q_s}.
54
#' @details
@@ -66,7 +65,6 @@ psd_pseudop = \(y,x,wt,cores = 1,seed = 123456789,permutations = 0){
6665
}
6766

6867
#' @title power of spatial and multilevel discretization determinant(PSMD) and the corresponding pseudo-p value
69-
#' @author Wenbo Lv \email{lyu.geosocial@gmail.com}
7068
#' @description
7169
#' Function for calculate power of spatial and multilevel discretization determinant and the corresponding pseudo-p value.
7270
#' @details

0 commit comments

Comments
 (0)