commodity2FunctionalForm: Commodity to Functional Form

Description Usage Arguments Value

Description

This function takes a commodity code and maps the commodity code to a "food demand model" code and a "food commodity model" code. These are types of models that were originally implemented by Josef Schmidhuber in SAS, and we are re-using the coefficients in R in the absence of a better food model.

Usage

1
commodity2FunctionalForm(commodityCode)

Arguments

commodityCode

A character vector of commodity codes.

Value

A list with two objects: a vector of the corresponding food demand codes and a vector of the corresponding food commodity codes.


SWS-Methodology/faoswsFood documentation built on June 19, 2019, 5:14 p.m.