“anova” (parametric) and “kruskal.test” (non-parametric).If the grouping variable contains more than two levels, then a pairwise comparison is performed. Perform comparison between two groups of samples. “t.test” (parametric) and “wilcox.test”” (non-parametric).For example, formula = c(TP53, PTEN) ~ cancer_group.ĭata: a ame containing the variables in the formula. It’s also possible to perform the test for multiple response variables at the same time. For example, formula = TP53 ~ cancer_group. formula: a formula of the form x ~ group, where x is a numeric variable and group is a factor with one or multiple levels.