BookmarkSubscribeRSS Feed
niam
Quartz | Level 8
Hi All,
Can we combine VARMAX procedure with Difference in Differences method? Here is the context of my study:
I have 3 time series, Y1t, Y2t and Xt, in which Y1t and Y2t change over time with changes in Xt. However, I also have a binary variable, Z, which is an indicator of a policy shift in the middle of the time series that only affects Y1t. So, after a specific point in time, the values of Y1t will also be affected by the policy implementation Z while there is no policy effects on Y2t, time series Xt will continue to impact both Y1t and Y2t after the policy implementation.
One thing that I can think of is to change Z into a time series with values equal to 0 before the policy shift date and 1 after the policy shift date. Does that work? 
1 REPLY 1
dw_sas
SAS Employee

Hi @niam , 

 

Yes, your idea of including your indicator variable, Z, in the equation for Y1 along with your other input variable, X, in your Y1 and Y2 equations is a reasonable approach.  For example, you can specify the following MODEL statement in PROC VARMAX, where <options> is your list of desired options:

 

model y1=x z , y2=x / <options> ;

For more details on the MODEL statement syntax when a different set of input variables is used in each equation, please see the following link:

https://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_varmax_syntax12.htm&docsetVersio...  

 

I hope this helps!

DW

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 225 views
  • 0 likes
  • 2 in conversation