I am new to using unmarked and I'm hoping this group can help me with this problem! I am running the pcount function to find a best fit model for count data. I am using forward step wise regression by running models with each covariate, selecting the one with the lowest AIC, then running another set of models with the addition of each covariate, and continuing this process until I find the model with the covariates that produce the lowest AIC. However, I am running into an issue where I get the following warning message:
Call:
pcount(formula = ~camdays ~ V1* V2 + V3 + V4, data = UMF,
K = 2816)
Abundance:
Estimate SE z P(>|z|)
(Intercept) 6.86397 0.01978 347.01 0.00e+00
V1 0.03792 0.01101 3.45 5.71e-04
V2 0.03009 0.00442 6.81 9.54e-12
V3 0.00135 NaN NaN NaN
V4 -0.01238 0.00149 -8.32 8.64e-17
V1:V2 -0.01126 0.00149 -7.54 4.88e-14
Detection:
Estimate SE z P(>|z|)
(Intercept) -3.89031 0.054731 -71.1 0.00e+00
camdays 0.00416 0.000206 20.2 2.47e-90
AIC: 29303.11
Warning message:
In sqrt(diag(vcov(obj))) : NaNs produced
I believe it has something to do with the vcov()
The data have no missing values, and the variable that NaNs are produced for is context dependent. For example, sometimes NaNs are only produced for the 3rd covariate while other times, unmarked successfully models the influence of the 3rd covariate. Incorporating an interaction term into the equation also increases the frequency that NaNs are produced.