nmixS | R Documentation |
nmixS
fits the N-mixture model of Royle et al (2004) to 'stacked' data
from M
sites over T
primary periods (sessions) with each primary period
consisting of J
secondary periods. Currently supported models include
the Poisson and Negative binomial
nmixS(lamformula, detformula, data, K, mixture=c("P", "NB"),
starts, method="BFGS", se=TRUE, ...)
lamformula |
formula for the latent abundance component. |
detformula |
formula for the detection component. Only
site-level covariates are allowed for the detection component.
This differs from the similar model in |
data |
A |
K |
Integer upper index of integration for abundance. This should be set high enough so that it does not affect the parameter estimates. Note that computation time will increase with K |
mixture |
Distribution model for the latent abundance, either Poisson (P) or Negative-binomial (NB). |
starts |
Initial values for parameters |
method |
Optimisation method |
se |
flag to return the standard error (hessian). |
a efit
model object.
counts<- san_nic_open$counts
emf <- eFrameS(y=counts)
mod <- nmixS(~.season, ~1, data=emf)
Nhat<- calcN(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.