Learn R Programming

childsds (version 0.9.11)

calc_percent_excess: Calculate percentage relative to a given base percentile

Description

Calculate percentage relative to a given base percentile

Usage

calc_percent_excess(
  bmi = NULL,
  age = NULL,
  sex = NULL,
  ref.perc = 50,
  ref,
  item = "bmi",
  rownr = NULL
)

Value

vector containing values between 0 and 1

Arguments

bmi

vector of bmi

age

vector of age

sex

vector of sex (coding "male" and "female") is assumend

ref.perc

single value: reference percentile (0,100)

ref

RefGroup object

item

item within ref

rownr

indicator of order

Author

Mandy Vogel

Details

The function calculates the percentage of a given bmi value relative to a specific percentile