Christopher Gandrud, Laron K Williams, and Guy DWhitten
Thedynsim package implements Williams and Whitten’s(2011,2012) method fordynamic simulations of autoregressive relationships in R.
There are four basic steps to usedynsim to createdynamic simulations of autoregressive relationships:
Estimate your linear model usinglm orsimilar functions.
Set up starting values for simulation scenarios and(optionally) shock values at particular iterations (e.g. points inforecasted time).
Simulate these scenarios based on the estimated modelusing thedynsim function.
Plot the simulation results with thedynsimGG function.
For examples please visithttps://christophergandrud.github.io/dynsim/.
dynsim is available onCRAN
You can also easily install the latest development version with thedevtools package:
devtools::install_github("christophergandrud/dynsim")