simula {chi2x3way}R Documentation

Simulations of three-way contingency tables

Description

Allows the generation of random contingency tables with prescribed theoretical probabilities

Usage

simula(I, J, K, nran = 1000, pi, pj, pk)

Arguments

I

The input parameter for specifying the number of rows.

J

The input parameter for specifying the number of columns.

K

The input parameter for specifying the number of tubes.

nran

The input parameter for specifying the number of individuals in each table.

pi

The input parameter for specifying the theoretical probability of rows.

pj

The input parameter for specifying the theoretical probability of columns.

pk

The input parameter for specifying the theoretical probability of tubes.

Author(s)

Lombardo R, Takane Y and Beh EJ

References

Lancaster H O (1951) Complex contingency tables treated by the partition of the chi-square. Journal of Royal Statistical Society, Series B, 13, 242-249.
Loisel S and Takane Y (2016) Partitions of Pearson's chi-square ststistic for frequency tables: A comprehensive account. Computational Statistics, 31, 1429-1452.

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
simula(4,3,2,pi=rep(1/4,4),pj=rep(1/3,3),pk=rep(1/2,2))
## The function is currently defined as

[Package chi2x3way version 1.1 Index]