Set control arguments in the control argument in the function drm.
Usage
drmc(
constr = FALSE,
errorm = TRUE,
maxIt = 500,
method = "BFGS",
noMessage = FALSE,
relTol = 1e-07,
rmNA = FALSE,
useD = FALSE,
trace = FALSE,
otrace = FALSE,
warnVal = -1,
dscaleThres = 1e-15,
rscaleThres = 1e-15,
conCheck = TRUE
)Arguments
- constr
logical. If
TRUEoptimisation is constrained, only yielding non-negative parameters.- errorm
logical specifying whether failed convergence in
drmshould result in an error or only a warning.- maxIt
numeric. The maximum number of iterations in the optimisation procedure.
- method
character string. The method used in the optimisation procedure. See
optimfor available methods.- noMessage
logical, specifying whether or not messages should be displayed.
- relTol
numeric. The relative tolerance in the optimisation procedure.
- rmNA
logical. Should
NAs be removed from sum of squares used for estimation? Default isFALSE(not removed).- useD
logical. If
TRUEderivatives are used for estimation (if available).- trace
logical. If
TRUEthe trace fromoptimis displayed.- otrace
logical. If
TRUEerror messages from the optimisation are displayed.- warnVal
numeric. If equal to 0 then the warnings are stored and displayed at the end. See under ‘warn’ in
options. The default results in suppression of warnings.- dscaleThres
numeric value specifying the threshold for dose scaling.
- rscaleThres
numeric value specifying the threshold for response scaling.
- conCheck
logical, switching on/off handling of control measurements.
Examples
## Displaying the default settings
drmc()
#> $constr
#> [1] FALSE
#>
#> $errorm
#> [1] TRUE
#>
#> $maxIt
#> [1] 500
#>
#> $method
#> [1] "BFGS"
#>
#> $noMessage
#> [1] FALSE
#>
#> $relTol
#> [1] 1e-07
#>
#> $rmNA
#> [1] FALSE
#>
#> $useD
#> [1] FALSE
#>
#> $trace
#> [1] FALSE
#>
#> $otrace
#> [1] FALSE
#>
#> $warnVal
#> [1] -1
#>
#> $dscaleThres
#> [1] 1e-15
#>
#> $rscaleThres
#> [1] 1e-15
#>
#> $conCheck
#> [1] TRUE
#>
## Using the 'method' argument
model1 <- drm(rootl ~ conc, data = ryegrass, fct = LL.4())
model2 <- drm(rootl ~ conc, data = ryegrass, fct = LL.4(),
control = drmc(method = "Nelder-Mead"))
