The folder “GSSA_Two_Models” contains MATLAB software for generalized stochastic-simulation algorithm (GSSA) accompanying the article "Numerically Stable and Accurate Stochastic Simulation Approaches for Solving Dynamic Economic Models" by Kenneth L. Judd, Lilia Maliar and Serguei Maliar, published in Quantitative Economics (2011), 2/2, 173–210.