Internal functions for calculating resting energy expenditure
get_ree_dataframe(df, method, sex, age_yr, ...)get_ree_default(method, sex, age_yr, ...)
ree_single(
sex = c("female", "male"),
age_yr,
method,
breaks = c(-Inf, 3, 10, 18, 30, 60, Inf),
labels = c("less3", "3to10", "10to18", "18to30", "30to60", "over60"),
...
)
get_stratum(method, sex = c("female", "male"), age_yr, breaks, labels)
get_ree_single_setting(method, sex, age_yr, ..., df)
get_ree_grid(method, output, calorie, RER, kcal_table)
ree_profile(settings)
optional data frame. If passed, all prior arguments should be
character scalars pointing to a column in df
that contains the
corresponding information is stored
character. The equation(s) to use, chosen from
"harris_benedict", "schofield_wt", "schofield_wt_ht",
"fao", "muller_wt_ht", or "muller_ffm"
character. The participant/patient sex, one of "female"
or
"male"
numeric. The participant/patient age in years. Not used for
method = "muller_ffm"
, but a value must still be given if a data
frame is passed. (The value does not need to correspond with age, it is
simply a placeholder to satisfy internal checks that are applied to all
equations when making computations on a data frame.)
arguments (e.g. wt_kg
or ht_cm
) for calculations. An
error message will clarify which variables need to be passed if they are
missing
age breaks to use (passed to base::cut
)
age labels to use (passed to base::cut
)
character. The desired output unit(s), chosen from
"default", "mj_day", "kcal_day", or "vo2_ml_min"
character. The desired conversion factor(s) for calculating MJ
from kcal, chosen from "thermochemical", "convenience", or "dry"
numeric. The respiratory exchange ratio
character. The desired conversion table(s) to use for
converting kcal to oxygen consumption, chosen from "Lusk",
"Peronnet", or "both"
output from get_ree_grid