plotRegression: Suitable for regression: This function is a main function....

Description Usage Arguments

View source: R/plotRegression.R

Description

Suitable for regression: This function is a main function. blindDataRegression allows the user to blind a dataset that is intended for regression

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plotRegression(
  df_original,
  y,
  predictors,
  plot_cooksdistance = TRUE,
  plot_crplot = TRUE,
  plot_hatvalues = TRUE,
  plot_qqplot = TRUE,
  plot_studonfitted = TRUE,
  hat_cutoff_min = 2,
  hat_cutoff_max = 3,
  studres_cutoff_min = -2,
  studres_cutoff_max = 2,
  lowess = TRUE,
  lowesscol = "blue"
)

Arguments

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


rjbderooij/blindData_Git documentation built on Dec. 20, 2020, 5:17 a.m.