getTAE: Total absolute error (TAE)

Description Usage Arguments Value Examples

View source: R/internalValidation.R

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 13, 2017, 6:06 p.m.