most_overpredicted {MMRcaseselection} | R Documentation |
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.
most_overpredicted(lmobject)
lmobject |
Object generated with |
The most overpredicted case with the largest negative residual (the most negative residual).
df <- lm(mpg ~ disp + wt, data = mtcars)
most_overpredicted(df)