defining a range for the values a variable can take
Posted: Thu Dec 02, 2010 10:51 pm
Hi,
I'm simulating a New Keynesian model with search frictions. The total labor force in the model is normalized to 1, and consists out of the sum of the employed and the ones who remain unemployed after matching took place.
The problem is the following. Theoretically at any point in time the number of unemployed as well as the number of employed cannot exceed 1 ( as this would imply that more people are employed or unemployed than the total labor force).However, when I look at the simulated results I find out that in several cases employment or unemployment exceeds the range [0,1}.
My question is if there is a way to define the range of values a variable can take, or do these results simply imply that there is a mistake in the code?
Thanks a lot for your help!
best,
L.
I'm simulating a New Keynesian model with search frictions. The total labor force in the model is normalized to 1, and consists out of the sum of the employed and the ones who remain unemployed after matching took place.
The problem is the following. Theoretically at any point in time the number of unemployed as well as the number of employed cannot exceed 1 ( as this would imply that more people are employed or unemployed than the total labor force).However, when I look at the simulated results I find out that in several cases employment or unemployment exceeds the range [0,1}.
My question is if there is a way to define the range of values a variable can take, or do these results simply imply that there is a mistake in the code?
Thanks a lot for your help!
best,
L.