cooksdOutlier: Take a data.table and adds a column indicating whether that...

Description Usage Arguments

Description

Take a data.table and adds a column indicating whether that row is an outlier based on cook's distance with respect to a linear regression using the provided formula

Usage

1
cooksdOutlier(dt, fml, thresh = 4, outlier.colname = "outlier")

Arguments

dt

a data.table obj

fml

formula obj

thresh

Cooks distance threshold for outlier; if the cooks distance is greater than thresh * mean(cooks distance) then the data point will be treated as an outlier

outlier.colname

Column name of the new boolean column that will indicate if the row is an outlier


rajkar86/shinypipe documentation built on Aug. 22, 2021, 9:48 p.m.