posteriorSummary: Posterior Summary For Parameters of a Multi-scale Occupancy...

View source: R/posteriorSummary.R

posteriorSummaryR Documentation

Posterior Summary For Parameters of a Multi-scale Occupancy Model

Description

Estimates the posterior mean, median, and 95% credible limits for each parameter of a multi-scale occupancy model.

Usage

posteriorSummary(fit, burnin = 1, mcError = FALSE,
  outputSummary = FALSE)

Arguments

fit

object of class occModel that contains data and previous state of the model's Markov chain

burnin

initial no. iterations of Markov chain to be omitted from calculations

mcError

logical switch to estimate Monte Carlo standard errors

outputSummary

logical switch to return values of posterior summary statistics

Details

This function estimates the posterior mean, median, and 95% credible limits for each parameter of a multi-scale occupany model using a Markov chain created by occModel.

Value

Prints estimates of posterior summary statistics. If mcError=TRUE, the Monte Carlo standard errors of these estimates are computed. If outputSummary=TRUE, the posterior summaries are returned in a list.

Examples

data(gobyDetectionData)
detections = occData(gobyDetectionData, "site", "sample")
fit = occModel(detectionMats=detections)
posteriorSummary(fit, burnin=100,  mcError = TRUE)

RobertDorazio/eDNAoccupancy documentation built on Sept. 5, 2023, 9:57 a.m.