interaction_detector: interaction detector

Description Usage Arguments Value Examples

View source: R/interaction_detector.r

Description

This function reveals whether the risk factors X1 and X2 (and more X) have an interactive influence on a disease Y.

Usage

1
interaction_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 field name of explanatory variable(s) in input dataset.

tabledata

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

Value

Results of interaction detector include the interactive q satistic.

Examples

1
2
3
data(CollectData)
interaction_detector("incidence",c("soiltype","watershed"),CollectData)
interaction_detector("incidence",c("soiltype","watershed","elevation"),CollectData)

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