# PR to fix bugs in LifeCycleProfiles\_FHorz\_Case1\_PType and in SimPanelValues\_FHorz\_Case1\_PType

**URL:** https://discourse.vfitoolkit.com/t/pr-to-fix-bugs-in-lifecycleprofiles-fhorz-case1-ptype-and-in-simpanelvalues-fhorz-case1-ptype/627
**Category:** Uncategorized
**Created:** [April 3, 2026, 12:46am UTC](https://discourse.vfitoolkit.com/t/pr-to-fix-bugs-in-lifecycleprofiles-fhorz-case1-ptype-and-in-simpanelvalues-fhorz-case1-ptype/627 "2026-04-03T00:46:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![robertdkirkby](https://discourse.vfitoolkit.com/user_avatar/discourse.vfitoolkit.com/robertdkirkby/32/287_2.png) [@robertdkirkby](https://discourse.vfitoolkit.com/u/robertdkirkby)
#### Post date: [April 7, 2026, 2:49am UTC](https://discourse.vfitoolkit.com/t/pr-to-fix-bugs-in-lifecycleprofiles-fhorz-case1-ptype-and-in-simpanelvalues-fhorz-case1-ptype/627/2 "2026-04-07T02:49:31Z")

</div>

Merged most, everything now works and both of these are demoed here:

> [@Semi-exogenous shocks with permanent types](https://discourse.vfitoolkit.com/t/semi-exogenous-shocks-with-permanent-types/609/13):
>
> I’m done with the semi-exogenous states for permanent types. You must set up vfoptions.semiz\_grid, and then one of vfoptions.SemiExoShockFn or vfoptions.pi\_semiz. You can include age and ptype as dimensions of semiz\_grid and pi\_semiz, or not as you wish. Dependence on ptype can be done as a (the last) dimension, or as fieldnames. Here is the code that I was checking all the combos. % Age % One endogenous variable: assets % One stochastic exogenous variables: income shock J=10; % Ages 1 to 1…

---

_[View the full topic](https://discourse.vfitoolkit.com/t/pr-to-fix-bugs-in-lifecycleprofiles-fhorz-case1-ptype-and-in-simpanelvalues-fhorz-case1-ptype/627)._
