Description Usage Arguments Value Author(s) References See Also Examples
View source: R/ZvaluescasesVcontrolsPlots.R
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.
1 | ZvaluescasesVcontrolsPlots(probs)
|
probs |
A vector of a large number of hypothetical ratios of proportions of cases to controls. |
It returns a pdf plot of the odds of being a case vs control and their effects on adjustments for confounders.
Stephen Nyangoma
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)
function ztwo
1 2 3 | # provide hypothetical proportions of cases vs controls
probs=seq(0,1,0.01)
ZvaluescasesVcontrolsPlots(probs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.