Learn R Programming

D2MCS (version 1.0.1)

PPV: Computes the Positive Predictive Value.

Description

Positive Predictive Values are the proportions of positive results in statistics and diagnostic tests that are true positive results.

Arguments

Super class

D2MCS::MeasureFunction -> PPV

Methods


Method new()

Method for initializing the object arguments during runtime.

Usage

PPV$new(performance.output = NULL)

Arguments

performance.output

An optional ConfMatrix parameter to define the type of object used as basis to compute the PPV measure.


Method compute()

The function computes the PPV achieved by the M.L. model.

Usage

PPV$compute(performance.output = NULL)

Arguments

performance.output

An optional ConfMatrix parameter to define the type of object used as basis to compute the PPV measure.

Details

This function is automatically invoke by the ClassificationOutput object.

Returns

A numeric vector of size 1 or NULL if an error occurred.


Method clone()

The objects of this class are cloneable with this method.

Usage

PPV$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

$$PPV = TP / (TP + FP)$$

See Also

MeasureFunction, ClassificationOutput, ConfMatrix