factor_detector {geodetector} | R Documentation |
factor detector
Description
The factor detector q-statistic measures the spatial stratified heterogeneity of a variable Y, or the determinant power of a covariate X of Y.
Usage
factor_detector(y_column, x_column_nn, tabledata)
Arguments
y_column |
The index or field name of explained variable in input dataset. |
x_column_nn |
The index or the field name(s) of explanatory variable(s) in input dataset. |
tabledata |
The dataset (dataframe) contains fields of explained variable and explanatory variables. |
Value
Results of factor detector include q statistic and the corresponding p value.
Examples
data(CollectData)
factor_detector("incidence","soiltype",CollectData)
factor_detector(1,2,CollectData)
factor_detector (1,c(2,3,4),CollectData)
factor_detector ("incidence",c("soiltype","watershed"),CollectData)
[Package geodetector version 1.0-5 Index]