ZvaluescasesVcontrolsPlots: A function for ploting the odds of being a case vs control...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ZvaluescasesVcontrolsPlots.R

Description

A function for ploting the odds of being a case vs control and their effects on adjustments for confounders. It may be useful in cases when it is envisaged that no confounders are expected. It automatically plots the values of Z for the common experimental designs (e.g. 1:1, 1:3 and 1:4). You input alarge number of hypothetical ratios of proportions of cases to controls. It uses another function (ztwo), which computes the Z values.

Usage

1

Arguments

probs

A vector of a large number of hypothetical ratios of proportions of cases to controls.

Value

It returns a pdf plot of the odds of being a case vs control and their effects on adjustments for confounders.

Author(s)

Stephen Nyangoma

References

Nyangoma SO, Ferreira JA, Collins SI, Altman DG, Johnson PJ, and Billingham LJ: Sample size calculations for planning clinical proteomic profiling studies using mass spectrometry. (Working paper)

See Also

function ztwo

Examples

1
2
3
 # provide hypothetical proportions of cases vs controls
probs=seq(0,1,0.01)
ZvaluescasesVcontrolsPlots(probs)

clippda documentation built on Nov. 8, 2020, 8:13 p.m.