Why do the elderly save? The role of medical expenses

Hi aledinola, yes this looks like my graph. Thanks for confirming my results

1 Like

@jake88 FYI I did the “easy stuff”, i.e. increasing the number of grid points for assets and increasing the number of agents to simulate, but it didn’t change the results

@jake88 If you are interested in life-cycle models with health risk, I wrote a post here where I cite some recent papers

1 Like

Thanks for these papers!

1 Like

Did you have time to look into the simulations and understand why the graphs look so strange? Thanks for this

1 Like

Hi @jake88, I haven’t really looked carefully at these codes since I am not really interested in this model… As a general suggestion when trying to understand why a code works (or does not work): you could first code up a simpler version that you understand well and gives expected results. Then, step-by-step, you can add features and debug them.

For example: this model has lots of types. Try using only two of them (men vs women) so that N_i=2 and see how it goes.

Hope this helps!

1 Like

Thanks for your insights! I will have to simplify the model quite a bit, since now the simulations always return (almost) flat lines

1 Like

I did a bit of improvement. Hopefully do more later this week. Not tried plotting yet, but getting close :slight_smile:

1 Like