remGR: remGR

View source: R/remGR.R

remGRR Documentation

remGR

Description

remGR fits the generalized removal model to data collected from repeated removal episodes from M sites each consisting of J secondary periods.

Usage

remGR(lamformula, detformula, data, mixture = c("P", "NB"), K,
                  starts, method="BFGS", se=TRUE, ...)

Arguments

lamformula

formula for the latent abundance component.

detformula

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

data

A eFrameR object containing the response (counts) and site-level covariates. see eFrameR for how to format the required data.

K

upper bound for superpopulation abundance

starts

Initial values for parameters

method

Optimisation method

se

flag to return the standard error (hessian).

model

for abundance, either Poisson 'P' or negative binomial 'NB'

Value

a efit model object.

Examples

 rem<- san_nic_rem$rem
 emf <- eFrameGR(y=rem)
 mod <- remGR(~1, ~1, K=100, data=emf)
 Nhat<- calcN(mod)


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