Skip to contents

A prediction frame stores model predictions as a matrix with the column "time" and one column per variable. The attributes are "deriv", the first-order sensitivities with respect to the outer parameters (see P()), "deriv2", the second-order sensitivities, and "parameters", the inner parameters used for the prediction.

Prediction lists (prdlist) returned by Xs(), Xd() or Xf() consist of prediction frames. A custom prediction function (see P2X in prdfn()) returns one.

Usage

prdframe(prediction = NULL, deriv = NULL, deriv2 = NULL, parameters = NULL)

Arguments

prediction

numeric matrix of model predictions. Default NULL gives an empty matrix.

deriv

3D numeric array [time, variable, parameter] of first-order sensitivities. Default NULL.

deriv2

4D numeric array [time, variable, parameter, parameter] of second-order sensitivities, symmetric in the last two axes. Default NULL.

parameters

named numeric vector of the inner parameters. Default NULL.

Value

Object of class prdframe, a matrix with the attributes above.