Description Usage Arguments Value Examples
This function computes the raw p-values for all vs. all or all vs. control comparisons using a custom function.
1 | customPost(data, control = NULL, test, ...)
|
data |
Data set (matrix or data.frame) to apply the test. The column names are taken as the groups and the values in the matrix are the samples. |
control |
Either the number or the name of the column for the control algorithm. If this parameter is not provided, the all vs all comparison is performed. |
test |
Function to perform the test. It requires two parameters, |
... |
Additional parameters for the test function. |
A matrix with all the pairwise raw p-values.
1 2 3 4 5 6 | data(data_gh_2008)
test <- function(x, y, ...) {
t.test(x, y, paired=TRUE)
}
customPost(data.gh.2008, control=1, test=test)
customPost(data.gh.2008, test=test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.