Description Usage Arguments Value Examples
plot log case/control density ratio against weight of evidence as a check that the densities are mathematically consistent
1 | plotW(densities, W)
|
densities |
Adjusted densities computed by
|
W |
Weight of evidence. (natural logs) |
ggpplot of natural log case/control density ratio against weight of evidence (should be a straight line of gradient 1 passing through the origin)
1 2 3 4 5 | data("cleveland") # load example dataset
W <- with(cleveland, weightsofevidence(posterior.p, prior.p))
densities.unadj <- Wdensities.unadjusted(cleveland$y, W)
densities.adj <- Wdensities.fromraw(densities.unadj)
plotW(densities.adj, W)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.