Classification of cases as typical and deviant using the standard deviation of the residuals.
Source:R/classification.R
residstd.RdThe share of the standard deviation of the residuals is used to designate cases as typical or deviant.
Arguments
- lmobject
Object generated with
lmShare of standard deviation of residuals distinguishing between typical and deviant cases (default is 1).
Value
A dataframe with the observed outcome, fitted outcome, residual standard deviation and classification of cases as typical or deviant.
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. doi:10.1017/S0003055405051762 .
Examples
df <- lm(mpg ~ disp + wt, data = mtcars)
residstd(df, stdshare = 1)
#> Error in x$terms: object of type 'closure' is not subsettable