calcN | R Documentation |
calcN
estimates abundance for a defined region from a fitted model. The default is for the population defined by the sampling units. The user can optionally supply a data.frame
of covariate values for any spatial unit of interest.
calcN(obj, ...)
## S3 method for class 'efit'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
## S3 method for class 'efitS'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
## S3 method for class 'efitM'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
## S3 method for class 'efitR'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
## S3 method for class 'efitGP'
calcN(
obj,
CI.level = 0.95,
CI.calc = c("norm", "lnorm", "boot"),
nboot = 500,
...
)
## S3 method for class 'efitGPlist'
calcN(
obj,
CI.level = 0.95,
CI.calc = c("norm", "lnorm", "boot"),
nboot = 500,
...
)
## S3 method for class 'efitMS'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, npost = 500, ...)
## S3 method for class 'efitMNS'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
## S3 method for class 'efitGRMS'
calcN(obj, newdata, off.set = NULL, CI.level = 0.95, ...)
obj |
A fitted model object. |
newdata |
An (optional) |
off.set |
Either a scalar offset value to apply to each spatial unit
for prediction (e.g. cell area) or a vector of the same length as |
a data.frame
giving the predictions for each spatial unit
as well as the overall abundance estimate for the region with associated
SE and confidence intervals.
counts<- san_nic_pre$counts
emf <- eFrame(y=counts)
mod <- nmix(~1, ~1, data=emf)
Nhat<- calcN(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.