Learn R Programming

SMPracticals (version 1.4-3.1)

ulcer: Recurrent Bleeding from Ulcers

Description

Data from 40 experiments to compare a new surgery for stomach ulcer with an older surgery.

Usage

data(ulcer)

Arguments

Format

A data frame with 80 observations on the following 9 variables.

author

Author of study from which data taken

year

Year of publication

quality

Assessment of quality of trial on which data based

age

Mean age of patients

r

Number of patients without recurrent bleeding

m

Total number of patients

bleed

a numeric vector

treat

Factor giving control (C) or variants of new treatment

table

Factor giving 2x2 table corresponding to each trial

References

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

Examples

Run this code
data(ulcer)
glm(cbind(r,m-r)~table+treat,data=ulcer,family=binomial)

Run the code above in your browser using DataLab