most_typical: Identification of the most typical case

Description Usage Arguments Details Value Examples

View source: R/most_typical.R

Description

The most typical case (= best predicted case) based on regression estimates.

Usage

1
most_typical(lmobject)

Arguments

lmobject

Object generated with lm

Details

Proposed by Seawright, Jason and John Gerring (2008): Case Selection Techniques in Case Study Research: A Menu of Qualitative and Quantitative Options. Political Research Quarterly 61 (2): 294-308. (https://journals.sagepub.com/doi/pdf/10.1177/1065912907313077)

Value

The most typical case having the smallest absolute residual of all cases.

Examples

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

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