accuracy: Calculate the Accuracy of the model

Description Usage Arguments Value Examples

View source: R/math_utils.R

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.

verb

short for verbose, if TRUE, prints aditional information (logical)

Value

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

Examples

1
(new_Y, fitted_probs_for_data)

PaoloLuciano/BPWPM documentation built on May 21, 2019, 1:20 p.m.