powered by
Calculate weights of evidence in natural log units
weightsofevidence(posterior.p, prior.p)
Vector of posterior probabilities generated by using model to predict on test data.
Vector of prior probabilities.
The weight of evidence in nats for each observation.
# NOT RUN { data(cleveland) # load example dataset W <- with(cleveland, weightsofevidence(posterior.p, prior.p)) # }
Run the code above in your browser using DataLab