gamlss
fitting. Typically
only used when calling gamlss
function with the option control
.gamlss.control(c.crit = 0.001, n.cyc = 20, mu.step = 1, sigma.step = 1, nu.step = 1,
tau.step = 1, gd.tol = 5, iter = 0, trace = TRUE, autostep = TRUE,
save = TRUE, ...)
mu
sigma
nu
tau
refit
is usedautostep=TRUE
save=TRUE
, (the default), saves all the information on exit.
save=FALSE
saves only limited information as the global deviance and AIC.
For example fitted values, design matrices and additive terms mu
, sigma
, nu
or tau
is very useful to aid convergence
if the parameter has a fully parametric model.
However using a step length is not theoretically justified if the model for the parameter includes one or more smoothing terms,
(even thought it may give a very approximate result).
The c.crit
can be increased to speed up the convergence especially for a large set of data which takes longer to fit.
When `trace' is TRUE, calls to the function cat
produce the output for each outer iteration.gamlss
data(aids)
h<-gamlss(y~poly(x,3)+qrt, family=PO, data=aids) #
con<-gamlss.control(mu.step=0.1)
h<-gamlss(y~poly(x,3)+qrt, family=PO, data=aids, control=con) #
rm(h,con)
Run the code above in your browser using DataLab