calc.elas.actual | R Documentation |
Given a set of prices and incomes, and model parameters,calculate the elasticities using numerical derivatives. Optionally, you can pass the model results for the base values, if you've already calculated them.
calc.elas.actual(Ps, Pn, Y, params, basedata = NULL)
Ps |
Staple food prices |
Pn |
Nonstaple food prices |
Y |
Per-capita income |
params |
Model parameters. See description in |
basedata |
Model results for the base values of Ps, Pn, and Y. |
The inputs Ps, Pn, and Y can be vectors, but if they are, they must all be the same length
data frame with elasticities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.