Announcement

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

  • Error: "type mismatch: exp.exp: transmorphic found where struct expected"

    Hi,

    I am trying to use synthetic difference-in-differences (Arkhangelsky et al., 2021) as an analytical tool. There is a Stata code called -sdid- as explained in this following github page: https://github.com/Daniel-Pailanir/sdid

    I tried running the below demo code for practice but it gave me the "type mismatch: exp.exp: transmorphic found where struct expected" error. Would you please explain me what is wrong on my side? I'm using an older version of Stata, so do you think that's also causing it?

    Code:
    ssc install sdid, replace
    
    net install sdid, from("https://raw.githubusercontent.com/daniel-pailanir/sdid/master") replace
    
    webuse set www.damianclarke.net/stata/
    webuse prop99_example.dta, clear
    
    #delimit ;
    sdid packspercapita state year treated, vce(placebo) reps(100) seed(1213) 
         graph g1_opt(xtitle("") ylabel(-35(5)10) scheme(plotplainblind)) 
         g2_opt(ylabel(0(50)150) xlabel(1970(5)2000) ytitle("Packs per capita") 
                xtitle("") text(125 1995 "ATT = -15.604" " SE = (9.209)") scheme(plotplainblind))
        graph_export(sdid_, .png) ;
    #delimit cr
    Thanks!

  • #2
    The command is stated to require Stata 13. It would refuse to run altogether if your "older version" is 12 or less. That doesn't mean there may not be a version problem.

    Does this imply that you can't replicate the authors' own example?

    Damian Clarke is a member here.

    Comment


    • #3
      Thanks! My Stata is version 14.0.

      Comment


      • #4
        The same question was asked and resolved in https://www.statalist.org/forums/for...ger-2021/page2. See #18.

        Comment


        • #5
          Thanks, Andrew Musau!

          I checked that thread. It's mentioned that I should use the github version to install the command, not the ssc. I did that. Now, it is giving me a different error: "option matrow() not allowed". Any thoughts why this is happening, Daniel PV Damian Clarke ? Thanks so much!

          Comment


          • #6
            If the authors do not get back to you here, you can send an email to them reporting the error.

            Comment


            • #7
              Hello Samyam Shrestha , I am so sorry about this! (and for being late to the post)
              Yesterday I updated the sdid command on github, and completely forgot about the matrow() option in most old versions of stata. Thank you very much for posting the problem here.
              I updated a few minutes ago a new version (on github) that I ran on Stata 13.0 and it works great!

              Let me know if your issue is resolved!
              Last edited by Daniel PV; 28 May 2022, 16:48.

              Comment


              • #8
                Originally posted by Daniel PV View Post
                Hello Samyam Shrestha , I am so sorry about this! (and for being late to the post)
                Yesterday I updated the sdid command on github, and completely forgot about the matrow() option in most old versions of stata. Thank you very much for posting the problem here.
                I updated a few minutes ago a new version (on github) that I ran on Stata 13.0 and it works great!

                Let me know if your issue is resolved!
                Great, it seems to be working. Thanks so much, Daniel PV !

                Comment

                Working...
                X