Description Usage Arguments Value Examples
Deviance residuals for an 'em.glm' object.
1 2 3 |
object |
An 'em.glm' object. |
x |
An n-by-p design matrix. |
y |
A vector of observation of length n. |
weight |
A n length vector of observation weight terms. This is currently designed to be either the exposure for a Poisson model or the number of trials for a Logistic model. |
type |
Residual type - either deviance or Pearson's residuals. |
... |
other arguments. |
An n length vector of residuals.
1 2 3 4 5 6 | x <- model.matrix(~ factor(wool) + factor(tension), warpbreaks)
y <- warpbreaks$breaks
m <- em.glm(x = x, y = y, K = 2, b.init = "random")
residuals(m, x = x, y = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.