Coder Social home page Coder Social logo

Two errors: (1) "Warning message: The demeaning algorithm did not converge, the results are not reliable. (tol: 1e-06, iter: 2036)" and (2) "Error: Class of the `.Dtreat` variable is class is not supported." about etwfe HOT 4 CLOSED

grantmcdermott avatar grantmcdermott commented on July 4, 2024
Two errors: (1) "Warning message: The demeaning algorithm did not converge, the results are not reliable. (tol: 1e-06, iter: 2036)" and (2) "Error: Class of the `.Dtreat` variable is class is not supported."

from etwfe.

Comments (4)

grantmcdermott avatar grantmcdermott commented on July 4, 2024

Hi Simon,

It's tricky without having access to your data---can you at least print out the results of head(tk_cbs_test_12_21_80_t12_hosp_imp)?---but my first guess is that your imputed treatment date is mislaligned. Can you retry from step 2, except this time set the first.treat date to 2021?

from etwfe.

grantmcdermott avatar grantmcdermott commented on July 4, 2024

Finally, I have one more question: is it also possible to use the staggered treatment with, in some cases, repeated treatments? To illustrate: suppose I have the relevant data for 2010, 2012, 2017 and 2021, but some neighbourhoods get treated multiple times (e.g. in between 2010 and 2012, but again in 2012 and 2017). Do I then just create a separate first.treat value for those groups, or is there another way around this?

I believe that the ETWFE framework should, conceptually, be able to handle multiple treatments as well as turning treatment off and on again. Unfortunately, I haven't coded that up in this implementation yet. You might consider the did_multiplegt package; though---fair warning---it's quite slow and not particularly well documented. I've written up an overview of it here.

from etwfe.

grantmcdermott avatar grantmcdermott commented on July 4, 2024

@simonvanteutem, any updates on this?

from etwfe.

grantmcdermott avatar grantmcdermott commented on July 4, 2024

Closing in the absence of further updates. Please let me know if there's still an issue.

from etwfe.

Related Issues (20)

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.