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
)data frame; power results for individual, minimum, complete power.
matrix; adjusted p-values, columns are outcomes
matrix; unadjusted p-values, columns are outcomes
vector; which outcomes correspond to nonzero effects.
scalar; the family wise error rate (FWER).
logical; whether to report power results for outcomes with MDES = 0.
logical; whether p-values are unadjusted or not.