computeFoodForwardBackward: Calculate Food Forward and Backward

Description Usage Arguments Value

Description

The function compute the estimates for food consumption in the time t based on the food consumption in the t-1.

Usage

1
2
computeFoodForwardBackward(food, pop, elas, gdp, netTrade, functionalForm,
  timePointYears, protected, type, referenceYear)

Arguments

food

The food consumption at time t.

pop

Population at time t.

elas

The elasticity of the commodity. This will vary by country and commodity.

netTrade

The Net Trade (imports - exports) at time t.

functionalForm

Currently one of 0, 1, 2, or 3. Specifies if a log-log, semi-log, or inverse-log food demand model should be used.

timePointYears

A numeric vector with the years.

protected

A logical value indicating whether the value is proetcted or not.

type

A character string indicating the levels of the food classification of the commodity.

referenceYear

Year of reference to start to compute the food estimates.

gdp_pc

Per person GDP (gross domestic product) at time t.

Value

A numeric vector of the estimated food consumption.


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