I have done some PR that should fix all bugs in LifeCycleProfiles_FHorz_Case1_PType and in SimPanelValues_FHorz_Case1_PType. The PR is here: Fix grouped PType conditional stats with conditional restrictions by aledinola · Pull Request #81 · vfitoolkit/VFIToolkit-matlab · GitHub
As far as I understand, in SimPanelValues_FHorz_Case1_PType you had not implemented yet the pi_semiz with permanent types as last dimension. Now it should work both ways.
Suggestions:
- You could run the simple test you shared in a previous post, after adding the simulate panel command and verify that all is good. In my example (shared on github) I test only for the new approach
- It would be nice to incorporate in the official toolkit examples an example based on finite horizon, with semi-exogenous state, permanent types, panel simulation. The semi-exogenous transition matrix should depend also on the permanent type, besides decision variable d and age j. From what I have seen, these cases tend to break and if there is an official example in the toolkit repo it is easier to run tests.