R/nc.R

#' North Carolina births
#'
#' In 2004, the state of North Carolina released a large data set containing 
#' information on births recorded in this state. This data set is useful to 
#' researchers studying the relation between habits and practices of expectant 
#' mothers and the birth of their children. We will work with a random sample of 
#' observations from this data set.
#'
#' @format A tbl_df with 1000 rows and 13 variables:
#' \describe{
#'   \item{fage}{father's age in years}
#'   \item{mage}{mother's age in years}
#'   \item{mature}{maturity status of mother}
#'   \item{weeks}{length of pregnancy in weeks}
#'   \item{premie}{whether the birth was classified as premature (premie) or full-term}
#'   \item{visits}{number of hospital visits during pregnancy}
#'   \item{marital}{whether mother is `married` or `not married` at birth}
#'   \item{gained}{weight gained by mother during pregnancy in pounds}
#'   \item{weight}{weight of the baby at birth in pounds}
#'   \item{lowbirthweight}{whether baby was classified as low birthweight (`low`) or not (`not low`)}
#'   \item{gender}{gender of the baby, `female` or `male`}
#'   \item{habit}{status of the mother as a `nonsmoker` or a `smoker`}
#'   \item{whitemom}{whether mom is `white` or `not white`}
#' }
#' @source State of North Carolina.
"nc"

Try the statsr package in your browser

Any scripts or data that you put into this service are public.

statsr documentation built on Jan. 23, 2021, 1:05 a.m.