most_overpredicted: Identification of the most overpredicted case

Description Usage Arguments Value Examples

View source: R/deviant.R

Description

The case with the largest negative difference between the observed value and the predicted value on the outcome. Depending on the research question, there might be a specific interest in the case for which the model performs worst and yields a larger predicted value.

Usage

1

Arguments

lmobject

Object generated with lm

Value

The most overpredicted case with the largest negative residual (the most negative residual).

Examples

1
2
df <- lm(mpg ~ disp + wt, data = mtcars)
most_overpredicted(df)

MMRcaseselection documentation built on July 1, 2020, 9:55 p.m.