| sdl_control | R Documentation |
Optimization parameters passed to optim for the fit of an modified skew
discrete Laplace (SDL) regression model via sdlrm. This function acts in the
same spirit as betareg.control from the betareg package. Its
primary purpose is to gather all the optimization control arguments in a single function.
sdl_control(
method = "BFGS",
maxit = 8000,
hessian = FALSE,
start = NULL,
reltol = 1e-10,
...
)
method |
the method to be used. See "Details" in |
maxit |
the maximum number of iterations of the algorithm. Defaults to |
hessian |
logical. Should a numerically differentiated Hessian matrix be returned? |
start |
an optional vector with starting values for all parameters for fitting an SDL
regression model. It must be passed in the order: |
reltol |
relative convergence tolerance. The algorithm stops if it is unable to reduce the
value by a factor of reltol * (abs(val) + reltol) at a step. Defaults to |
... |
further arguments to be passed to |
A list with the arguments specified.
Rodrigo M. R. de Medeiros <rodrigo.matheus@ufrn.br>
Cribari-Neto, F., and Zeileis, A. (2010). Beta regression in R. Journal of statistical software, 34, 1-24.
# Data set: pss (for description run ?pss)
barplot(table(pss$difference), xlab = "PSS index difference", ylab = "Frequency")
boxplot(pss$difference ~ pss$group, xlab = "Group", ylab = "PSS index difference")
## Fit of the model using the Fisher information matrix to obtain the covariance
## matrix of the coefficients
fit1 <- sdlrm(difference ~ group, data = pss, xi = 1)
## Fit of the model using the numerical Hessian matrix provided by optim
fit2 <- sdlrm(difference ~ group, data = pss, xi = 1, hessian = TRUE)
## Compare the reported standard errors
summary(fit1)
summary(fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.