Permalink
Browse files

Merge pull request #5 from beanumber/master

added babies data set
  • Loading branch information...
2 parents a81dc96 + 46ac356 commit b46b0380415c051f7cc196655ddc77380648aa24 @mine-cetinkaya-rundel mine-cetinkaya-rundel committed Jan 26, 2016
Showing with 50 additions and 0 deletions.
  1. +19 −0 openintro/R/data.R
  2. BIN openintro/data/babies.rda
  3. +31 −0 openintro/man/babies.Rd
View
@@ -0,0 +1,19 @@
+#' The Child Health and Development Studies
+#'
+#' The Child Health and Development Studies investigate a range of topics. One study, in particular, considered all pregnancies between 1960 and 1967 among women in the Kaiser Foundation Health Plan in the San Francisco East Bay area. The goal is to model the weight of the infants (\code{bwt}, in ounces) using variables including length of pregnancy in days (\code{gestation}), mother's age in years (\code{age}), mother's height in inches (\code{height}), whether the child was the first born (\code{parity}), mother's pregnancy weight in pounds (\code{weight}), and whether the mother was a smoker (\code{smoke}).
+#'
+#' @format A data frame with 1236 rows and 8 variables:
+#' \describe{
+#' \item{case}{id number}
+#' \item{bwt}{birthweight, in ounces}
+#' \item{gestation}{length of gestation, in days}
+#' \item{parity}{binary indicator for a first pregnancy (0=first pregnancy)}
+#' \item{age}{mother's age in years}
+#' \item{height}{mother's height in inches}
+#' \item{weight}{mother's weight in pounds}
+#' \item{smoke}{binary indicator for whether the mother smokes}
+#' }
+#' @source These data come from Child Health and Development Studies
+#' @seealso \code{\link[mosaicData]{Gestation}}
+"babies"
+
Binary file not shown.
@@ -0,0 +1,31 @@
+% Generated by roxygen2 (4.1.1): do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{babies}
+\alias{babies}
+\title{The Child Health and Development Studies}
+\format{A data frame with 1236 rows and 8 variables:
+\describe{
+ \item{case}{id number}
+ \item{bwt}{birthweight, in ounces}
+ \item{gestation}{length of gestation, in days}
+ \item{parity}{binary indicator for a first pregnancy (0=first pregnancy)}
+ \item{age}{mother's age in years}
+ \item{height}{mother's height in inches}
+ \item{weight}{mother's weight in pounds}
+ \item{smoke}{binary indicator for whether the mother smokes}
+}}
+\source{
+These data come from Child Health and Development Studies
+}
+\usage{
+babies
+}
+\description{
+The Child Health and Development Studies investigate a range of topics. One study, in particular, considered all pregnancies between 1960 and 1967 among women in the Kaiser Foundation Health Plan in the San Francisco East Bay area. The goal is to model the weight of the infants (\code{bwt}, in ounces) using variables including length of pregnancy in days (\code{gestation}), mother's age in years (\code{age}), mother's height in inches (\code{height}), whether the child was the first born (\code{parity}), mother's pregnancy weight in pounds (\code{weight}), and whether the mother was a smoker (\code{smoke}).
+}
+\seealso{
+\code{\link[mosaicData]{Gestation}}
+}
+\keyword{datasets}
+

0 comments on commit b46b038

Please sign in to comment.