# R/ukwhopt.R In statist7/sitar: Super Imposition by Translation and Rotation Growth Curve Analysis

#' UK-WHO growth reference including preterm
#'
#' The UK-WHO growth reference for height, weight, BMI and head circumference
#' (see Wright et al 2010), fitted by the LMS method and summarised by values of
#' L, M and S by sex from 26 weeks gestation to 20 years.
#'
#' The growth reference combines the birth section of the British 1990 growth
#' reference (Cole et al 2011) from 26 to 42 weeks gestation, the WHO growth
#' standard from 2 postnatal weeks to 4 years, and the British 1990 reference
#' from 4 to 20 years.
#'
#' Age is measured in years, where 40 weeks gestation is 0 years. The conversion
#' from weeks gestation to years is:
#' \code{years = (weeks - 40) * 7 / 365.25}.
#'
#' The L, M and S values for each measurement correspond respectively to the
#' Box-Cox power, median and coefficient of variation of the distribution by
#' age and sex (Cole & Green 1992). The measurement short names and units (see
#' \code{\link{LMS2z}}) are as follows: height (ht, cm), weight (wt, kg),
#'
#' @name ukwhopt
#' @docType data
#' @format A tibble with 542 observations on the following 17 variables:
#' \describe{
#' \item{age_wm}{numeric vector - age in weeks or months - see \code{wm}}
#' \item{wm}{three-level factor indicating weeks or months: wkga = gestational
#' weeks, wk = postnatal weeks, mth = postnatal months}
#' \item{years}{numeric vector - age in years}
#' \item{L.ht}{numeric vector}
#' \item{M.ht}{numeric vector}
#' \item{S.ht}{numeric vector}
#' \item{L.wt}{numeric vector}
#' \item{M.wt}{numeric vector}
#' \item{S.wt}{numeric vector}
#' \item{L.bmi}{numeric vector}
#' \item{M.bmi}{numeric vector}
#' \item{S.bmi}{numeric vector}
#' \item{origin}{two-level factor indicating the provenance of the data, with
#' levels British1990 and WHO2006}
#' \item{sex}{two-level factor with level 1 male and level 2 female} }
#' @references Cole TJ, Green PJ. Smoothing reference centile curves: the LMS
#' method and penalized likelihood. Stat Med 1992;11:1305-19.
#'
#' Cole TJ, Williams AF, Wright CM, et al. Revised birth centiles for weight,
#' length and head circumference in the UK-WHO growth charts. Ann Hum Biol
#' 2011;38:7-11.
#'
#' Wright CM, Williams AF, Elliman D, et al. Using the new UK-WHO growth
#' charts. BMJ 2010;340:c1140.
#' @source The values are tabulated in the Excel spreadsheet UK_WHO_preterm.xls
#' provided with the Excel add-in LMSgrowth from
#' \url{http://www.healthforallchildren.com/?product_cat=software}.
#' @keywords datasets
#' @examples
#' data(ukwhopt)
#' ## calculate median birth weight (kg) in girls from 26 to 44 weeks gestation
#' v <- LMS2z(x = (26:44-40) * 7 / 365.25, y = 0, sex = 2, measure = 'wt',
#'   ref = 'ukwhopt', toz = FALSE)
#' setNames(v, 26:44)
"ukwhopt"

statist7/sitar documentation built on Feb. 19, 2020, 8:33 p.m.