Description Usage Arguments Value Examples
res_3 computes three types of residuals from a linear regression model. These residual types are standardized resisuals, internally studentized residuals, and externally studentized residuals.
1 |
input_data |
a data frame containing the variables in th model |
fit.model |
an R object, returned by lm |
r |
what type of resisuals will be computed: "z" is standardized resisuals, "int" is internally studentized resisuals, and "ex" is externally studentized resisuals |
if standardized resisuals are computed, a list of two elements will be returned
percentage cutoff - If the model assumptions are correct, z will follow a standard normal distribution with mean 0 and variance 1. This can be tested for whether the model follows normal distribution.
standardized resisuals - all the computed standardized residuals
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.