Replication is available here: vfitoolkit-matlab-replication/LaunWallenius2015 at master · vfitoolkit/vfitoolkit-matlab-replication · GitHub
Everything replicates cleanly ![]()
Shows off something not previously documented in VFI Toolkit. In LW2015 model you need to keep track of the age at which household “claims disability insurance”, “claims retirement pension”, and “stop work”. If you just took cross product it would be 40,000 combos. But only 1237 combos are actually relevant to the model. VFI Toolkit can set this up as an “experienceasset”, and you can easily have AI write the ‘encode/decode’ that converts the index which counts from 1-to-1237 into the ‘values of the three variables’ and vice-versa.
[Note: this is essentially a_gridvals, but with a decision variable that drives it that is way smaller. AI often suggests ‘lookup table’ approach, but this won’t work with gpu so you need the encode/decode to be done as functions.]
Whole thing runs on my desktop, full replication is easily done overnight, probably only takes an afternoon. I was able to use Claude + VFI Toolkit to write the entire replication in a single day.