DID models for non-panel data

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

miharbi
Posts: 15
Joined: Mon Jun 06, 2016 5:39 pm

DID models for non-panel data

Postby miharbi » Sun Jul 28, 2024 3:49 pm

Hi everyone,

I found in the EViews Help this statement: (To estimate DID models on non-panel workfiles, you will need to specify the appropriate least squares model manually using standard least squares regression.)

What does this statement mean, especially for non-panel data structures? I hope to find a practical example of this point?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: DID models for non-panel data

Postby EViews Gareth » Sun Jul 28, 2024 4:22 pm

Difference in Difference estimation is just standard OLS. EViews doesn't have a built in DiD estimator for non-panel workfiles, but since it is just OLS, you can estimate it with the OLS estimator.

miharbi
Posts: 15
Joined: Mon Jun 06, 2016 5:39 pm

Re: DID models for non-panel data

Postby miharbi » Mon Jul 29, 2024 5:02 pm

Thank you Gareth for your response!

I have no problem with what you said, but I want to understand the structure of non-panel data. What do you mean by it? Is there a practical example or a paper that has addressed this?

startz
Non-normality and collinearity are NOT problems!
Posts: 3796
Joined: Wed Sep 17, 2008 2:25 pm

Re: DID models for non-panel data

Postby startz » Wed Jul 31, 2024 9:24 am

Suppose you have an outcome variable y and two dummy variables, treated and after. (So some observations of y are treated after a certain date and others are never treated--the control group.) You could do

Code: Select all

ls y c treated after treated*after
The last coefficient is the DiD estimate.

miharbi
Posts: 15
Joined: Mon Jun 06, 2016 5:39 pm

Re: DID models for non-panel data

Postby miharbi » Fri Aug 02, 2024 12:08 pm

Thank you Starz,
It's very clear now.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests