get_ree_internal: Internal functions for calculating resting energy expenditure

get_ree_dataframeR Documentation

Internal functions for calculating resting energy expenditure

Description

Internal functions for calculating resting energy expenditure

Usage

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)

Arguments

df

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

method

character. The equation(s) to use, chosen from "harris_benedict", "schofield_wt", "schofield_wt_ht", "fao", "muller_wt_ht", or "muller_ffm"

sex

character. The participant/patient sex, one of "female" or "male"

age_yr

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

breaks

age breaks to use (passed to base::cut)

labels

age labels to use (passed to base::cut)

output

character. The desired output unit(s), chosen from "default", "mj_day", "kcal_day", or "vo2_ml_min"

calorie

character. The desired conversion factor(s) for calculating MJ from kcal, chosen from "thermochemical", "convenience", or "dry"

RER

numeric. The respiratory exchange ratio

kcal_table

character. The desired conversion table(s) to use for converting kcal to oxygen consumption, chosen from "Lusk", "Peronnet", or "both"

settings

output from get_ree_grid


PAutilities documentation built on Aug. 21, 2022, 9:05 a.m.