residstd: Classification of cases as typical and deviant using the...

Description Usage Arguments Details Value Examples

View source: R/classification.R

Description

The share of the standard deviation of the residuals is used to designate cases as typical or deviant.

Usage

1
residstd(lmobject, stdshare = 1)

Arguments

lmobject

Object generated with lm

stdshare

Share of standard deviation of residuals distinguishing between typical and deviant cases (default is 1).

Details

Proposed by Lieberman, Evan S. (2005): Nested Analysis as a Mixed-Method Strategy for Comparative Research. American Political Science Review 99 (3): 435-452. https://doi.org/10.1017/S0003055405051762.

Value

A dataframe with the observed outcome, fitted outcome, residual standard deviation and classification of cases as typical or deviant.

Examples

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

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