I am comparing a lifecycle model with endogenous labor supply in Fortran vs Toolkit. I will post the results in another post. Here I wanted to clarify a source of discrepancy between the fortran implementation (which is correct) and the toolkit (which may be wrong or not clear).
The model has state variables (a,z,j,\theta), where \theta is a fixed productivity type which takes two values with equal probability. In the toolkit we do this defining \theta as a permanent type and setting
Params.theta = [0.8,1.2];
Params.ptypeweights=[0.5,0.5];
When I compute the variance of income (or any variable) by age using the toolkit Ptype command I get a result which is not what I expect. So I was wondering what formula does the toolkit use. To be clear, I am computing the variance of variable X conditional on age (NOT conditional on permanent type), let’s call it Var(X|j) for j=1,...,J.
where
There must be some inconsistency in the toolkit: if I include \theta as a second z state and do NOT use the ptype functions, I do get the correct result for the age-conditional variance.
Maybe @MichaelTiemann already flagged this problem in some other post (or even myself, I tend to forget ![]()