fit_beta_shapes: Fit beta parameters from data.

Description Usage Arguments Value Examples

View source: R/ROC.R

Description

Fit shape1, shape2 using the method of moments.

Usage

1

Arguments

x

numeric predictions

Value

beta shape1, shape2 parameters in a named list

Examples

1
2
x <- rbeta(1000, shape1 = 3, shape2 = 5.5)
fit_beta_shapes(x) # should often be near [3, 5.5]

sigr documentation built on June 12, 2021, 9:07 a.m.