Description Usage Arguments Details See Also Examples
View source: R/standResidPlot.R
Produce a Standardized Residual plot. NOT recommended. Use Studentized Deleted Residuals instead.
1 2 3 4 5 6 7 8 | standResidPlot(
obj,
key.variable = NULL,
print.obs = FALSE,
print.plot = TRUE,
sort.obs = TRUE,
all.obs = FALSE
)
|
obj |
Object from an lm() fiitted equation. |
key.variable |
Required if lm() data object is of tibble class. Name of the unique key variable (identifier variable). If data object is of data.frame class, this is optional and row.names will be used instead. |
print.obs |
Logical: Should observations outside the specified sigma level be printed to the console? |
print.plot |
Logical: Should plot be created? |
sort.obs |
Logical: Should observations (if print.obs=TRUE) be sorted? |
all.obs |
Logical: Should all observations be printed? |
This functions creates Standardized Residual values for an observation within an lm() model based on the following: (e_i / S_e)
1 2 3 | mod <- lm(hp ~ disp, data=mtcars)
summary(mod)
standResidPlot(mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.