This function is used for create postHocTest
object, and is only used for
developers.
postHocTest(
result,
abundance,
conf_level = 0.95,
method = "tukey",
method_str = paste("Posthoc multiple comparisons of means: ", method)
)
a IRanges::SimpleDFrameList
object.
data.frame.
numeric, confidence level.
character, method for posthoc test.
character, illustrates which method is used for posthoc test.
a postHocTest
object.
require(IRanges)
pht <- postHocTest(
result = DataFrameList(
featureA = DataFrame(
comparisons = c("group2-group1",
"group3-group1",
"group3-group2"),
diff_mean = runif(3),
pvalue = rep(0.01, 3),
ci_lower = rep(0.01, 3),
ci_upper = rep(0.011, 3)
),
featureB = DataFrame(
comparisons = c("group2-group1",
"group3-group1",
"group3-group2"),
diff_mean = runif(3),
pvalue = rep(0.01, 3),
ci_lower = rep(0.01, 3),
ci_upper = rep(0.011, 3)
)
),
abundance = data.frame(
featureA = runif(3),
featureB = runif(3),
group = c("group1", "group2", "grou3")
)
)
pht
#> postHocTest-class object
#> Pairwise test result of 2 features, DataFrameList object, each DataFrame has five variables:
#> comparisons : pair groups to test which separated by '-'
#> diff_mean: difference in mean proportions
#> pvalue : post hoc test p values
#> ci_lower : lower confidence interval
#> ci_upper : upper confidence interval
#> Posthoc multiple comparisons of means using tukey method