View source: R/CheckCollinearity.R
CheckCollinearity | R Documentation |
Check collinearity among pairs of variables in a data frame
CheckCollinearity(data,allTerms)
data |
A data frame |
allTerms |
The terms among which to check collinearity |
A data frame containing R squared values describing the pair-wise collinearity between variables
Tim Newbold <t.newbold@ucl.ac.uk>
# Load example data (site-level effects of land use on biodiversity from the PREDICTS database)
data(PREDICTSSiteData)
# Check the collinearity among some of the explanatory variables in this dataset
# (land use, and rescaled variables describing human population density and
# distance to nearest road)
CheckCollinearity(data = PREDICTSSites,allTerms = c("logHPD.rs","logDistRd.rs","LandUse"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.