powered by
Calculate the maximum number of predictors to include in the model with a desired correlation between predictors.
ecospat.npred (x, th)
Returns the number of predictors to use.
Correlation matrix of the predictors.
Desired threshold of correlation between predictors.
Blaise Petitpierre bpetitpierre@gmail.com
colvar <- ecospat.testData[c(4:8)] x <- cor(colvar, method="pearson") ecospat.npred (x, th=0.75)
Run the code above in your browser using DataLab