hi Allyson,
if you provide some starting values that are slightly better then it seems to work (See below). In many cases it helps to provide good starting values.
regards
andy
> (Occ.Habitat <- occu(~1 ~ Habitat, Occ.umf,start=c(-1,-2,0,0,0)))
Call:
occu(formula = ~1 ~ Habitat, data = Occ.umf, starts = c(-1, -2,
0, 0, 0))
Occupancy:
Estimate SE z P(>|z|)
(Intercept) 0.6752 0.350 1.927 0.0540
HabitatHardwood 1.3514 0.803 1.684 0.0922
HabitatHemlock -0.0652 0.455 -0.143 0.8860
HabitatLogged 0.1349 0.472 0.286 0.7750
Detection:
Estimate SE z P(>|z|)
-2.08 0.0896 -23.2 9.1e-119
AIC: 2174.072
AIC: 2176.047