calc_CES_marginals: Calculate CES Marginals

Description Usage Arguments Details Value

View source: R/calc_CES_marginals.R

Description

Calculate marginals on the REMIND CES function and combine them to prices.

Usage

1
calc_CES_marginals(gdxName, id = "file")

Arguments

gdxName

Vector of paths to .gdx files.

id

If several .gdx files are read, an id column is appended to the result; either file, with the paths of the originating .gdx files, or scenario, with the content of c_expname.

Details

Marginals are calculated analytically

\frac{\partial V_i}{\partial V_o} = ξ_i (θ_i δ_i)^{ρ_o} {V_o}^{1 - ρ_o} {V_i}^{ρ_o - 1}

and prices by recursively applying the chain rule

π_i = \frac{\partial V_i}{\partial V_o} π_o \quad \forall (i,o) \in CES

Value

A data frame with columns pf (production factor), t, regi, marginal, price, and file (path to originating .gdx file).


pik-piam/remind documentation built on Sept. 9, 2021, 1:09 p.m.