rodeoCompare: Simulate and compare with observations

Description Usage Arguments Value Note Author(s)

View source: R/rodeoCompare.r

Description

Runs a z0-dimensional rodeo model for specific parameter and initial values and returns a list that makes it easy to compare simulated and observed data (e.g. for plotting or calculating the goodness-of-fit).

Usage

1
rodeoCompare(inputs, model, obs, extract, t0 = NULL)

Arguments

inputs

Named numeric vector. This holds the values of parameters and/or initial values.

model

Object of class rodeo.

obs

Numeric matrix or data frame with numeric times in the first column and observed data in the remaining column(s).

extract

A function that extracts simulated data from the output matrix of simul. It should return a matrix of dimensions nt * nv where nt is the number of model output times and nv equals the number of value columns in obs, i.e. excluding the time column. Typically, the function selects a specific column (or multiple colums) from the original output matrix of the ODE solver or it computes new column(s) from the original ones (e.g. the sum of two state variables).

t0

Time corresponding to the supplied initial values in argument inputs. If NULL, the element obs[1,1] will be used. The value typically needs to be set if the observations are delayed with respect to the start of the simulation period.

Value

A data frame with four columns:

Note

The number of rows of the output may be reduced in comparison to the number of rows in obs if t0 is greater than obs[1,1].

Author(s)

David Kneis david.kneis@tu-dresden.de


dkneis/knut documentation built on Jan. 7, 2020, 4:27 a.m.