Learn R Programming

api2lm (version 0.2)

arg_check_influence_plot: Check arguments of dfbetas_plot

Description

Check arguments of dfbetas_plot

Usage

arg_check_influence_plot(
  model,
  id_n,
  add_reference,
  alpha,
  size,
  text_arglist,
  abline_arglist,
  extendrange_f
)

Arguments

model

A fitted model object from the lm function.

id_n

The number of points to identify with labels with respect to largest absolute criterion. The default is 3 labels.

add_reference

A logical value indicating whether a reference line should be added. The default is TRUE.

alpha

The default quantile used for the horizontal reference lines. The default is 0.05. See Details.

size

A numeric vector of length 2 that provides guidelines for the size of the points.

text_arglist

Additional arguments passed to the text function, which is used to display the points that are identified.

abline_arglist

A named list specifying additional arguments passed to the abline function for the horizontal reference line added to the plot.

extendrange_f

Positive number(s) specifying the fraction by which the range of the residuals should be extended using the extendrange function. If longer than one, f[1] is used on the left and f[2] on the right.