library("gamlss2")
data("abdom", package = "gamlss.data")
## specify the model Formula
<- y ~ s(x) | s(x)
f
## estimate model with different step length
## control in the RS algorithm
<- gamlss2(f, data = abdom, family = BCT, step = 1)
b1 <- gamlss2(f, data = abdom, family = BCT, step = 0.9) b2
Control Parameters
Description
Various parameters that control fitting of GAMLSS using gamlss2
.
Usage
gamlss2_control(optimizer = RS, trace = TRUE,
flush = TRUE, light = FALSE, expand = TRUE,
model = TRUE, x = TRUE, y = TRUE,
fixed = FALSE, ...)
Arguments
optimizer
|
Function, the optimizer function that should be used for fitting. |
trace
|
Logical, should information be printed while the algorithm is running? |
flush
|
Logical, use flush.console for displaying the current output in the console.
|
light
|
Logical, if set to light = TRUE , no model frame, response, model matrix and other design matrices will be part of the return value.
|
expand
|
Logical, if fewer formulas are supplied than there are parameters of the distribution, should formulas with intercept only formulas be added? |
model
|
Logical, should the model frame be included as component of the returned object. |
x
|
Logical, indicating whether the model matrix should be included as component of the returned object. |
y
|
Logical, should the response be included as component of the returned object. |
fixed
|
Logical, a named vector of parameters that should be fixed during estimation. See the examples for gamlss2 .
|
…
|
Further control parameters to be part of the return value, e.g., used within optimizer function RS .
|
Details
The control parameters in gamlss2_control
can also be extended, e.g., if another optimization function is used, newly specified control parameters are automatically passed on to this function.
Value
A list with the arguments specified.
See Also
RS
, gamlss2