Hello Rob!
The problem you have here is that you can use backTransform,
when using a fitted model as input, ONLY if no covariates are present.
This is explained really quickly in the help file for this function.
Reformatting your output for easier reading:
Call:
occu(formula = ~High.End ~ 1, data = occupancy, control = list(maxit = 1000, trace = TRUE, REPORT = 1))
Occupancy (logit-scale):
Estimate SE z P(>|z|)
9.08 56.6 0.161 0.872
Detection (logit-scale):
Estimate SE z P(>|z|)
(Intercept) -4.47 1.746 -2.56 0.0105
High.End 1.30 0.533 2.44 0.0149
AIC: 35.75543
Number of sites: 6
optim convergence code: 0
optim iterations: 661
Bootstrap iterations: 0
So, if you want to get your estimates on the probability scale, you have 2 options:
1) use backTransform in conjunction with
linearComb to to first get an estimate on the logit scale for specific parameter combination, and then feed that to backTransform to get it on the probability scale, or
# For one level (here, High.End=3):
(lc <- linearComb( fmF, c(1,3) , type="det" ))
(btlc <- backTransform(lc))
confint(btlc, level = 0.95)
# For multiple combinations (here, with High.End equal to 0, 3, and 4)
(lc <- linearComb(fmF, matrix( c(1,0,
1,3,
1,4),
ncol=2,nrow=3,byrow=T
),
type="det"
)
(btlc <- backTransform(lc))
confint(btlc, level = 0.95)
2) as Ken
mentioned, simply use predict. By default, it will use your original
dataset and produce estimates for each data points, but you can also get
estimates for specific parameter combination by supplying a new data
frame to predict over:
predict(fmF,"det")
predict(fmF, type="det", newdata = data.frame(
High.End
=c(0,3,4) )
As
far as your occupancy probability estimate goes, as Ken mentioned,
your results indicate that your estimated baseline occupancy probability (i.e.,
here, using only an intercept and no covariates) over all sites is not
different from 0 on the logit-scale, or 0.5 on the probability scale. With half of your sites having no detection, that makes
sense. As for the large SE, with only 6 sites and an intercept-only model, this is not surprising either.
I hope it helps!
Cheers,
Florent