powered by
Survival of Premature Infants to be modeled using 5 potential explanatory variables.
data("d.babysurvival") data("d.babysurvGr")
d.babysurvival: A data frame with 246 observations on the following 6 variables.
d.babysurvival
Survival
binary, 1 means the infant survived
Weight
birth weight [g]
Age
pregnancy in weeks
Apgar1
A score indication the fitness of the infant at birth, scores 0 to 9
Apgar5
alternative score
pH
blood pH
d.babysurvGr: Grouped data: Number of Infants that died and survived for each class of birth weight.
d.babysurvGr
n
Number of infants in the weight class
Survival.0, Survivl.1
Number of infants that died and survived, respectively
birth weight
data(d.babysurvival) summary(d.babysurvival) rr <- glm(Survival~Weight+Age+Apgar1, data=d.babysurvival, family="binomial") plregr(rr, xvar= ~Age+Apgar1)
Run the code above in your browser using DataLab