multi.table: Multi cross table

Description Usage Arguments Value Author(s) See Also Examples

Description

Builds a big cross table between several covariates

Usage

1

Arguments

data

the data frame in which we can find vars

vars

vector of character string of covariates

Value

A matrix containing all the contingency tables between the covariates

Author(s)

Hugo Varet

See Also

plot_multi.table

Examples

1
multi.table(cgd,c("treat","sex","inherit"))

Example output

Loading required package: survival
                   treat           sex          inherit           
                   placebo rIFN-g  male female  X-linked autosomal
                                                                  
treat   placebo    120     0       100  20      74       46       
        rIFN-g     0       83      68   15      57       26       
                                                                  
sex     male       100     68      168  0       126      42       
        female     20      15      0    35      5        30       
                                                                  
inherit X-linked   74      57      126  5       131      0        
        autosomal  46      26      42   30      0        72       

packHV documentation built on May 2, 2019, 5:40 a.m.