Learn R Programming

sparsevar (version 1.0.0)

accuracy: Accuracy metric

Description

Compute the accuracy of a fit

Usage

accuracy(reference_m, a)

Value

A numeric value between 0 and 1 representing the accuracy of the fit, computed as the proportion of correctly identified zero/non-zero entries.

Arguments

reference_m

the matrix to use as reference

a

the matrix obtained from a fit