getTAE: Total absolute error (TAE)

Description Usage Arguments Value Examples

Description

Computes the total absolute error as the sum of the absolute difference between observed marginal sums and simulated marginal sums.

TAE = ∑_i^n |Tx - \hat{t}x|

Usage

1
getTAE(observed, simulated)

Arguments

observed

observed marginal sums

simulated

simulated marginal sums

Value

total absolute error

Examples

1
2
getTAE(10, 20)
getTAE(30, 40)

emunozh/testmsim documentation built on May 16, 2019, 5:11 a.m.