chisq.desc: Display the results of a chi-square test

Description Usage Arguments Details Author(s) Examples

Description

Color the cells of the table containing the results from the Chi-square test, crossing all the selected categorical variables, according to a selected threshold.

Usage

1
chisq.desc(dataset,Y,X,method="proba",print=TRUE,report=FALSE,language="english")

Arguments

dataset

a dataframe

Y

first group of variable

X

second group of variable (to be crossed with the first one)

method

if "proba" : the colour depends on the p-values given by the hypergeometric law. If "mean" : the colour depends on the value of the contribution to the chi-square distance

print

a logical value. If TRUE, tables of the chi-square distance are printed with cells coloured according to the chosen threshold

report

a logical value. If TRUE, a report is automatically generated

language

english or french

Details

This function is useful when comparing categorical variables. If report=TRUE, a directory named "EnQuireR" is created in your working directory (which can be known thanks to the getwd() function). This directory contains the final pdf report and also the teX file used to produce it.

Author(s)

Sebastien Le [email protected]
Jerome Bouche [email protected]
Marine Cadoret [email protected]
Gwenaelle Fournier [email protected]
Olivier Fournier [email protected]
Francois Le Poder [email protected]

Examples

1
2
3
4
5
6
7
## Not run: 
data(tea)
chisq.desc(tea,c(1,2),c(3,4))

chisq.desc(tea,c(1,2),c(3,4),report=TRUE)

## End(Not run)

EnQuireR documentation built on May 31, 2017, 3:27 a.m.