I have the same problem as the following post, but I have more samples and the index of the outlier is known.
Outlier treatment in Vector Autoregression (VAR) Model
I tried deleting the outliers; it works. I also want to try including dummy variables for the outliers (the dummy take the value of 1 on the outliers, and zero otherwise) and compare the two treatments. One reason I want to do this is that a special event at t1 may also impact the response variable y2 at t2. However, its impact on t2 is not significant enough, thus y2 is not an outlier.
Question
: The VAR in R package vars
returns "NAs in dummy variable". I guess is because the dummy variable comprises a lot of zeros. I don't know how to fix it. Thanks in advance.