Description Usage Arguments Value Examples
View source: R/smooth_pvalues.R
Hierarchical correction of p-values
1 2 3 4 5 6 7 | smooth_pvalues(
pvalues,
esign = NULL,
tree,
arg_shiftpunct = list(alphaOU = 1, method = "scaled lasso"),
arg_shiftconf = list(alpha_conf = 0.05, method = "score system")
)
|
pvalues |
Vector of p-values. |
esign |
Vector of e-signs (optional). |
tree |
Tree, as a |
arg_shiftpunct |
Arguments to be passed to
|
arg_shiftconf |
Arguments to be passed to
|
A corrected vector.
1 2 3 4 5 | pval_obs <- test_kruskalwallis(chlamydiae$X, chlamydiae$Y)$p.value
tree <- force_ultrametric(chlamydiae$tree)
smooth_pvalues(pvalue = pval_obs, tree = tree,
arg_shiftpunct = list(alpha = c(0.1, 2),
method = "scaled lasso"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.