computeMdrr: Compute the minimum detectable relative risk

View source: R/Power.R

computeMdrrR Documentation

Compute the minimum detectable relative risk

Description

Compute the minimum detectable relative risk

Usage

computeMdrr(caseControlData, alpha = 0.05, power = 0.8, twoSided = TRUE)

Arguments

caseControlData

A data frame describing the cases and controls as created using the createCaseControlData function. This should at least have these columns: isCase, exposed.

alpha

Type I error.

power

1 - beta, where beta is the type II error.

twoSided

Consider a two-sided test?

Details

Compute the minimum detectable relative risk (MDRR) for a given study population, using the actual observed sample size and number of exposed controls. Computations by Miettinnen (1969) and Rothman and Boice (1979) are used. Based on and verified using Ken Rothman's EpiSheet.

Value

A data frame with the MDRR and some counts.

References

Miettinen OS (1969) Individual matching in the case of all or none responses. Biometrics, 25, 339-354.

Rothman KJ, Boice JD (1979) Epidemiologic Analysis with a Programmable Calculator. NIH Publication No.79-1649.


OHDSI/CaseControl documentation built on July 15, 2022, 6:33 a.m.