inst/doc/Most-typical-and-most-deviant.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup, message = F-------------------------------------------------------
library(MMRcaseselection)

## -----------------------------------------------------------------------------
df <- lm(mpg ~ disp + wt, data = mtcars)
most_typical(df)
most_deviant(df)

## -----------------------------------------------------------------------------
# largest positive residual
most_underpredicted(df)
# largest negative residual
most_overpredicted(df)

Try the MMRcaseselection package in your browser

Any scripts or data that you put into this service are public.

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