weightsofevidence {wevid}R Documentation

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

data(cleveland) # load example dataset
W <- with(cleveland, weightsofevidence(posterior.p, prior.p))


[Package wevid version 0.6.2 Index]