Description Usage Arguments Value Examples
Function removes outliers at a relative percentage at both ends.
1 | getRowsOutlierRemoval(model, cutoff = 0.5)
|
model |
Object of type |
cutoff |
Relative cutoff on each side in percent (default: |
Returns vector with indices of the observations to be removed.
1 2 3 4 5 6 | d <- data.frame(x = 1:200, y = 1:200 + rnorm(200))
m <- lm(y ~ x, d)
idx_rm <- getRowsOutlierRemoval(m)
m <- lm(y ~ x, d[-idx_rm, ])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.