power.calc: Calculates the empirical and theoretical power

View source: R/power.calc.R

power.calcR Documentation

Calculates the empirical and theoretical power

Description

The function determines the empirical and theoretical power. The empirical power is the proportion of simulations in which the z-statistic for the parameter of interest exceeds the z-statistic for the desured level if statistical significance. The theoretical power is the power of the study.

Usage

power.calc(pval.thresh = NULL, p.values = NULL)

Arguments

pval.thresh

cut-off p-value defining statistical significance.

p.values

Vector of p-values (one per genetic variant).

Value

a list that contains the computed empirical power and theoretical power.

Author(s)

Gaye A.; Westerman K.


kwesterman/ESPRESSO.GxE.RV documentation built on Aug. 27, 2023, 4:44 a.m.