| site | transect | quadrat | distance | aguada |
| km20 | 1 | 1 | 355 | 1700 |
| horm | 1 | 2 | 700 | 455 |
| man | 1 | 3 | 1100 | 800 |
| zns | 1 | 4 | 1450 | 1200 |
is.factor(hab$site)
hab$site=factor(hab$site,levels=c("horm","zns","man","km20"),ordered=TRUE)
Or do I need to some sort of dummy coding?
If site is important for influencing occupancy I would like to be able to look at for example, occupancy estimates for a range for aguada at each of the camps (sites).
Thank you very much,
Holly
--
You received this message because you are subscribed to the Google Groups "unmarked" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unmarked+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This appears to work ok.
newdata<-data.frame(aguada=0, preyo=0,site=factor(c("horm","zns","man","km20")))
predict(mod33,newdata=newdata,type="state")
Predicted SE lower upper
1 0.06354625 0.06229819 0.008644156 0.3455915
2 0.46750745 0.33205091 0.060402270 0.9230209
3 0.25294942 0.27023560 0.020117569 0.8481227
4 0.05039270 0.07766775 0.002199549 0.5609199
When I try to predict for aguada at each site the estimate is 1 for every site.
newdata<-data.frame(preyo=0,site=factor("zns", levels=c("horm","zns","man","km20")),aguada=seq(0,3500,by=50))
Epsi1<-predict(mod33,type="state",newdata=newdata,appendData=TRUE)
newdata<-data.frame(site=factor("zns", levels=c("horm","zns","man","km20")),aguada=seq(-1.3407662,1.8854890,length=20))
Epsi1<-predict(mod11,type="state",newdata=newdata,appendData=TRUE)
Epsi1