Learn R Programming

RMark (version 3.0.0)

salamander: Salamander occupancy data

Description

An occupancy data set for modelling presence/absence data for salamanders.

Arguments

Format

A data frame with 39 observations (sites) on the following 2 variables.

ch

a character vector containing the presence (1) and absence (0) for each visit to the site

freq

frequency of sites (always 1)

Details

This is a data set that accompanies program PRESENCE and is explained on page 99 of MacKenzie et al. (2006).

References

MacKenzie, D.I., Nichols, J. D., Royle, J.A., Pollock, K.H., Bailey, L.L., and Hines, J.E. 2006. Occupancy Estimation and Modeling: Inferring Patterns and Dynamics of Species Occurence. Elsevier, Inc. 324p.

Examples

Run this code
# \donttest{
# This example is excluded from testing to reduce package check time
do.salamander=function()
{
   data(salamander)
   occ.p.dot=mark(salamander,model="Occupancy",delete=TRUE)
   occ.p.time=mark(salamander,model="Occupancy",
         model.parameters=list(p=list(formula=~time)),delete=TRUE)
   occ.p.mixture=mark(salamander,model="OccupHet",
         model.parameters=list(p=list(formula=~mixture)),delete=TRUE)
   return(collect.models())
}
salamander.results=do.salamander()
print(salamander.results)
# }

Run the code above in your browser using DataLab