plot.evmSim: Plots for evmSim objects

View source: R/plot.evmSim.R

plot.evmSimR Documentation

Plots for evmSim objects

Description

This function produces diagnostic plots for the Markov chains used to simulate from the posterior distributions for the model parameters. If the chains have converged on the posterior distributions, the trace plots should look like "fat hairy caterpillars" and their cumulative means should converge rapidly. Moreover, the autocorrelation functions should converge quickly to zero.

Usage

## S3 method for class 'evmSim'
plot(
  x,
  which.plots = 1:3,
  chain = 1,
  density.adjust = 2,
  print.seed = FALSE,
  ...
)

Arguments

x

an object of class evmSim

which.plots

Which plots to produce. Option 1 gives kernel density estimates, 2 gives traces of the Markov chains with superimposed cumulative means, 3 gives autocorrelation functions.

chain

Which chain to use in the trace and ACF plots. Only used if more than one chain was run. Defaults to chain = 1. If you ran multiple chains, you'll want to look at them all.

density.adjust

In plot method for class evmSim. Passed into density. Controls the amount of smoothing of the kernel density estimate.

print.seed

Whether or not to print the seed used in the simulations, or to annotate the plots with it.

...

ignored

See Also

evm

density


texmex documentation built on June 22, 2024, 12:26 p.m.