View source: R/outliers_remove.R
outliers_remove | R Documentation |
Use the method M4 in Bernal Vasquez (2016). Bonferroni Holm test to judge residuals standardized by the re scaled MAD (BH MADR).
outliers_remove(data, trait, model, drop_na = TRUE)
data |
Experimental design data frame with the factors and traits. |
trait |
Name of the trait. |
model |
The fixed or random effects in the model. |
drop_na |
drop NA values from the data.frame |
Function to remove outliers in MET experiments
list. 1. Table with date without outliers. 2. The outliers in the dataset.
Bernal Vasquez, Angela Maria, et al. “Outlier Detection Methods for Generalized Lattices: A Case Study on the Transition from ANOVA to REML.” Theoretical and Applied Genetics, vol. 129, no. 4, Apr. 2016.
library(inti)
rmout <- potato %>% outliers_remove(
data = .
, trait ="stemdw"
, model = "0 + treat*geno + (1|bloque)"
, drop_na = FALSE
)
rmout
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.