summaryPower: Generate a summary table for power analysis result

Description Usage Arguments Value Author(s) See Also Examples

View source: R/power.R

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

1
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.

Author(s)

Hao Wu <hao.wu@emory.edu>

See Also

runSims, comparePower

Examples

1
2
3
4
5
6
7
8
## 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)

PROPER documentation built on Nov. 8, 2020, 6:31 p.m.