Replication is available here: https://github.com/vfitoolkit/vfitoolkit-matlab-replication/tree/master/LaunWallenius2015
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.