View source: R/statistics_reports.R
| outlier_report | R Documentation |
Uses transparent screening rules for numeric survey response variables. The report supports data review before modelling, not automatic deletion.
outlier_report(
data,
variables = NULL,
method = c("zscore", "iqr", "mahalanobis"),
z_cut = 3,
iqr_multiplier = 1.5,
p_cut = 0.975
)
data |
A data.frame. |
variables |
Character vector of numeric variables to screen. When
|
method |
Outlier rule. |
z_cut |
Numeric cutoff for |
iqr_multiplier |
Numeric multiplier for |
p_cut |
Probability cutoff for |
An object of class sframe_outlier_report with the method, screened
variables, a result table, flagged row numbers, and a reporting prompt.
demo <- sframe_demo_data()
outliers <- outlier_report(
demo$responses,
variables = c("dm_1", "dm_2", "sat_1"),
method = "zscore"
)
outliers$flagged_rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.