Individual-level infant mortality data on 235,272 births in the U.S. state of North Carolina, in 2003 and 2004.
A data frame consisting of 235,464 observations, with the following columns:
Year of birth; either 2003 or 2004.
A 9-level categorical variable indicating the race of the baby. See Details, below.
A binary variable; 0=female; 1=male.
Age of the mother, years.
Number of completed weeks of gestation.
Average number of cigarettes. A value of ‘98’ indicates smoking but unknown amount.
Weight gained during pregnancy, lbs.
Birth weight, grams.
A binary variable indicating death within 1st year of life; 0=alive; 1=death.
The data were compiled by the North Carolina State Center for Health Statistics (http://www.irss.unc.edu/).
race variable is coded as follows:
0 = Other non-white
1 = White
2 = Black
3 = American Indian
4 = Chinese
5 = Japanese
6 = Hawaiin
7 = Filipino
8 = Other Asian or Pacific Islander
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## Code to generate an aggregated dataset ## ## Not run: data(infants) ## infants$smoker <- as.numeric(infants$cignum > 0) infants$teen <- as.numeric(infants$mage < 20) infants$lowgain <- as.numeric(infants$gained < 20) infants$early <- as.numeric(infants$weeks < 32) infants$lbw <- as.numeric(infants$weight < 2500) ## listAgg <- list(year=infants$year, smoker=infants$smoker, teen=infants$teen, lowgain=infants$lowgain, race=infants$race, male=infants$male, early=infants$early, lbw=infants$lbw) infantsAgg <- aggregate(rep(1, nrow(infants)), listAgg, FUN=sum) names(infantsAgg)[ncol(infantsAgg)] <- "N" infantsAgg$Y <- aggregate(infants$death, listAgg, FUN=sum)$x ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.