get_bias {mlf}R Documentation

Bias

Description

Estimates squared bias by decomposing model prediction error.

Usage

get_bias(truth, estimate)

Arguments

truth

test data vector or baseline accuracy to test against.

estimate

predicted vector

Examples

# Sample data
test <- rnorm(25, 80, 35)
predicted <- rnorm(25, 80, 50)

mlf::get_bias(test, predicted)

[Package mlf version 1.2.1 Index]