Learn R Programming

wevid (version 0.6.2)

weightsofevidence: Calculate weights of evidence in natural log units

Description

Calculate weights of evidence in natural log units

Usage

weightsofevidence(posterior.p, prior.p)

Arguments

posterior.p

Vector of posterior probabilities generated by using model to predict on test data.

prior.p

Vector of prior probabilities.

Value

The weight of evidence in nats for each observation.

Examples

Run this code
# NOT RUN {
data(cleveland) # load example dataset
W <- with(cleveland, weightsofevidence(posterior.p, prior.p))

# }

Run the code above in your browser using DataLab