magnesium: Magnesium Treatment for Heart Attack Patients

magnesiumR Documentation

Magnesium Treatment for Heart Attack Patients

Description

Data from 11 clinical trials to compare magnesium treatment for heart attacks with control.

Usage

data(magnesium)

Format

A data frame with 22 observations on the following 4 variables.

trial

a factor with levels 111

group

Treatment indicator (factor)

m

Total patients in group

r

Number of deaths in group

Source

Copas, J. B. (1999) What works?: Selectivity models and meta-analysis. Journal of the Royal Statistical Society series A, 162, 96–109.

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 208.

Examples

data(magnesium)
fit <- glm(cbind(r,m-r)~trial+group,binomial,data=magnesium[1:20,])
anova(fit,test="Chi")
summary(fit)

SMPracticals documentation built on May 29, 2024, 12:19 p.m.