View source: R/plotRegression_StudentizedResidualsOnFittedValues.R
Suitable for regression: This function creates a plot of studentized residuals on fitted values
1 2 3 4 5 6 7 8 9 | plotRegression_StudentizedResidualsOnFittedValues(
df_original,
y,
predictors,
studres_cutoff_min = -2,
studres_cutoff_max = 2,
lowess = TRUE,
lowesscol = "blue"
)
|
df_original |
# original dataframe |
y |
# name of dependent variable |
predictors |
# name of predictors, for example c("expert", "conflict)#' |
studres_cutoff_min |
= -2 # value below which cases gets highlighted |
studres_cutoff_max |
= 2 # value above which cases gets highlighted |
lowess |
= TRUE # fit lowess line |
lowesscol |
= "blue # color of lowess line |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.