Dan
unread,May 7, 2012, 2:27:26 PM5/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to unmarked
Hello,
I am predicting occupancy as a function of covariates and would like
to use a confidence interval other than 95% (apparently the default
value). Is there an easy way to incorporate this into the code below
for example:
# Expected occupancy over range of "woody"
newData2 <- data.frame(woody=seq(-1.6, 2.38, by=0.1))
E.psi <- predict(fm3, type="state", newdata=newData2, appendData=TRUE)
head(E.psi)
# Plot predictions with 95% CI
plot(Predicted ~ woody, E.psi, type="l", ylim=c(0,1),
xlab="woody vegetation (standardized)",
ylab="Expected occupancy probability")
lines(lower ~ woody, E.psi, type="l", col=gray(0.5))
lines(upper ~ woody, E.psi, type="l", col=gray(0.5))
Cheers,
Dan