Method for extracting model fitted values and detection probabilities from a fitted spatial N-mixture (spNMix
) model.
# S3 method for spNMix
fitted(object, type = 'marginal', ...)
A list comprised of:
A three-dimensional numeric array of fitted values for use in Goodness of Fit assessments. Array dimensions correspond to MCMC samples, sites, and replicates.
A three-dimensional numeric array of detection probability values. Array dimensions correspond to MCMC samples, sites, and replicates.
object of class spNMix
.
a character string indicating whether fitted values should be generated conditional on the estimated latent abundance values (type = 'conditional'
) estimated during the model or based on the marginal expected abundance values (type = 'marginal'
).
currently no additional arguments
A method to the generic fitted
function to extract fitted values and detection probabilities for fitted model objects of class spNMix
.