ga_dataframe: Calculate a percentile class of birthweight over a dataframe

Usage Arguments Value Examples

Usage

1
2
ga_dataframe(DF, gestation_age = "combgest", neonate_sex = "sex",
  birthweight = "dbwt")

Arguments

DF

A dataframe containing columns for (at least) gestational age, sex, and birthweight

gestation_age

A column of integers representing neonates' gestational age in weeks

neonate_sex

A column of characters indicating sex ("M"/"F")

birthweight

A column of integers representing birthweight in grams

Value

DF with an additional column (gest_cat) representingthe percentile class of birthweight

Examples

1
2
ga_dataframe(A_DataFrame)
ga_dataframe(A_DataFrame, gestation_age = "my_gest", neonate_sex = "my_sex", birthweight = "my_bwt"

dreidpath/SGA-LGA documentation built on May 15, 2019, 1:54 p.m.