ssh_test: test explanatory power of spatial stratified heterogeneity

ssh_testR Documentation

test explanatory power of spatial stratified heterogeneity

Description

Spatial stratified heterogeneity test based on geographical detector q value.

Usage

ssh_test(y, hs)

Arguments

y

Variable Y, continuous numeric vector.

hs

Spatial stratification or classification of each explanatory variable. factor, character, integer or data.frame, tibble and sf object.

Value

A tibble

Note

This is a ⁠C++⁠ implementation of the factor_detector function in gdverse package.

Examples

ssh_test(y = 1:7, hs = c('x',rep('y',3),rep('z',3)))


sdsfun documentation built on April 3, 2025, 8:39 p.m.