Donovan.7 {RMark} | R Documentation |
Exercise 7 example data
Description
An example occupancy data set used as exercise 7 in the occupancy website developed by Donovan and Hines.
Format
A data frame with 20 observations (sites) on the following 2 variables.
- ch
a character vector containing the presence (1) and absence (0) for each of 5 visits to the site
- freq
frequency of sites (always 1)
Details
This is a data set from exercise 7 of Donovan and Hines occupancy web site (https://blog.uvm.edu/tdonovan-vtcfwru/occupancy-estimation-and-modeling-ebook/).
Examples
# Donovan.7 can be created with
# Donovan.7=convert.inp("Donovan.7.inp")
do.exercise.7=function()
{
data(Donovan.7)
# Estimates from following agree with estimates on website but the
# log-likelihood values do not agree. Maybe a difference in whether the
# constant binomial coefficients are included.
Donovan.7.poisson=mark(Donovan.7,model="OccupRNPoisson",invisible=FALSE,threads=1,delete=TRUE)
# THe following model was not in exercise 7.
Donovan.7.negbin=mark(Donovan.7,model="OccupRNNegBin",invisible=FALSE,threads=1,delete=TRUE)
return(collect.models())
}
exercise.7=do.exercise.7()
# Remove # to see output
# print(exercise.7)
[Package RMark version 3.0.0 Index]