Description Usage Arguments Details Value Author(s)
View source: R/relative_cost_logit.R
RelativeCostLogit_calcUnnormalizedShare
1 2 3 4 5 6 | RelativeCostLogit_calcUnnormalizedShare(
aChoiceFnAbove,
aShareWeight,
aProfit,
aPeriod
)
|
aChoiceFnAbove |
Choice function (logit type and exponent from node above) |
aShareWeight |
share weight for the choice for which the share is being calculated. |
aProfit |
Profit for the choice for which the share is being calculated. |
aPeriod |
model time period for the calculation. |
Calculate the numerator of the discrete choice (i.e., the unnormalized version) function being used to calculate child shares in this node. The normalization factor will be calculated later. Note: Negative costs can not be used in this logit formulation. Instead, the profit is capped at RelativeCostLogit::getMinCostThreshold. This implies no behavior once profits have crossed this threshold. Note: this is modified to match the equations in GCAM4.3 (i.e., no log) but uses structure from versions of GCAM with the absolute cost logit.
log of the unnormalized share.
KVC September 2017
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.