knockout_lm: Knock Out Outliers in a Linear Regression

Description Usage Arguments Value

View source: R/knockout_lm.R

Description

Knock out outliers in a linear regression by recursively pruning those data points that contribute the most to the regression error, operationalized as the residual sum of squares at each knockout iteration.

Usage

1

Arguments

data

Data frame

formula

Regression formula

id.var

Name of identifier variable (column)

Value

Data frame with the following columns:

iteration

Knockout iteration

knockee

Data pointed knocked out at this iteration

RSS_reduction

Reduction in residual sum of squares resulting from the knockout


hkauhanen/hipster documentation built on July 4, 2020, 11:25 p.m.