factor_detector: factor detector

Description Usage Arguments Value Examples

View source: R/factor_detector.r

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

1
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

1
2
3
4
5
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)

geodetector documentation built on March 31, 2020, 5:27 p.m.