View source: R/assumption_checking.R
A helper function for jcreg_dfbetas
. Plots the DFBETAS for a single
predictor variable. Returns a ggplot2::ggplot object.
1 | dfb_col(df_betas, predictor, nLabels = 3)
|
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 |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.