In this PR, we add a special argument _period, that can be used in the user-defined functions. It represents the current period in the model. This can be useful, for example, to model age:
def age(_period):
return _period + 18
@ChristianZimpelmann Before we merge, could you check that the simulated results using this feature make sense in one of your models? Ideally, we would also have another small test for the lcm test suite. I've only tested that nothing breaks, not that the feature does what it should.
Comment:
I know that the testing situation in LCM is horrible, as there are way too many slightly different "PHELPS_DEATON" models floating around. But there is little time to fix this now. I've opened an issue regarding this: #46.
In this PR, we add a special argument
_period
, that can be used in the user-defined functions. It represents the current period in the model. This can be useful, for example, to model age:@ChristianZimpelmann Before we merge, could you check that the simulated results using this feature make sense in one of your models? Ideally, we would also have another small test for the lcm test suite. I've only tested that nothing breaks, not that the feature does what it should.