calc.power.est: Calculate power and proportion of observations with power...

Description Usage Arguments Details Value Author(s) Examples

Description

Given a set of sd and specified effect size, significance level and sample size, calculate power and proportion of observations with power greater than 0.8

Usage

1
calc.power.est(sd, nrep.simu, delta, sig.level)

Arguments

sd

a vector of standard deviation

nrep.simu

a vector which specifies the sample size for calculate power

delta

effect size for sample size calculation

sig.level

type I error rate to control

Details

to be called by list.power.est

Value

calc.power

the matrix of calculated power (ngenes x length( nrep.simu ))

propn.80

a vector of with the same length as the number of observations to store the proportion of observations with power greater than 0.8

Author(s)

Peng Liu peng_liu@groton.pfizer.com

Examples

1
2
sd <- rep(0.1,5)
calc.power.est(sd, nrep.simu=c(3,5,8), delta = 1, sig.level = 0.05)

warnes/exp.ssize documentation built on May 4, 2019, 12:59 a.m.