ordinal.chisq: Chisq test for ordinal values

Description Usage Arguments Details Value Author(s) Examples

View source: R/anadiff.R

Description

This function computes a chisq test for ordinal values

Usage

1

Arguments

x

a contingency table with ordinal values in column

Details

This function applies a ordinal chisq test as described in http://www.uvm.edu/~dhowell/StatPages/More_Stuff/OrdinalChisq/OrdinalChiSq.html. The results are identical to those returned by SPSS

Value

Chisq statistics and pvalues

Author(s)

Nicolas Servant, Eleonore Gravier, Pierre Gestraud, Cecile Laurent, Caroline Paccard, Anne Biton, Jonas Mandel, Bernard Asselain, Emmanuel Barillot, Philippe Hupe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##General hypothesis : was that participants who had experienced more traumatic events
## during childhood would be more likely to drop out of treatment.
trau=matrix(c(25,13,9,10,6,31,21,6,2,3), byrow=TRUE, nrow=2)
colnames(trau)<-c("0","1","2","3","4+")
rownames(trau)<-c("dropout","remain")
ordinal.chisq(trau)

##Association between grade and local breast cancer relapse
grade <- matrix(c(16,42,71,4,27,49), ncol=3, byrow=TRUE)
colnames(grade)<-c("low", "intermediate","high")
rownames(grade)<-c("0", "1")

ordinal.chisq(grade)

EMA documentation built on March 26, 2020, 8:40 p.m.