get_bias: Bias

Description Usage Arguments Examples

View source: R/get_bias.R

Description

Estimates squared bias by decomposing model prediction error.

Usage

1
get_bias(truth, estimate)

Arguments

truth

test data vector or baseline accuracy to test against.

estimate

predicted vector

Examples

1
2
3
4
5
# Sample data
test <- rnorm(25, 80, 35)
predicted <- rnorm(25, 80, 50)

mlf::get_bias(test, predicted)

mlf documentation built on May 1, 2019, 10:34 p.m.

Related to get_bias in mlf...