View source: R/risk_detector.r
risk_detector | R Documentation |
This function calculates the average values in each stratum of explanatory variable (X), and presents if there exists difference between two strata.
risk_detector(y_column, x_column_nn, tabledata)
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. |
Results of risk detector include the means of explained variable in each stratum derived from an explanatory variable and the t-test for difference between two strata.
data(CollectData)
risk_detector("incidence","soiltype",CollectData)
risk_detector(1,2,CollectData)
risk_detector(1,c(2,3,4),CollectData)
risk_detector("incidence",c("soiltype","watershed","elevation"),CollectData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.