An R implementation of dynamic simulations of autoregressive relationships