View source: R/plotRegression.R
Suitable for regression: This function is a main function. blindDataRegression allows the user to blind a dataset that is intended for regression
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
df_original |
# original dataframe |
y |
# name of dependent variable |
predictors |
# name of predictors, for example c("expert", "conflict) |
plot_cooksdistance |
# Cook's distances plot |
plot_crplot |
# component residual plot |
plot_hatvalues |
# hat-values plot |
plot_qqplot |
# qq norm plot#' |
plot_studonfitted |
# studentized residuals on fitted values plot |
hat_cutoff_min |
= 2 # horizontal line in plot at selected value x mean |
hat_cutoff_max |
= 3 # horizontal line in plot at selected value x mean |
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.