This function calculates the derivative of the expected second period divorce utility wrt to saving given the information revealed at the first period for a given level of savings for an individual family. Essentially, it calculates the second period optimal consumption for the given level of saving in the state of divorce 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. The second period optimal consumption analytical solutions are obtained with no optimization; just consumming the second period income.
1 2 |
S |
Saving |
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 |
sigma_eta_h |
The husband's variance of transitory shock. If not specified the default is the baseline value specified in the param() |
rho |
The contemporaneous correlation coefficient of the husband and wife income shocks. If not specified the default is the baseline value specified in the param() |
phi |
The ratio of the wife's standard deviation of the transitory shock to that of the husband. If not specified the default is the baseline value specified in the param() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.