getZ: Z-statistic

Description Usage Arguments Value Examples

View source: R/internalValidation.R

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