// // AR(1) model // var x; // Name of the variable varexo e; // Name of the exogenous variable parameters rho se; // Parameters of the model rho = 0.95; se = 0.02; model; x = rho*x(-1)+e; end; initval; e=0; x=0; end; steady; check; shocks; var e; stderr se; end; stoch_simul(linear);