fitted.NMix {spAbundance} | R Documentation |
Extract Model Fitted Values for NMix Object
Description
Method for extracting model fitted values and detection probabilities from a fitted N-mixture (NMix
) model.
Usage
## S3 method for class 'NMix'
fitted(object, type = 'marginal', ...)
Arguments
object |
object of class |
type |
a character string indicating whether fitted values should be generated conditional on the estimated latent abundance values ( |
... |
currently no additional arguments |
Details
A method to the generic fitted
function to extract fitted values and detection probabilities for fitted model objects of class NMix
.
Value
A list comprised of:
y.rep.samples |
A three-dimensional numeric array of fitted values for use in Goodness of Fit assessments. Array dimensions correspond to MCMC samples, sites, and replicates. |
p.samples |
A three-dimensional numeric array of detection probability values. Array dimensions correspond to MCMC samples, sites, and replicates. |