getDharmaResiduals: Creates a DHARMa object

View source: R/plotTimeSeries.R

getDharmaResidualsR Documentation

Creates a DHARMa object

Description

Creates a DHARMa object

Usage

getDharmaResiduals(model, parMatrix, numSamples, observed, error, plot = TRUE)

Arguments

model

function that calculates model predictions for a given parameter vector

parMatrix

a parameter matrix from which the simulations will be generated

numSamples

the number of samples

observed

a vector of 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

plot

logical, determining whether the simulated residuals should be plotted

Author(s)

Tankred Ott


BayesianTools documentation built on Feb. 16, 2023, 8:44 p.m.