Announcement

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

  • eventstudyinteract returns "struct ms_vcvorthog undefined" error message on secure server

    I've got a strange one for you.

    I've been trying to use the package eventstudyinteract on a secure server due to confidentiality of the data. For that reason, the package and its dependencies haven't been install through the ssc command. Instead, the ado file has to be manually transferred with a USB key by a third party. It seems to be causing a problem but not one we can identify. When we run the .do file, we get the following error message:

    HTML Code:
    struct ms_vcvorthog undefined
    (42 lines skipped)
    (error occurred while loading avar.ado)
    Now, I'm not the only person experiencing this very problem.

    I've tried pretty much everything I could think of. We've reinstalled the package and its dependencies (avar, ftools, reghdfe) several times, through different means. I have confirmed I have the same version of avar as the author. The function works on simulated on a different computer, so we've tried copying that exact ado file to the secure server. It didn't work either. I've discussed this with the author of the package and she has no clue what the problem might be.

    Other packages work fine. It's just eventstudyinteract which seems to cause a problem.

    We're using Stata 16 at the Data Center.

  • #2
    Have you placed all the files in the packages in the appropriate directories?

    If you were to install the packages from SSC, the files would be installed in subdirectories of the the PLUS directory reported by that name in the output of the adopath command. The following example is from my Mac.
    Code:
    . adopath
      [1]  (BASE)      "/Applications/Stata/ado/base/"
      [2]  (SITE)      "/Applications/Stata/ado/site/"
      [3]              "."
      [4]  (PERSONAL)  "/Users/lisowskiw/Library/Application Support/Stata/ado/personal/"
      [5]  (PLUS)      "/Users/lisowskiw/Library/Application Support/Stata/ado/plus/"
      [6]  (OLDPLACE)  "~/ado/"
    So in what follows, the files would be installed by SSC in the following directories, replacing PLUS with the path shown in the adopath output on the system on which the packages are being installed.

    Code:
    PLUS/e/eventstudyinteract.ado
    PLUS/e/eventstudyinteract.sthlp
    
    PLUS/a/avar.ado
    PLUS/a/avar9.ado
    PLUS/a/avar.sthlp
    PLUS/l/livreg2.mlib
    
    PLUS/f/ftools.ado
    PLUS/f/ftools.mata
    PLUS/f/ftools.sthlp
    PLUS/f/fcollapse.ado
    PLUS/f/fcollapse.sthlp
    PLUS/f/fegen.ado
    PLUS/f/fegen_group.ado
    PLUS/f/fegen.sthlp
    PLUS/f/fisid.ado
    PLUS/f/fisid.sthlp
    PLUS/f/flevelsof.ado
    PLUS/f/flevelsof.sthlp
    PLUS/f/fmerge.ado
    PLUS/f/fmerge.sthlp
    PLUS/f/freshape.ado
    PLUS/f/fsort.ado
    PLUS/f/fsort.sthlp
    PLUS/f/ftab.ado
    PLUS/j/join.ado
    PLUS/j/join.sthlp
    PLUS/l/local_inlist.ado
    PLUS/l/local_inlist.sthlp
    PLUS/f/fcollapse_functions.mata
    PLUS/f/fcollapse_main.mata
    PLUS/f/ftools_type_aliases.mata
    PLUS/f/ftools.mata
    PLUS/f/ftools_common.mata
    PLUS/f/ftools_hash1.mata
    PLUS/f/ftools_main.mata
    PLUS/f/ftools_experimental.mata
    PLUS/f/ftools_plugin.mata
    PLUS/f/ftools_type_aliases.mata
    PLUS/m/ms_compile_mata.ado
    PLUS/m/ms_expand_varlist.ado
    PLUS/m/ms_fvstrip.ado
    PLUS/m/ms_fvstrip.sthlp
    PLUS/m/ms_fvunab.ado
    PLUS/m/ms_get_version.ado
    PLUS/m/ms_parse_absvars.ado
    PLUS/m/ms_parse_varlist.ado
    PLUS/m/ms_parse_vce.ado
    PLUS/m/ms_add_comma.ado
    
    PLUS/r/reghdfe.ado
    PLUS/r/reghdfe.mata
    PLUS/r/reghdfe_old.ado
    PLUS/r/reghdfe_p.ado
    PLUS/r/reghdfe_old_p.ado
    PLUS/r/reghdfe_estat.ado
    PLUS/r/reghdfe_parse.ado
    PLUS/r/reghdfe_footnote.ado
    PLUS/r/reghdfe_old_estat.ado
    PLUS/r/reghdfe_old_footnote.ado
    PLUS/e/estfe.ado
    PLUS/r/reghdfe_header.ado
    PLUS/r/reghdfe_store_alphas.ado
    PLUS/r/reghdfe.sthlp
    PLUS/r/reghdfe_old.sthlp
    PLUS/r/reghdfe_accelerations.mata
    PLUS/r/reghdfe_bipartite.mata
    PLUS/r/reghdfe_class.mata
    PLUS/r/reghdfe_common.mata
    PLUS/r/reghdfe_constructor.mata
    PLUS/r/reghdfe_lsmr.mata
    PLUS/r/reghdfe_projections.mata
    PLUS/r/reghdfe_transforms.mata
    PLUS/r/reghdfe_mata.sthlp
    Alternatively, you could install them all into a single directory, not using the single-letter subdirectories, and then use the adopath + command (see help adopath) to add that directory to the list of directories searched by Stata.

    Comment


    • #3
      Originally posted by William Lisowski View Post
      Have you placed all the files in the packages in the appropriate directories?
      I believe so, yes. I've defined the path with sysdir which itself contains a ado directory which then contains a plus directory with single-letter subdirectories. As I've mentioned above, it isn't the only package I'm using. The others (e.g., csdid, did_imputation, did_multiplegt, etc.) all work perfectly fine. The problem is solely with eventstudyinteract.

      Before encountering this bug, I had forgotten to install ftools so I got a prompt then which signalled me ftools was missing. I've since installed ftools and now that's what I'm getting. I've verified countless times but avar is properly installed and up to date. There is nothing that would suggest to me the problem is with pathing. In fact, the ado directory was copied from a computer where the command works on simulated data. The same code however does not work on the secure server.
      Last edited by Samy Gallienne; 16 Jun 2022, 22:32.

      Comment


      • #4
        I suggest you try running the following Stata commands on your secure server account.
        Code:
                capture mata: mata drop m_calckw()
                capture mata: mata drop m_omega()
                capture mata: mata drop ms_vcvorthog()
                capture mata: mata drop s_vkernel()
                mata: mata mlib index
        This is based on comments seen at the top of avar.ado where these commands are not run on Stata versions earlier than 12 with the comment "Not needed for Stata 12+ since ssc.ado does this when installing".

        Code:
        viewsource avar.ado
        Let us know if this solves the problem.

        Comment


        • #5
          Originally posted by William Lisowski View Post
          I suggest you try running the following Stata commands on your secure server account.
          Code:
          capture mata: mata drop m_calckw()
          capture mata: mata drop m_omega()
          capture mata: mata drop ms_vcvorthog()
          capture mata: mata drop s_vkernel()
          mata: mata mlib index
          Yup. That did it. Now, it works properly. Thank you so much.
          Last edited by Samy Gallienne; 17 Jun 2022, 13:18.

          Comment


          • #6
            Originally posted by William Lisowski View Post
            Have you placed all the files in the packages in the appropriate directories?

            If you were to install the packages from SSC, the files would be installed in subdirectories of the the PLUS directory reported by that name in the output of the adopath command. The following example is from my Mac.
            Code:
            . adopath
            [1] (BASE) "/Applications/Stata/ado/base/"
            [2] (SITE) "/Applications/Stata/ado/site/"
            [3] "."
            [4] (PERSONAL) "/Users/lisowskiw/Library/Application Support/Stata/ado/personal/"
            [5] (PLUS) "/Users/lisowskiw/Library/Application Support/Stata/ado/plus/"
            [6] (OLDPLACE) "~/ado/"
            So in what follows, the files would be installed by SSC in the following directories, replacing PLUS with the path shown in the adopath output on the system on which the packages are being installed.

            Code:
            PLUS/e/eventstudyinteract.ado
            PLUS/e/eventstudyinteract.sthlp
            
            PLUS/a/avar.ado
            PLUS/a/avar9.ado
            PLUS/a/avar.sthlp
            PLUS/l/livreg2.mlib
            
            PLUS/f/ftools.ado
            PLUS/f/ftools.mata
            PLUS/f/ftools.sthlp
            PLUS/f/fcollapse.ado
            PLUS/f/fcollapse.sthlp
            PLUS/f/fegen.ado
            PLUS/f/fegen_group.ado
            PLUS/f/fegen.sthlp
            PLUS/f/fisid.ado
            PLUS/f/fisid.sthlp
            PLUS/f/flevelsof.ado
            PLUS/f/flevelsof.sthlp
            PLUS/f/fmerge.ado
            PLUS/f/fmerge.sthlp
            PLUS/f/freshape.ado
            PLUS/f/fsort.ado
            PLUS/f/fsort.sthlp
            PLUS/f/ftab.ado
            PLUS/j/join.ado
            PLUS/j/join.sthlp
            PLUS/l/local_inlist.ado
            PLUS/l/local_inlist.sthlp
            PLUS/f/fcollapse_functions.mata
            PLUS/f/fcollapse_main.mata
            PLUS/f/ftools_type_aliases.mata
            PLUS/f/ftools.mata
            PLUS/f/ftools_common.mata
            PLUS/f/ftools_hash1.mata
            PLUS/f/ftools_main.mata
            PLUS/f/ftools_experimental.mata
            PLUS/f/ftools_plugin.mata
            PLUS/f/ftools_type_aliases.mata
            PLUS/m/ms_compile_mata.ado
            PLUS/m/ms_expand_varlist.ado
            PLUS/m/ms_fvstrip.ado
            PLUS/m/ms_fvstrip.sthlp
            PLUS/m/ms_fvunab.ado
            PLUS/m/ms_get_version.ado
            PLUS/m/ms_parse_absvars.ado
            PLUS/m/ms_parse_varlist.ado
            PLUS/m/ms_parse_vce.ado
            PLUS/m/ms_add_comma.ado
            
            PLUS/r/reghdfe.ado
            PLUS/r/reghdfe.mata
            PLUS/r/reghdfe_old.ado
            PLUS/r/reghdfe_p.ado
            PLUS/r/reghdfe_old_p.ado
            PLUS/r/reghdfe_estat.ado
            PLUS/r/reghdfe_parse.ado
            PLUS/r/reghdfe_footnote.ado
            PLUS/r/reghdfe_old_estat.ado
            PLUS/r/reghdfe_old_footnote.ado
            PLUS/e/estfe.ado
            PLUS/r/reghdfe_header.ado
            PLUS/r/reghdfe_store_alphas.ado
            PLUS/r/reghdfe.sthlp
            PLUS/r/reghdfe_old.sthlp
            PLUS/r/reghdfe_accelerations.mata
            PLUS/r/reghdfe_bipartite.mata
            PLUS/r/reghdfe_class.mata
            PLUS/r/reghdfe_common.mata
            PLUS/r/reghdfe_constructor.mata
            PLUS/r/reghdfe_lsmr.mata
            PLUS/r/reghdfe_projections.mata
            PLUS/r/reghdfe_transforms.mata
            PLUS/r/reghdfe_mata.sthlp
            Alternatively, you could install them all into a single directory, not using the single-letter subdirectories, and then use the adopath + command (see help adopath) to add that directory to the list of directories searched by Stata.
            Hi, I'm having the same problem! also on a secure computer. However I'm not sure I understand your instructions since I'm not that experienced with Stata.

            I'm using your codes as an example, but should I type:

            adopath + /Users/lisowskiw/Library/Application Support/Stata/ado/plus/e.ado
            adopath + /Users/lisowskiw/Library/Application Support/Stata/ado/plus/e.sthlp
            .
            .
            .
            and so on for all of the single letters so the whole file gets in the directory?

            Comment

            Working...
            X