plotWdists: Plot the distribution of the weight of evidence in cases and...

Description Usage Arguments Examples

Description

Plot the distribution of the weight of evidence in cases and in controls

Usage

1
2
plotWdists(Wdensities.unadj, Wdensities.adj, mask = NULL,
  distlabels = c("Crude", "Adjusted"))

Arguments

Wdensities.unadj

Unadjusted densities computed by Wdensities.unadjusted.

Wdensities.adj

Adjusted densities computed by Wdensities.fromraw.

mask

if not null, breaks y axis to show more detail of lower end

distlabels

Character vector of length 2

Examples

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)
plotWdists(densities.unadj, densities.adj)

pmckeigue/wevid documentation built on May 29, 2019, 5:41 a.m.