Learn R Programming

spAbundance (version 0.1.3)

summary.lfMsNMix: Methods for lfMsNMix Object

Description

Methods for extracting information from fitted latent factor multi-species N-mixture (lfMsNMix) model.

Usage

# S3 method for lfMsNMix
summary(object, level = 'both', quantiles = c(0.025, 0.5, 0.975), 
        digits = max(3L, getOption("digits") - 3L), ...)
# S3 method for lfMsNMix
print(x, ...)
# S3 method for lfMsNMix
plot(x, param, density = TRUE, ...)

Value

No return value, called to display summary information of a lfMsNMix object.

Arguments

object, x

object of class lfMsNMix.

level

a quoted keyword that indicates the level to summarize the model results. Valid key words are: "community", "species", or "both".

quantiles

for summary, posterior distribution quantiles to compute.

digits

for summary, number of digits to report.

param

parameter name for which to generate a traceplot. Valid names are "beta", "beta.star", "sigma.sq.mu", "beta.comm", "tau.sq.beta", "alpha", "alpha.star", "sigma.sq.p", "alpha.comm", "tau.sq.alpha", "lambda".

density

logical value indicating whether to also generate a density plot for each parameter in addition to the MCMC traceplot.

...

currently no additional arguments

Details

A set of standard extractor functions for fitted model objects of class lfMsNMix, including methods to the generic functions print, summary, and plot.