powered by
Calculate the maximum number of predictors to include in the model with a desired correlation between predictors.
ecospat.npred (x, th)
Correlation matrix of the predictors.
Desired threshold of correlation between predictors.
Returns the number of predictors to use.
# NOT RUN { 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