View source: R/factor_detector.r
factor_detector | R Documentation |
The factor detector q-statistic measures the spatial stratified heterogeneity of a variable Y, or the determinant power of a covariate X of Y.
factor_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 the field name(s) of explanatory variable(s) in input dataset. |
tabledata |
The dataset (dataframe) contains fields of explained variable and explanatory variables. |
Results of factor detector include q statistic and the corresponding p value.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.