BinCat-class: BinCat class: Binned predictions with categorical bins

Description Usage Details Slots

Description

A predx class for binned probabilistic predictions with categorical bins specified by strings.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
BinCat(x)

is.BinCat(x)

## S4 method for signature 'BinCat'
predx_to_json(x)

## S4 method for signature 'BinCat'
as.data.frame(x, row.names = NULL, optional = FALSE,
  ...)

## S4 method for signature 'BinCat'
transform_predx(x, to_class, ...)

Details

BinCat is flexible as it can be used for any binned predictions. Individual probabilities (prob) must be greater than or equal to 0 and less than or equal to 1 and the vector of probabilities must sum to 1.

In JSON and CSV representations, the bins are named cat and the probabilities are named prob.

Slots

predx

A data.frame with two columns: cat (character) and prob (numeric).


cdcepi/predx documentation built on Aug. 16, 2019, 6:49 p.m.