rmse_bias_AB: calculate root mean squared errors and biases

View source: R/simulate.R

rmse_bias_ABR Documentation

calculate root mean squared errors and biases

Description

used for comparing truth and estimates

Usage

rmse_bias_AB(A, B)

Arguments

A

a matrix (e.g., truth)

B

another matrix (e.g., estimated); A and B must have the same dimensions; B's columns must have already been permuted to best match those of A.

Value

a list

rmse_total

root mean squared error for all entries

rmse_marg

root mean squared error for all entries by column of A

frac_bias

percent bias averaged over all entries

frac_bias_marg

percent bias by column of A

Examples


A <- matrix(c(1,2,3,4,5,6),nrow=2,ncol=3)
B <- A
rmse_bias_AB(A,B)

zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.