Learn R Programming

D2MCS (version 1.0.1)

NPV: Computes the Negative Predictive Value.

Description

Negative Predictive Values are the proportions of negative results in statistics and diagnostic tests that are true negative results.

Arguments

Super class

D2MCS::MeasureFunction -> NPV

Methods


Method new()

Method for initializing the object arguments during runtime.

Usage

NPV$new(performance.output = NULL)

Arguments

performance.output

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


Method compute()

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

Usage

NPV$compute(performance.output = NULL)

Arguments

performance.output

An optional ConfMatrix parameter to define the type of object used as basis to compute the NPV 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

NPV$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

$$NPV = TN / (TN + FN)$$

See Also

MeasureFunction, ClassificationOutput, ConfMatrix