Hi everyone,I’m trying to fit some models using distsamp but I get the error “"Hessian is singular. Try using fewer covariates or providing starting values." I read many of the answers to this error but couldn’t find any that applies to my case. I’ll appreciate if someone can help me out. I’m running simple models without detection covariates for now; just density covariates. My covariates are Habitat (two level: Forest, coffee), and Site (three level: Fragua, Vientos, Vuelta). These are just my 2015 data, eventually I’ll have year as an additional density covariate. SWTH_Null <- distsamp(~1~1, ltUMF, keyfun="hazard", output="density", unitsOut="kmsq")SWTH_1 <- distsamp(~ 1 ~Habitat+Site, ltUMF, keyfun="hazard", output="density", unitsOut="kmsq")SWTH_2<- distsamp(~ 1 ~Habitat, ltUMF, keyfun="hazard", output="density", unitsOut="kmsq")SWTH_3<- distsamp(~ 1 ~Site, ltUMF, keyfun="hazard", output="density", unitsOut="kmsq") Models SWTH_1 and SWTH_3 run fine (results below). But I get the error message when I run the model SWTH_2 (only habitat with two levels) which is simpler than the other two. I cannot really scale my covariates, or include the parameters of a simpler model as start values since it’s the simplest. I’ll appreciate any advice.Many thanks,Ana
SWTH 1_Habitat and Site Call: distsamp(formula = ~1 ~ Habitat + Site, data = ltUMF, keyfun = "hazard", output = "density", unitsOut = "kmsq") Density: Estimate SE z P(>|z|) (Intercept) 5.8534 0.1034 56.59 0.00e+00 HabitatForest 0.6692 0.0706 9.48 2.53e-21 SiteVientos -0.2570 0.0837 -3.07 2.13e-03 SiteVuelta 0.0929 0.0806 1.15 2.49e-01 Detection: Estimate SE z P(>|z|) 2.44 0.175 13.9 3.68e-44 Hazard-rate(scale): Estimate SE z P(>|z|) 0.12 0.147 0.813 0.416 AIC: 2304.222 Estimate SE z P(>|z|) (Intercept) 5.8534 0.1034 56.59 0.00e+00 HabitatForest 0.6692 0.0706 9.48 2.53e-21 SiteVientos -0.2570 0.0837 -3.07 2.13e-03 SiteVuelta 0.0929 0.0806 1.15 2.49e-01 Detection: Estimate SE z P(>|z|) 2.44 0.175 13.9 3.68e-44 Hazard-rate(scale): Estimate SE z P(>|z|) 0.12 0.147 0.813 0.416 AIC: 2304.222
SWTH 3_Site
Call:
distsamp(formula = ~1 ~ Site, data = ltUMF, keyfun = "hazard",
output = "density", unitsOut = "kmsq")
Density:
Estimate SE z P(>|z|)
(Intercept) 6.245 0.0922 67.730 0.00000
SiteVientos -0.272 0.0837 -3.245 0.00117
SiteVuelta 0.048 0.0804 0.597 0.55069
Detection:
Estimate SE z P(>|z|)
2.44 0.175 13.9 3.39e-44
Hazard-rate(scale):
Estimate SE z P(>|z|)
0.12 0.147 0.814 0.416
AIC: 2396.094
Estimate SE z P(>|z|)
(Intercept) 6.245 0.0922 67.730 0.00000
SiteVientos -0.272 0.0837 -3.245 0.00117
SiteVuelta 0.048 0.0804 0.597 0.55069
Detection:
Estimate SE z P(>|z|)
2.44 0.175 13.9 3.39e-44
Hazard-rate(scale):
Estimate SE z P(>|z|)
0.12 0.147 0.814 0.416
AIC: 2396.094
>
Parametric Bootstrap Statistics:
t0 mean(t0 - t_B) StdDev(t0 - t_B) Pr(t_B > t0)
SSE 1463 601 62.2 0
Chisq 1302 443 45.2 0
freemanTukey 430 109 12.8 0
t_B quantiles:
0% 2.5% 25% 50% 75% 97.5% 100%
SSE 711 753 814 858 904 990 1106
Chisq 735 777 830 857 889 949 1009
freemanTukey 282 297 312 320 329 347 366
t0 = Original statistic compuated from data
t_B = Vector of bootstrap samples