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
1 | cooksdOutlier(dt, fml, thresh = 4, outlier.colname = "outlier")
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.