mixdrc {drc} | R Documentation |
'mixdrc' fits non-linear mixed models where random effects are assigned to some or all of the parameters.
mixdrc(object, random, data)
object |
an object of class 'drc'. |
random |
a character string specifying the random effects. Specification is as in nlme . |
data |
a data frame containing the variables in the model (not optional). |
The function searches through a range of initial values in order to obtain convergence of the estimation procedure.
An object of classes 'drc' and 'nlme'.
Christian Ritz
## First fitting model without random effects model1 <- multdrc(SLOPE~DOSE, CURVE, data=PestSci, collapse=data.frame(HERBICIDE, 1, 1, HERBICIDE)) ## Then fitting model with random effects (assigned to d) model2 <- mixdrc(model1, random="d~1|CURVE", data=PestSci) compParm(model2, "e", "-") ## First fitting model without random effects ## but with a Box-Cox transformation model3 <- multdrc(SLOPE~DOSE, CURVE, data=PestSci, collapse=data.frame(HERBICIDE, 1, 1, HERBICIDE), boxcox=TRUE) ## Then fitting model with random effects (assigned to d) model4 <- mixdrc(model3, random="d~1|CURVE", data=PestSci) compParm(model4, "e", "-") rm(model1, model2, model3, model4)