magnesium | R Documentation |
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
Treatment indicator (factor)
Total patients in group
Number of deaths in group
Copas, J. B. (1999) What works?: Selectivity models and meta-analysis. Journal of the Royal Statistical Society series A, 162, 96–109.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.