install.packages("SimDesign") library(SimDesign) #Using column/list of values with variable names "actual_value" # and "predicted_value" bias(actual_value, predicted_value) #The closer the bias is to 0, the less the bias in the prediction.