permcont: Random permutation of a contingency table n row x 2 columns

permcontR Documentation

Random permutation of a contingency table n row x 2 columns

Description

Return a random permutation of a contingency table n rows x 2 columns keeping the marginal totals

Usage

permcont(Table)

Arguments

Table

a contingency table

Details

The contingency table is split in a two colums table of 0/1 categories, sampled and re-organised with the function table()

Value

A matrix with the permuted values

Examples

tab<-cbind(n1=c(10,12,8,7,5),n2=c(4,5,8,10,12))
tab
permcont(tab)

pgirmess documentation built on May 29, 2024, 4:26 a.m.

Related to permcont in pgirmess...