most_deviant {MMRcaseselection} | R Documentation |
Identification of the most deviant case
Description
Identification of the most deviant case (= worst predicted case), based on regression estimates.
Usage
most_deviant(lmobject)
Arguments
lmobject |
Object generated with |
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 deviant case with the largest absolute residual of all cases.
Examples
df <- lm(mpg ~ disp + wt, data = mtcars)
most_deviant(df)
[Package MMRcaseselection version 0.1.0 Index]