The original Smets/Wouters code was written for Dynare 3. What #usmodel_stst did is call a Matlab function that computed some of the parameters. You should not simply delete it. Note that there is a functioning version of the Smets/Wouters Model for Dynare 4 in the forum: [Syntax shock_decomposition)