Skip to content

Commit 840fd43

Browse files
committed
enhance interaction detector
1 parent 8ab7e42 commit 840fd43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geodetector.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ factor_detector = \(y,x,confintv = FALSE,alpha = 0.95){
8787
#' x2 = c(rep('a',2),rep('b',2),rep('c',3)))
8888
#'
8989
interaction_detector = \(y,x1,x2){
90-
x12 = paste0(x1,x2,'_')
90+
x12 = paste0(x1,'_',x2)
9191
g1 = gdverse::factor_detector(y,x1)
9292
g2 = gdverse::factor_detector(y,x2)
9393
g12 = gdverse::factor_detector(y,x12)

0 commit comments

Comments
 (0)