Description Usage Arguments Value Examples
Plot the distribution of the weight of evidence in cases and in controls
1 | plotWdists(densities, distlabels = c("Crude", "Model-based"))
|
densities |
Densities object produced by |
distlabels |
Character vector of length 2 to be used to label the crude and the model-based curves (in that order). |
A ggplot object representing the distributions of crude and model-based weights of evidence in cases and in controls.
1 2 3 4 5 6 7 8 9 10 | data(cleveland)
densities <- with(cleveland, Wdensities(y, posterior.p, prior.p))
plotWdists(densities)
# Example which requires fitting a mixture distribution
data(fitonly)
densities <- with(fitonly, Wdensities(y, posterior.p, prior.p))
# truncate spike
plotWdists(densities) + ggplot2::scale_y_continuous(limits=c(0, 0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.