Ectopic pregnancy {epicalc} | R Documentation |
This case-control study has one case series and two control groups.
The subjects were recruited based on three types of pregnancy outcome (outc)
data(Ectopic)
A data frame with 723 observations on the following 4 variables.
id
outc
EP
IA
Deli
EP | = ectopic pregnancy | |
IA | = women coming for induced abortion | |
Deli | = women admitted for full-term delivery |
hia
never IA
ever IA
gravi
1-2
3-4
>4
data(Ectopic) library(nnet) use(Ectopic) multi1 <- multinom(outc ~ hia + gravi) summary(multi1) mlogit.display(multi1) # Changing referent group of outcome ep <- outc == "EP" ia <- outc == "IA" deli <- outc == "Deli" multi2 <- multinom(cbind(ia, ep, deli) ~ hia + gravi) summary(multi2) mlogit.display(multi2)