The gstate.R program here includes what may be fixes for as yet unrepaired problems in the gstate.m code. It has been tested on some standard linear RE models, but not all the branches in the code have been tested. Please inform me if you find anomalies. Chris Sims 2/4/2005