Corrected AR simulation to fit for missing values.