View source: R/computeFoodForwardBackward.R
computeFoodForwardBackward | R Documentation |
The function compute the estimates for food consumption in the time t based on the food consumption in the t-1.
computeFoodForwardBackward(food, pop, elas, gdp, netTrade, functionalForm, timePointYears, protected, type, referenceYear)
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. |
A numeric vector of the estimated food consumption.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.