get_power_results | R Documentation |
This function takes in a matrix of adjusted p-values and unadjusted p-values and outputs different types of power.
This function is mostly for internal use, but may be of interest to users who wish to calculate power on their own.
get_power_results(
adj.pval.mat,
unadj.pval.mat,
ind.nonzero,
alpha,
drop.zero.outcomes = TRUE,
adj = TRUE
)
adj.pval.mat |
matrix; adjusted p-values, columns are outcomes |
unadj.pval.mat |
matrix; unadjusted p-values, columns are outcomes |
ind.nonzero |
vector; which outcomes correspond to nonzero effects. |
alpha |
scalar; the family wise error rate (FWER). |
drop.zero.outcomes |
logical; whether to report power results for outcomes with MDES = 0. |
adj |
logical; whether p-values are unadjusted or not. |
data frame; power results for individual, minimum, complete power.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.