View source: R/hitman_replication.R
hitman_replication | R Documentation |
High-throughput approach for testing replication of two base studies, where each study applies a two-sided test whose
signed statistic and p-value are supplied via tab
, and its desired to find rows where there is replication in a common direction.
hitman_replication(
tab,
cols = 1:4,
reorder.rows = FALSE,
fdr.method = c("BH", "BY"),
prefix = NA
)
tab |
Matrix-like object with statistical and p-value columns. Only the signs of the statistics columns are used.
|
cols |
Vector of column indices or names in the order of |
reorder.rows |
Logical, should rows be reordered by p-value? |
fdr.method |
Character string; either "BH" for Benjamini-Hochberg or "BY" for Benjamini-Yekutieli. See stats::p.adjust. |
prefix |
Character string of length one with prefix of returned columns, e.g. if |
Larger chi-square values are more significant.
Data frame whose rows correspond to the rows of tab
with the same row names and whose columns are
Chi-square for replication on 1 degreee of freedom.
P-value for replication
FDR for replication
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.