commodity2FunctionalForm: Commodity to Functional Form

View source: R/commodity2FunctionalForm.R

commodity2FunctionalFormR Documentation

Commodity to Functional Form

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

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 April 6, 2022, 1:37 p.m.