Learn R Programming

mlf (version 1.2.1)

get_bias: 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

Run this code
# NOT RUN {
# Sample data
test <- rnorm(25, 80, 35)
predicted <- rnorm(25, 80, 50)

mlf::get_bias(test, predicted)
# }

Run the code above in your browser using DataLab