
Last chance! 50% off unlimited learning
Sale ends in
Test for homogeneity on
WoolfTest(x)
a
A list of class "htest"
containing the following
components:
the chi-squared test statistic.
degrees of freedom of the approximate chi-squared distribution of the test statistic.
a character string indicating the type of test performed.
a character string giving the name(s) of the data.
the observed counts.
the expected counts under the null hypothesis.
Woolf, B. 1955: On estimating the relation between blood group and disease. Ann. Human Genet. (London) 19, 251-253.
# NOT RUN {
migraine <- xtabs(freq ~ .,
cbind(expand.grid(treatment=c("active","placebo"),
response=c("better","same"),
gender=c("female","male")),
freq=c(16,5,11,20,12,7,16,19))
)
WoolfTest(migraine)
# }
Run the code above in your browser using DataLab