Computes the contribution of one condition to normL2().
Usage
evalConditionResidual(
dataI,
predictionI,
errfn = NULL,
fixed = NULL,
cn = NULL,
eCondNames = NULL,
deriv = TRUE,
deriv2 = FALSE,
optBLOQ = c("M3", "M1", "M4NM", "M4BEAL"),
df = Inf
)Arguments
- dataI
data.frameof one condition of a datalist, with columnsname,time,valueandsigma.- predictionI
prdframe of that condition.
- errfn
Optional obsfn, the error model. Default
NULL.- fixed
Optional named numeric vector of fixed parameters, passed to
errfn. DefaultNULL.- cn
Character, the condition name. Required when
errfnis set.- eCondNames
Character vector, the conditions
errfnis defined for. DefaultNULL, all.- deriv
Logical.
TRUE(default) returns the gradient and the Gauss-Newton Hessian.- deriv2
Logical.
TRUEreturns the exact Hessian, from the second derivatives of the prediction. DefaultFALSE.- optBLOQ
Character, the treatment of data below the limit of quantification, as in
normL2(). Default"M3".- df
Degrees of freedom of a Student-t likelihood as in
normT();Inf(default) is the normal one.
Value
An objlist.