samplsize.calc: Calculates the sample size required to achieve the desired...

Description Usage Arguments Value Author(s)

Description

Estimates by how much the simulated study size needs to be inflated or shrank in order to obtain the specified level of power. The ratio of z-statistic required for desired power to mean model z-statistic obtained indicates the relative changes in standard error required. This corresponds to the relative change on scale and square root of sample size.

Usage

1
2
samplsize.calc(numcases = NULL, numcontrols = NULL, num.subjects = NULL,
  pheno.model = NULL, pval = NULL, power = NULL, mean.model.z = NULL)

Arguments

numcases

number of cases when outcome is binary.

numcontrols

number of controls when outcome is binary.

num.subjects

number of subjects when outcome is quantitative.

pheno.model

outcome model, binary=0 and quantitafive=1.

pval

cut-off p-value defining statistical significance.

power

desired power

mean.model.z

ratio of mean beta estimate over mean se estimate

Value

A table containing: numcases.required number of cases required to achieve the desired power under binary outcome model numcontrols.required number of controls required to achieve the desired power under binary outcome model numsubjects.required number of subjects required to achieve the desired power under a quantitative outcome model

Author(s)

Gaye A.


agaye/ESPRESSO.ExE documentation built on May 10, 2019, 7:30 a.m.