Description Usage Arguments Value References Examples
This function is called by smallerThanZero
for its third step.
It runs the 'loss-aversion' function over the values of the gain-loss matrix,
and a consumption utility function over the values of the second parameter,
as shown in [1]. Both input matrices must have the same dimensions.
Altogether it returns a value matrix.
1 | dualLossAversionFun(gainLossMatrix, decMatrix, lambda = 2.25, delta = 0.8)
|
gainLossMatrix |
a gain-loss matrix, such as the output from
|
decMatrix |
the decision matrix. |
lambda |
numeric - parameter of loss aversion for the value function as given by reference[1]. Default value is 2.25 as given by [2]. |
delta |
numeric - expresses the relative importance of the aspiration
level to other factors. Default is 0.8 and it should satisfy |
a value matrix with equal dimensions as gainLossMatrix
[1] Golman, R., & Loewenstein, G. (2011). Explaining Nonconvex Preferences with Aspirational and Status Quo Reference Dependence. Mimeo, Carnegie Mellon University.
[2] Tversky, A., & Kahneman, D. (1992). Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and uncertainty, 5(4), 297-323.
1 2 3 4 5 6 7 | #Runnable
dualLossAversionFun(matrix(16:31, 4, 4), matrix(51:36, 4, 4))
dualLossAversionFun(matrix(16:31, 4, 4), matrix(1:16, 4, 4), lambda = 5, delta = 0.7)
dualLossAversionFun(matrix(1:100, 5, 20, byrow= T), matrix(150:51, 5, 20),delta = 0.3)
#Not runnable yet
dualGainLossFunction(aGainLossMatrix, itsDecisionMatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.