We want to know if there is any difference between groups. We’ll plot the expression profile of the DEPDC1 gene according to the patients’ molecular groups. Ref.group = ".all.") # Pairwise comparison against allĪ typical situation, where pairwise comparisons against “all” can be useful, is illustrated here using the myeloma data set available on Github. # Comparison of each group against base-meanĬompare_means(len ~ dose, data = ToothGrowth, ref.group = ".all.",
Ref.group = "0.5") # Pairwise comparison against reference Stat_compare_means(label = "p.signif", method = "t.test", Stat_compare_means(method = "anova", label.y = 40)+ # Add global p-value
P + stat_compare_means(method = "t.test")
If specified, for a given grouping variable, each of the group levels will be compared to the reference group (i.e. control group). Ref.group: a character string specifying the reference group. When specified the mean comparisons will be performed in each subset of the data formed by the different levels of the variables. : variables used to group the data set before applying the test. Paired: a logical indicating whether you want a paired test. Perform one-way ANOVA test comparing multiple groups.