Assigning a random number stream to a process only partially solves the problem. Suppose we make a small change to the employment rate (which we do every time we get a new set of assumptions from our finance department, The Treasury). If the rate is reduced then everyone has a reduced chance of being in work. So there are fewer people eligible to join a pension scheme and fewer random draws required for this process. After a random number is not drawn for the first record with a different work status other record in that and later period gets a different random number from the stream. Once this occurs other outputs will change due to changes in explanatory variables.
Any changes in births, deaths, or partnership are particular problematic as the analysis of gainers and losers becomes much less meaningful. Our policy users regard gainers and losers analyse as an essential requirement.
Another benefit of replicating random numbers is when changes are being made to a model that should not change any outputs. I have recently been working on a modification of one of our other models to increase its flexibility so it can model not only current pension rules but a new set. Being able to draw exactly the same random numbers enables the outputs from the two versions to be compared at the micro level to check the changes before coding for the new rules is added.
The way we deal with this in Pensim2 is to use a different seed for every random number draw. The seed is a function of four variables, in LIAM2 terminology these are: process, period, entity, and random_seed. The function used is quite complex and specific to Pensim2 (and our other Genesis models) so would not suitable for a more general tool such as LIAM2. We are currently investigating alternatives.
Using the order of definition for dealing with changes in the “process” factor of the Genesis equation for the seed would be acceptable. We already deal with this by retaining the order of definitions when we require random numbers to be replicated. Any new definitions are added at the end and redundant ones retained.
(For a general description of Genesis and Pensim2 see my posts in the thread: Comparison of LIAM2 and Genesis (SAS based model))
Ga�tan de Menten
Federal Planning Bureau
Economic Analyses & Forecasts
Avenue des Arts, 47-49 | 1000 Bruxelles
tel. +32 (0)2 507 7459
fax +32 (0)2 507 7373
email : g...@plan.be | www.plan.be
----------------------------------------------------------------------------
Disclaimer: please see "www.plan.be/disclaimer.html"
Please consider your environmental responsibility before printing this email
----------------------------------------------------------------------------
Ga�tan de Menten