Giter VIP home page Giter VIP logo

I have two issues. One is that after adding control variables(did_multiplegt_dyn), the results don't appear, even though I've installed the suggested packages. The second is that I encountered the following prompt. about did HOT 2 OPEN

kikiwong333 avatar kikiwong333 commented on May 28, 2024
I have two issues. One is that after adding control variables(did_multiplegt_dyn), the results don't appear, even though I've installed the suggested packages. The second is that I encountered the following prompt.

from did.

Comments (2)

asjadnaqvi avatar asjadnaqvi commented on May 28, 2024

@DiegoCiccia a question for did_multiplegt

from did.

DiegoCiccia avatar DiegoCiccia commented on May 28, 2024

Dear all,
I am Diego from Clément de Chaisemartin's RA Team.
Thanks for your interest in did_multiplegt!
From the second error line, it seems that the command was not able to compute all the effects and/or placebos requested.
From the first error line, it seems that the command failed to estimate the fifth dynamic effect.
In did_multiplegt, when there is no group with an n-th period after the first switch, the command halts and gives the error above. We changed this feature in did_multiplegt_dyn, whereby the program estimates all the effects that can be estimated, while leaving a message about the effects that could not be estimated.
Here's an example:

clear
set obs 36
gen group = mod(_n-1, 6) + 1
bys group: gen time = _n
sort group time
gen D = time >= group + 1 & group > 2
gen Y = uniform() * (D + 1)

In this DGP, group 3 has the highest amount of post-switch periods (3). If we try to estimate more effects than that, did_multiplegt gives the same error as the one reported in the original post:

did_multiplegt Y group time D, robust_dynamic dynamic(4) breps(10)

Notice that the effects that could have been computed (Effect_0 to Effect_2 in did_multiplegt notation) are still retrievable from ereturn, even though the table is not displayed.

Instead, in did_multiplegt_dyn the estimation routine does not halt, even though a message is displayed in the console:

did_multiplegt_dyn Y group time D, effects(4)

To this end, it should be enough to install did_multiplegt_dyn and run your model with it.
If there are any further issues, please refer to the did_multiplegt_dyn GitHub page and/or contact us via email.
Best,
Diego

from did.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.