dfb_col: DFBETAS Plot

Description Usage Arguments

View source: R/assumption_checking.R

Description

A helper function for jcreg_dfbetas. Plots the DFBETAS for a single predictor variable. Returns a ggplot2::ggplot object.

Usage

1
dfb_col(df_betas, predictor, nLabels = 3)

Arguments

df_betas

A dataframe containing one or more columns including the DFBETAS of the predict variable.

predictor

A string. The name of the column in data to be used as the predictor variable.

nLabels

The number of potential influential points to label. Defaults to 3. A value of 0 means do not label potential influential points. There is currently a bug where it always labels at least one point.

residuals

A vector or a dataframe containing the residuals assosiated with the data. Its length must be the same as the numer of rows in data


mtnbikerjoshua/jcreg documentation built on April 18, 2021, 10:01 p.m.