Calculate percentage relative to a given base percentile
calc_percent_excess(
bmi = NULL,
age = NULL,
sex = NULL,
ref.perc = 50,
ref,
item = "bmi",
rownr = NULL
)
vector containing values between 0 and 1
vector of bmi
vector of age
vector of sex (coding "male" and "female") is assumend
single value: reference percentile (0,100)
RefGroup object
item within ref
indicator of order
Mandy Vogel
The function calculates the percentage of a given bmi value relative to a specific percentile