powered by
Data from 11 clinical trials to compare magnesium treatment for heart attacks with control.
data(magnesium)
A data frame with 22 observations on the following 4 variables.
a factor with levels 1--11
1
11
Treatment indicator (factor)
Total patients in group
Number of deaths in group
Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 208.
data(magnesium) fit <- glm(cbind(r,m-r)~trial+group,binomial,data=magnesium[1:20,]) anova(fit,test="Chi") summary(fit)
Run the code above in your browser using DataLab