getPositiveScoresVar: Return variance of positive scores

View source: R/get_scores.R

getPositiveScoresVarR Documentation

Return variance of positive scores

Description

This function just returns the variance of positive scores.

Usage

getPositiveScoresVar(truth_name, prob_name, m = NULL, return_sum = FALSE)

Arguments

truth_name

('character(1L)') Character containing the name of the vector of 0-1-values encoded as integer or numeric.

prob_name

('character(1L)') Character containing the name of the vector of probabilities.

m

('numeric(1L)') Sample mean used for variance calculation. If 'NULL' (default), the sample mean of the positive scores is used.

return_sum

('logical(1L)') Logical value indicating whether the function should just return the sum of positive scores.

Value

Variance of differences of positive scores

Author(s)

Daniel S.


difuture-lmu/dsROCGLM documentation built on March 24, 2024, 1:07 p.m.