calculateFood | R Documentation |
Calculate Food
calculateFood(food, elas, gdp_pc, functionalForm, pop, referenceYear, dt)
food |
The food consumption at time t. |
elas |
The elasticity of the commodity. This will vary by country and commodity. |
gdp_pc |
Per person GDP (gross domestic product) 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. |
pop |
Population at time t. |
referenceYear |
Year of reference to compute the food estimates. |
dt |
Table in data.table format |
trend_factor |
Changes due to income and other factors. |
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.