Test if the proportions of 3 or more dichotomous variables are equal in the same population.

cochran_test(x, ...)

Arguments

x
a data frame/vector
...
numeric vectors

Value

cochran_test returns an object of class "cochran_test". An object of class "cochran_test" is a list containing the following components:

References

Sheskin, D. J. 2007. Handbook of Parametric and Nonparametric Statistical Procedures, 4th edition. : Chapman & Hall/CRC.

Examples

cochran_test(exam)
#> Test Statistics #> ---------------------- #> N 15 #> Cochran's Q 4.75 #> df 2 #> p value 0.093 #> ----------------------