A bug in the DID?

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

kzmh78
Posts: 15
Joined: Mon Nov 08, 2010 9:27 am

A bug in the DID?

Postby kzmh78 » Mon Nov 06, 2023 8:08 pm

Hi, I did the Callaway and Sant'Anna (2021) example on page 1294 of Users Guide2.
Then, on page 1296 of the Users Guide, the coefficient of TREATED is -0.036549, but my estimate is 5.776771 (see eq01).

However, as is, if I do the CS Group-Time Effects on page 1296, I get the results on page 1297 (see spool_eq01).

Is it because my procedure is wrong that the TREATED coefficient is not -0.036549? Or is it an error in EViews13?
Attachments
callawaysantanna20231107.wf1
(257.43 KiB) Downloaded 80 times

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

Re: A bug in the DID?

Postby EViews Gareth » Mon Nov 06, 2023 10:33 pm

Bug in EViews for that initial estimate - thanks for reporting, we'll issue a fix asap.
Follow us on Twitter @IHSEViews

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

Re: A bug in the DID?

Postby EViews Gareth » Tue Nov 07, 2023 10:23 am

Patch released
Follow us on Twitter @IHSEViews

kzmh78
Posts: 15
Joined: Mon Nov 08, 2010 9:27 am

Re: A bug in the DID?

Postby kzmh78 » Tue Nov 07, 2023 4:41 pm

Thank you for releasing the Patch !
I estimate using Nov 7 2023 build ver, the coefficient of TREATED is now -0.036549, as written on page 1296 of the Users Guide2.

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

Re: A bug in the DID?

Postby EViews Gareth » Tue Nov 07, 2023 5:08 pm

Great. You can verify that is the correct number by estimating a two-way fixed effects Least Squares model with a constant and Treated as the regressor.

Command:

Code: Select all

equation eq_test.ls(cx=f, per=f) lemp c treated
show eq_test
Follow us on Twitter @IHSEViews


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests