Usage
multdrc(formula, curve, collapse, weights, data=NULL, boxcox = FALSE,
bcAdd = 0, varPower = FALSE, startVal, fct = l4(), na.action = na.fail,
hetvar = NULL, robust="mean", type = "continuous", cm = NULL,
logDose = NULL, fctList = NULL, control = mdControl())
Arguments
formula
a symbolic description of the model to be fit. Either of the form 'response $~$ dose' or as a data frame with response value
in first column and dose in second column.
curve
a numeric vector or factor containing the grouping of the data.
collapse
a data frame with a many columns as there are parameters in the non-linear function. Or a list containing a formula for each
parameter in the non-linear function.
weights
a numeric vector containing weights.
data
an optional data frame containing the variables in the model.
boxcox
logical or numeric. If TRUE the optimal Box-Cox transformation is applied to the model.
If FALSE (the default) no Box-Cox transformation is applied. If numeric the specified value is used in the Box-Cox transformation.
bcAdd
a numeric value specifying the constant to be added on both sides prior to Box-Cox transformation. The default is 0.
varPower
logical. If TRUE the variance is modelled as a power function of the mean.
If FALSE (the default) no variance modelling is applied.
startVal
an optional numeric vector containing start values for all parameters in the model. Overrules any self starter function.
fct
a list with three or 5 elements specifying the non-linear
function, the accompanying self starter function, the names of the parameter in the non-linear function and, optionally, the first and second derivatives.
na.action
a function which indicates what should happen when the data contain 'NA's. The default is 'na.fail'. To omit 'NA's use
'na.omit'.
hetvar
a vector specifying the grouping for heterogeneous variances.
robust
a character string specifying the rho function for robust estimation. Default is non-robust least squares estimation ("mean").
Available robust methods are: median estimation ("median"), least median of squares ("lms"), least trimmed squares ("lts"),
type
a character string specifying the data type: binomial and continuous are the only options currently.
cm
character string or numeric value specifying the level in curve
corresponding to control measurements.
logDose
a numeric value or NULL. If log doses value are provided the base of the logarithm should be specified (exp(1) for the natural logarithm
and 10 for 10-logarithm).
fctList
a list of functions in case different functions need to be fit to different curves.
control
a list of arguments controlling constrained optimisation (zero as boundary), maximum number of iteration in the optimisation,
relative tolerance in the optimisation, warnings issued during the optimisation.