accuracy: Calculate the Accuracy of the model

Description Usage Arguments Value Examples

Description

Given a set of true values and their corresponding fitted probabilities, the function calculates the accuracy of the model defined by: 1- #wrong prediction/# of observations

Usage

1
accuracy(new_Y, p, verb = FALSE)

Arguments

p

Vector of fitted probabilities for each Y.

Value

The accuracy of the model, given the fitted probabilities and new data

Examples

1
(new_Y, fitted_probs_for_data)

PaoloLuciano/bpwpm2 documentation built on June 6, 2019, 5:47 p.m.