Description Usage Arguments Value Examples
Calculate weights of evidence in natural log units
1 | weightsofevidence(posterior.p, prior.p)
|
posterior.p |
Vector of posterior probabilities generated by using model to predict on test data |
prior.p |
Prior probabilities on test data. |
The weight of evidence in nats for each observation.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.