deviance_residuals {sglg} | R Documentation |
Deviance Residuals for a Generalized Log-gamma Regression Model
Description
deviance_residuals
is used to generate deviance residuals for a generalized log-gamma regression model.
Usage
deviance_residuals(object, ...)
Arguments
object |
an object of the class sglg. This object is returned from the call to glg(), sglg(), survglg() or ssurvglg(). |
... |
other arguments. |
Author(s)
Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>
References
Carlos Alberto Cardozo Delgado, Semi-parametric generalized log-gamma regression models. Ph. D. thesis. Sao Paulo University.
Examples
# Example 1
n <- 300
error <- rglg(n,0,1,1)
y <- 0.5 + error
fit <- glg(y~1,data=as.data.frame(y))
deviance_residuals(fit)
# Example 2
n <- 300
error <- rglg(n,0,1,1)
x <- runif(n,-3,3)
y <- 0.5 + 2*x + error
fit <- glg(y~x,data=as.data.frame(y,x))
deviance_residuals(fit)
[Package sglg version 0.2.2 Index]