Description Usage Arguments Examples
This suite of functions provides the basic quantities which are used in forming a wide variety of diagnostics for checking the quality of regression fits.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## S3 method for class 'cmp'
influence(model, ...)
## S3 method for class 'cmp'
hatvalues(model, ...)
## S3 method for class 'cmp'
rstandard(
model,
infl = influence.cmp(model),
type = c("deviance", "pearson"),
...
)
## S3 method for class 'cmp'
cooks.distance(
model,
infl = influence(model),
res = infl$pear_res,
hat = infl$hat,
...
)
|
model |
an object class 'cmp', obtained from a call to |
... |
other arguments passed to or from other methods (currently unused). |
infl |
influence structure as returned by |
type |
type of residuals for |
res |
residuals, with proper default. |
hat |
hat values H[i,i], see default. |
1 2 3 4 5 6 | data(attendance)
M.attendance <- glm.cmp(daysabs~ gender+math+prog, data=attendance)
influence(M.attendance)
hatvalues(M.attendance)
rstandard(M.attendance, type = "pearson")
cooks.distance(M.attendance)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.