View source: R/E.1.u.m.der.lam.R
This function calculates the derivative of the expected second period marriage utility with respect to saving and sharing rule (lambda) given the information revealed at the first period for a given level of savings and a new sharing rule (for the second period) for an individual family. Essentially, it calculates the second period optimal consumption for the given level of saving and updated sharing rule for different relizations of the shocks in the second period and then substiute them in the individual utility functions (u) or the joint utility function(U). Finally, it takes the average to return the expectations.To take the derivative, we passed it thuru expectations and then used the second period analytical results to take the derivative.
1 2 |
lambda |
Sharing rule |
S |
Saving |
var |
The variable with respect to which the derivative is taken |
type |
Could be individual utility (u) or the joint utility of the couple (U) in a unitary framework |
spouse |
If the type is individual utility (u), we should specify we mean husband or wife utility |
i |
The marriage index |
r |
First period repetition. It is not necessary to be greater than one for the first period. It is needed for taking expectaions, which is required in the second period |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.