Description Usage Arguments Details Value Author(s) Examples
The function checks for collinearity between variables and performs stepwise VIF selection. Source: https://beckmw.wordpress.com/2013/02/05/collinearity-and-stepwise-vif-selection/.
1 2 | calculateVIFandRemoveVariables(response, raster_stack, thresh = 10,
trace = T, ...)
|
response |
A data frame containing the response data including number of positive cases (n_positive), number of individuals examined (examined), and point locations (longitude and latitude). |
raster_stack |
A collection of RasterLayer objects with the same spatial extent and resolution (These are the environmental covariates). |
thresh |
The threshold value used for retaining variables, Default: 10. |
trace |
A logical argument indicating if text output is returned as the stepwise selection progresses, Default: T. |
... |
Additional arguments passed to ‘lm’ |
DETAILS
OUTPUT_DESCRIPTION
Marcus W. Beck
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.