powered by
This function identifies the impact differences between two factors X1 ~ X2.
ecological_detector(y_column, x_column_nn, tabledata)
Results of ecological detector is the significance test of impact difference between two explanatory variables.
The index or field name of explained variable column in input dataset.
The index or field name of explanatory variable(s)in input dataset.
The dataset (dataframe) contains fields of explained variable and explanatory variables.
data(CollectData) ecological_detector("incidence",c("soiltype","watershed"),CollectData) ecological_detector("incidence",c("soiltype","watershed","elevation"),CollectData)
Run the code above in your browser using DataLab