View source: R/plotRegression_Hatvalues.R
Suitable for regression: This function creates a plot for hat-values
1 2 3 4 5 6 7 | plotRegression_Hatvalues(
df_original,
y,
predictors,
hat_cutoff_min = 2,
hat_cutoff_max = 3
)
|
df_original |
# original dataframe |
y |
# name of dependent variable |
predictors |
# name of predictors, for example c("expert", "conflict) |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.