ecospat.npred: Number Of Predictors

Description Usage Arguments Value Author(s) Examples

View source: R/ecospat.modelingtools.R

Description

Calculate the maximum number of predictors to include in the model with a desired correlation between predictors.

Usage

1
ecospat.npred (x, th)

Arguments

x

Correlation matrix of the predictors.

th

Desired threshold of correlation between predictors.

Value

Returns the number of predictors to use.

Author(s)

Blaise Petitpierre bpetitpierre@gmail.com

Examples

1
2
3
colvar <- ecospat.testData[c(4:8)]
x <- cor(colvar, method="pearson")
ecospat.npred (x, th=0.75)

ecospat documentation built on Feb. 19, 2021, 5:07 p.m.