View source: R/ecospat.modelingtools.R
ecospat.npred | R Documentation |
Calculate the maximum number of predictors to include in the model with a desired correlation between predictors.
ecospat.npred (x, th)
x |
Correlation matrix of the predictors. |
th |
Desired threshold of correlation between predictors. |
Returns the number of predictors to use.
Blaise Petitpierre bpetitpierre@gmail.com
colvar <- ecospat.testData[c(4:8)]
x <- cor(colvar, method="pearson")
ecospat.npred (x, th=0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.