View source: R/deviance_residuals.R
deviance_residuals | R Documentation |
deviance_residuals
is used to generate deviance residuals for a generalized log-gamma regression model.
deviance_residuals(object, ...)
object |
an object of the class sglg. This object is returned from the call to glg(), sglg(), survglg() or ssurvglg(). |
... |
other arguments. |
Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>
Carlos Alberto Cardozo Delgado, Semi-parametric generalized log-gamma regression models. Ph. D. thesis. Sao Paulo University.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.