anthropometrics: anthropometrics

View source: R/anthropometrics.R

anthropometricsR Documentation

anthropometrics

Description

Calculates anthropometic indicators from the food demand model

Usage

anthropometrics(
  gdx,
  indicator = "bodyheight",
  age = "adults",
  sex = FALSE,
  bmi_groups = FALSE,
  level = "iso",
  dir = ".",
  spamfiledirectory = "",
  final = TRUE,
  file = NULL,
  calibrated = TRUE
)

Arguments

gdx

GDX file

indicator

bodyheight, bodyweight, bodyweight_healthy, BMI(Body Mass Index) or PAL (physical activity level)

age

if TRUE, demand is scaled down to age-groups and sex using food requirements

sex

if FALSE, female and male are aggregated, if sex, results are divided into males and females

bmi_groups

if TRUE, data is provided by BMI group

level

Level of regional aggregation; "iso" ISO country codes, "reg" (regional), "glo" (global)

dir

for gridded outputs: magpie output directory which contains a mapping file (rds or spam) disaggregation

spamfiledirectory

deprecated. please use dir instead

final

final results or preliminary results (the latter are the ones magpie uses for optimization before last iteration with demand model)

file

a file name the output should be written to using write.magpie

calibrated

if TRUE, uses the calibrated intake estimates for bodyweight estimation

Details

Demand definitions are equivalent to FAO Food supply categories

Value

bodyweight (kg), bodyheight (cm), BMI or PAL as magpie objects

Author(s)

Benjamin Leon Bodirsky

Examples


  ## Not run: 
    x <- anthropometrics(gdx)
  
## End(Not run)


pik-piam/magpie4 documentation built on April 22, 2024, 3:34 p.m.