ecological_detector: ecological detector

View source: R/ecological_detector.r

ecological_detectorR Documentation

ecological detector

Description

This function identifies the impact differences between two factors X1 ~ X2.

Usage

ecological_detector(y_column, x_column_nn, tabledata)

Arguments

y_column

The index or field name of explained variable column in input dataset.

x_column_nn

The index or field name of explanatory variable(s)in input dataset.

tabledata

The dataset (dataframe) contains fields of explained variable and explanatory variables.

Value

Results of ecological detector is the significance test of impact difference between two explanatory variables.

Examples

data(CollectData)
ecological_detector("incidence",c("soiltype","watershed"),CollectData)
ecological_detector("incidence",c("soiltype","watershed","elevation"),CollectData)

geodetector documentation built on Sept. 12, 2024, 7:40 a.m.