I am trying to test for multicollinearity among my covariates in an occupancy model in R. I am using the package unmarked for these occupancy models. I have tried using VIF but it seems to not be supported in this package.
Does anyone maybe know how I can test for multicollinearity for occupancy models?
I have 26 covariates so it would be helpful to know if I can eliminate some of them.
Below is my umf for this:
siteCovs <- data.frame(
SEff=SEff, Undis=Undis, Dis=Dis, Undis_=Undis_,
Dis_=Dis_, NDVI=NDVI, WS=WS, WS_=WS_, HS=HS,
HS_=HS_, Rdist=Rdist, Tdist=Tdist, N17dist=N17dist,
R550dist=R550dist, R29dist=R29dist, R548dist=R548dist,
LZKGdist=LZKGdist, Fdist=Fdist, R=R, T=T, N17=N17,
R550=R550, R29=R29, R548=R548, LZKG=LZKG, F=F
)
umf <- unmarkedFrameOccu(
y=ydat,
siteCovs= siteCovs
)
Thank you!
You can test for multi-collinearity using the olsrr package. Example below.