eval.power.binary: Estimate power for a binary variable

View source: R/eval.power.binary.R

eval.power.binaryR Documentation

Estimate power for a binary variable

Description

This function allows you estimate power for a binary variable given the sample size, effect size, significance threshold.

Usage

eval.power.binary(N, effect, alpha)

Arguments

N

a numeric vector of total study sample size, cases and controls will both be defined as N/2.

effect

a numeric vector of effect size

alpha

a numeric vector of significance thresholds

Value

a matrix of parameter inputs and an estimate(s) of power are returned as a matrix

Examples

eval.power.binary(N = 1000, effect = seq(0.01, 0.3, by = 0.01), alpha = 0.05)


MRCIEU/metaboprep documentation built on Jan. 28, 2023, 7:29 p.m.