Learn R Programming

RMark (version 3.0.0)

NSpeciesOcc: Multiple Species Occupancy

Description

Example expected value data generated by Gary White for testing.

Arguments

Format

A data frame with 32 observations of 2 variables

ch

a character vector containing the capture history (each is 2 character positions) for 4 occasions with 5 species

freq

capture history frequency

Author

Jeff Laake

Examples

Run this code
# \donttest{
# read in expected value data from Gary White
data("NSpeciesOcc")
# process data and specify number of species=5 in the mixtures argument
dp=process.data(NSpeciesOcc,model="NSpeciesOcc",mixtures=5)
# make design data and fit model used to generate the data
ddl=make.design.data(dp)
model=mark(dp,ddl,model.parameters=list(f=list(formula=~-1+mixture,link="sin"),
p=list(formula=~1,link="sin")),delete=TRUE)
# }

Run the code above in your browser using DataLab