plotACF: Plot ACF for One or More Parameters of a Multi-scale...

View source: R/plotACF.R

plotACFR Documentation

Plot ACF for One or More Parameters of a Multi-scale Occupancy Model

Description

Plots the ACF (autocorrelation function) of the Markov chain for each of 1-4 parameters of a multi-scale occupancy model.

Usage

plotACF(fit, paramName, burnin = 1)

Arguments

fit

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

paramName

vector of names of parameters to be plotted

burnin

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

Details

This function plots the ACF (autocorrelation function) of the Markov chain created by occModel for each of 1-4 parameters of a multi-scale occupancy model.

Examples

data(gobyDetectionData)
detections = occData(gobyDetectionData, "site", "sample")
fit = occModel(detectionMats=detections)
plotACF(fit, c('beta.(Intercept)', 'alpha.(Intercept)', 'delta.(Intercept)'), burnin=100)

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