Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cs_did does not allow for options

    Hello,

    I'm running my code on Stata/MP 16.0, and the csdid does not allow for any option that is not ivar, time, and gvar. Any other option I use it says "option X not allowed".

    If I run csdid Y X, ivar(id) time(year) gvar(group) it works.

    Does anyone have any idea of what could be the problem?

    Thank you!

  • #2
    Hi Dalila
    What "options" are you trying to use? Is it documented in the helpfile?
    can you provide the code you are trying to use?
    F

    Comment


    • #3
      Hi Fernando, thanks for your quick reply!

      They are documented in the helpfile. The ultimate goal is to compare the estimates using IPW and IMP. But for now, let's say I'm trying to run:

      csdid Y X, ivar(id) time(year) gvar(group) method(dripw) long2 notyet asinr (it doesn't work with one option at the time either).

      I also tried using an example you have in your website to see if it was from the data: use https://friosavila.github.io/playing...rdid/mpdta.dta, clear and csdid lemp lpop , ivar(countyreal) time(year) gvar(first_treat) method(dripw) , and it says "option method() is not allowed".

      I've already uninstalled and installed this command and drdid, but the problem persists.

      Thanks!

      Comment


      • #4
        Hi Dalila
        I find the problem puzzing, as i have no issues on my end
        So, please do the following
        Code:
        ssc install frause
        frause mpdta, clear
        set trace on 
        set tracedepth 3
        log using test
        csdid  lemp lpop , ivar(countyreal) time(year) gvar(first_treat) method(dripw) wboot rseed(1) agg(event) notyet
        log close
        And send me the logfile by email
        Thank you

        Comment


        • #5
          just to close this: I just had a very old version of the command that was not being updated with the new install.

          Comment

          Working...
          X