rodeoCompareAll: Simulate and compare with observations for multiple data sets

Description Usage Arguments Value Note Author(s)

View source: R/rodeoCompareAll.r

Description

Extends rodeoCompare for use with multiple data sets.

Usage

1
rodeoCompareAll(globals, locals, model, lst_obs, extract, t0 = NULL)

Arguments

globals

Named numeric vector holding parameters and/or initial values. These are global in the sense that they are common to all elements of obs.

locals

A numeric matrix with row and column names. Each row holds the values of parameters and/or initial values applying to a specific set of observations. The matching between locals and lst_obs is deduced from the row and element names, respectively.

model

Object of class rodeo.

lst_obs

A list of numeric matrices, each of which holds numeric times in the first column and values of observed variables in the remaining columns.

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 five columns:

Note

No notes.

Author(s)

David Kneis david.kneis@tu-dresden.de


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