PomaOutliers | R Documentation |
PomaOutliers
analyses and removes statistical outliers from the data.
PomaOutliers(
data,
method = "euclidean",
type = "median",
outcome = NULL,
coef = 2,
labels = FALSE
)
data |
A |
method |
Character. Indicates the distance measure method to perform MDS. |
type |
Character. Indicates the type of outlier analysis to perform. Options are "median" (default) and "centroid". See |
outcome |
Character. Indicates the name of the |
coef |
Numeric. Indicates the outlier coefficient. Lower values are more sensitive to outliers while higher values are less restrictive about outliers. |
labels |
Logical. Indicates if sample names should to be plotted. |
A list
with the results.
Pol Castellano-Escuder
data <- POMA::st000336 %>% # Example SummarizedExperiment object included in POMA
PomaImpute() %>%
PomaNorm()
## Output is a list with objects `polygon_plot` (ggplot2 object), `distance_boxplot` (ggplot2 object), `outliers` (tibble), and `data` (outlier-free SummarizedExperiment)
outlier_results <- data %>%
PomaOutliers(method = "euclidean",
type = "median",
outcome = NULL,
coef = 2,
labels = FALSE)
outlier_results$data # cleaned SummarizedExperiment object
## Change oulier group factor
outlier_results2 <- data %>%
PomaOutliers(method = "euclidean",
type = "median",
outcome = "steroids",
coef = 2,
labels = FALSE)
outlier_results2$data # cleaned SummarizedExperiment object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.