examplePredictions: examplePredictions

Description Usage Value Examples

View source: R/util.R

Description

Generates two vectors, one with predictions and one with outcomes. Used to test functions. Stochastic, seed must be set to get reproducible results.

Usage

1
examplePredictions(n = 150, noise = 0.2)

Value

A data.frame with $pred and $actual columns.

Examples

1
2
3
set.seed(1337)
tdat <- examplePredictions()
bootstrap(tdat$pred, tdat$actual, roc)

Peder2911/evallib documentation built on Dec. 18, 2019, 2:41 a.m.