Donovan.8: Exercise 8 example data

Description Format Details Examples

Description

An example occupancy data set used as exercise 8 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 counts for each of 5 visits to the site

freq

frequency of sites (always 1)

Details

This is a data set from exercise 8 of Donovan and Hines occupancy web site (http://www.uvm.edu/rsenr/vtcfwru/spreadsheets/?Page=occupancy/occupancy.htm). In MARK, it uses 2 digits to allow a count of 0 to 99 at each site, so the history has 10 digits for 5 visits (occasions).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# This example is excluded from testing to reduce package check time
# Donovan.8 can be created with
# Donovan.8=convert.inp("Donovan.8.inp")
do.exercise.8=function()
{
  data(Donovan.8)
# Results agree with the values on the website.
  Donovan.8.poisson=mark(Donovan.8,model="OccupRPoisson",invisible=FALSE,threads=2)
# The following model was not in exercise 8. The NegBin model does 
# better if it is initialized with the r and lambda from the poisson.
  Donovan.8.negbin=mark(Donovan.8,model="OccupRNegBin",
    initial=Donovan.8.poisson,invisible=FALSE,threads=2)
  return(collect.models())
}
exercise.8=do.exercise.8()
# Remove # to see output
# print(exercise.8)

RMark documentation built on Nov. 7, 2019, 1:06 a.m.

Related to Donovan.8 in RMark...