calculateVIFandRemoveVariables: Calculate variance inflation factor (VIF) and remove...

Description Usage Arguments Details Value Author(s) Examples

Description

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/.

Usage

1
2
calculateVIFandRemoveVariables(response, raster_stack, thresh = 10,
  trace = T, ...)

Arguments

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

DETAILS

Value

OUTPUT_DESCRIPTION

Author(s)

Marcus W. Beck

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

suyunkang/PrevalenceMapping documentation built on May 10, 2019, 1:52 a.m.