ANC Table {epicalc}R Documentation

Dataset on effect of new ANC method on mortality (as a table)

Description

This dataset contains frequency of various combinations of methods of antenatal care in two clinics with the outcome being perinatal mortality.

Usage

data(ANCtable)

Format

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

death
a numeric vector: 1=no, 2=yes
anc
a numeric vector indicating antenatal care type: 1=old 2=new
clinic
a numeric vector indicating clinic code: 1=clinic A, 2=clinic B
Freq
a numeric vector of frequencies

Examples

data(ANCtable)
use(ANCtable)
death <- death==2
anc <- factor(anc); levels(anc) <- c("old", "new")
clinic <- factor(clinic); levels(clinic) <- c("A","B") 
glm1 <- glm(death ~ anc ,weights=Freq, family=binomial)
logistic.display(glm1)
glm2 <- glm(death ~ anc + clinic ,weights=Freq,	family=binomial)
logistic.display(glm2)
lrtest(glm1, glm2)
rm(death, anc, clinic)

[Package epicalc version 2.10.1.1 Index]