Learn R Programming

bodycompref (version 2.0.1)

.Get_reference_value: Get reference for a given combination of model and percentile/z-score

Description

For a given constellation of metric, sex, vertebral level, and age returns the corresponding measurement for a given percentile/z-score

Usage

.Get_reference_value(
  metric,
  sex,
  level,
  age,
  percentile = NULL,
  z_score = NULL,
  verbose = FALSE,
  digits = 0
)

Value

numeric, corresponding percentile

Arguments

metric

character, body composition metric

sex

character, "Female" or "Male"

level

character, used vertebral level

age

integer, age

percentile

numeric, percentile to return value for. If both percentile and z_score are given, only percentile is evaluated

z_score

numeric, z score to return value for. If both percentile and z_score are given, only percentile is evaluated

verbose

logical, should messages be discplayed

digits

integer, digits to round reference value

Author

J. Peter Marquardt