50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PROPER (version 1.4.2)

summaryPower: Generate a summary table for power analysis result

Description

Takes a result object from "comparePower" function and print out a table to summarize important power-related quantities. The results are marginalized, meaning that they are averaged quantities over all strata and simulations. This provides a quick view of the marginal results for power-related quantities under all sample sizes.

Usage

summaryPower(powerOutput)

Arguments

powerOutput
The result object from "comparePower" function.

Value

A matrix with multiple rows, each for a different sample size. Columns include sample size, specified nomial type I control value (for FDR or p-values), actual FDR, marginal power, averaged number of true and false discoveries, and false discovery costs.

See Also

runSims, comparePower

Examples

Run this code
## Not run: 
# simOptions = RNAseq.SimOptions.2grp()
# simRes = runSims(Nreps=c(3,5,7), sim.opts=simOptions, nsims=5,
#                  DEmethod="edgeR")
# powers = comparePower(simRes)
# summaryPower(powers)
# ## End(Not run)

Run the code above in your browser using DataLab