BayesianTools (version 0.1.0)

plotTimeSeriesResults: Creates a time series plot typical for an MCMC / SMC fit

Description

Creates a time series plot typical for an MCMC / SMC fit

Usage

plotTimeSeriesResults(sampler, model, observed, error = NULL,
  plotResiduals = T, start = 1)

Arguments

sampler
Either a) a matrix b) an MCMC object (list or not), or c) an SMC object
model
function that calculates model predictions for a given parameter vector
observed
observed values
error
function with signature f(mean, par) that generates error expectations from mean model predictions. Par is a vector from the matrix with the parameter samples (full length). f needs to know which of these parameters are parameters of the error function
plotResiduals
logical determining whether residuals should be plotted
start
numeric start value for the plot (see getSample)