Matches data to the prediction by time and name and computes
the residuals and their derivatives. Values below lloq are set to
lloq.
Arguments
- data
data.framewith columnstime,name,value,sigmaandlloq, one row per data point. Rows withsigma = NAtake it fromerr.- out
Prediction matrix, a prdframe: column
time, then one column per observable. Optional attributes"deriv",[time, name, parameter], and"deriv2",[time, name, parameter, parameter].- err
Optional error-model matrix, in the layout of
out. DefaultNULL.
Value
An objframe() with one row per data point and columns time,
name, value, prediction, sigma, residual, weighted.residual,
bloq and weighted.0. Attributes "deriv" and "deriv.err" are the
derivatives of the prediction and of sigma, [data point, parameter];
"deriv2" and "deriv2.err", [data point, parameter, parameter], the
second derivatives when out or err have them. Each is NULL when
missing on the input.