cochranq.test: Cochran q test for dependent proportions

View source: R/cochranq.test.R

cochranq.testR Documentation

Cochran q test for dependent proportions

Description

Tipo mc nemar ma per più di due tempi o più di due trattamenti, nulla che la proporzione sia la stessa.

Usage

cochranq.test(mat)

Source

https://statisticaconr.blogspot.com/2011/10/cochran-q-test-in-r-nonparametric-test.html and https://stat.ethz.ch/pipermail/r-help/2006-September/113156.html

Examples

mydata <- matrix(c(
                1, 1, 0,
                0, 1, 0,
                1, 1, 1,
                0, 1, 0,
                0, 1, 0,
                0, 1, 1,
                0, 0, 0,
                0, 1, 0,
                1, 1, 0,
                0, 1, 0,
                0, 0, 0,
                0, 0, 1),
             nrow = 12,
             byrow = T,
             dimnames = list(1 : 12,
               c("MarcaA", "MarcaB", "MarcaC")))
cochranq.test(mydata)

lbraglia/lbstat documentation built on Sept. 17, 2023, 2:30 p.m.