The files below show examples of Intervention Responses generated using R.
The output is in the file "R code and Examples of Impulse Response Functions and Interventions (step and pulse).docx" attached at the bottom of this page.
The R script is in the file "R code to demonstrate step and impulse relationship.R" attached at the bottom of this page.
See also Impulse Response Function for an example of an alternative method to create the Impulse Response Function (IRF) using a for-loop.