occM: occuM

View source: R/occM.R

occMR Documentation

occuM

Description

occuM fits the occupancy model of McKenzie et al. (2002).

Usage

occuM(lamformula, detformula, data, knownocc, starts, method="BFGS", se=TRUE, ...)

Arguments

lamformula

formula for the latent occupancy component.

detformula

formula for the detection component. Only site-level covariates are allowed for the detection component. This differs from the similar model in unmarked.

data

A eFrame object containing the response (either (0/1) or counts) and site-level covariates. see eFrame for how to format the required data. count data will get trunctated to (0/1) by occuM().

starts

Initial values for parameters

method

Optimisation method

se

flag to return the standard error (hessian).

knownocc

Vector of row numbers of sites that are known to be occupied.

Value

a efit model object.

Examples

 counts<- san_nic_pre$counts
 emf <- eFrame(y=counts)
 mod <- occuM(~1, ~1, data=emf)
 Nhat<- calcN(mod)


dslramsey/eradicate documentation built on March 16, 2024, 1:40 p.m.