getPSAE: Percentage error (PSAE)

Description Usage Arguments Value Examples

Description

Divides the getSAE by the known population size.

PAE = ∑_i^n |Tx - \hat{t}x| \div pop_i \times 100

Usage

1
getPSAE(observed, simulated, population_size)

Arguments

observed

observed marginal sums

simulated

simulated marginal sums

population_size

known population size

Value

percentage error

Examples

1
2
getPSAE(10, 20, 5)
getPSAE(30, 40, 5)

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