geodetector(y ~ x1 + x2,
tibble::tibble(y = 1:7,
x1 = c('x',rep('y',3),rep('z',3)),
x2 = c(rep('a',2),rep('b',2),rep('c',3))))
geodetector(y ~ x1 + x2,
tibble::tibble(y = 1:7,
x1 = c('x',rep('y',3),rep('z',3)),
x2 = c(rep('a',2),rep('b',2),rep('c',3))),
type = 'interaction')
geodetector(y ~ x1 + x2,
tibble::tibble(y = 1:7,
x1 = c('x',rep('y',3),rep('z',3)),
x2 = c(rep('a',2),rep('b',2),rep('c',3))),
type = 'risk',alpha = 0.95)
geodetector(y ~ x1 + x2,
tibble::tibble(y = 1:7,
x1 = c('x',rep('y',3),rep('z',3)),
x2 = c(rep('a',2),rep('b',2),rep('c',3))),
type = 'ecological',alpha = 0.95)
Run the code above in your browser using DataLab