getZ: Z-statistic

Description Usage Arguments Value Examples

Description

The Z-statistic aims to describe the performance of the individual characteristics of the population used as constrains in the simulation.

r = \frac{\hat{t}x}{∑ Tx} p = \frac{Tx}{∑ Tx} Z = \frac{r-p}{√{p\times≤ft(1-p\right)\div∑ Tx}}

Usage

1
getZ(observed, simulated)

Arguments

observed

observed marginal sums

simulated

simulated marginal sums

Value

Z-statistic

Examples

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

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