most_underpredicted: Identification of the most underpredicted case

Description Usage Arguments Value Examples

View source: R/deviant.R

Description

The case with the largest positive 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 smaller predicted value.

Usage

1

Arguments

lmobject

Object generated with lm

Value

The most underpredicted case with the largest positive residual (the most positive residual).

Examples

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

ingorohlfing/MMRcaseselection documentation built on Oct. 3, 2021, 1:07 p.m.