Announcement

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

  • Error 3499 when using KHB

    Hi all. I'm using restricted data in Stata 17 via a remote desktop. I've installed the khb package from the bocode files on the remote desktop. Every time I try to run a khb model I get the following error:

    <istmt>: 3499 khb() not found

    When I run the exact same command on the unrestricted version of the data on my own pc, it runs without any problems. Any idea what's going on?

  • #2
    Your code fails, I guess, because Stata can't see all the files in the package.
    Code:
    net describe khb, from(http://fmwww.bc.edu/RePEc/bocode/k)
    lists the files.

    Comment


    • #3
      As someone who occasionally, and somewhat reluctantly, works remotely in a secure enclave accessed via remote desktop, when I need access to software from SSC, I install it onto my laptop from the network, then gather up the files and have them uploaded to my account, just as I do programs and data. From there, I place them into either the same directory as the programs that are going to use them, or into my Stata PERSONAL directory.

      The net describe command tells us there are 6 files that need to be installed
      Code:
      INSTALLATION FILES                                  (type net install khb)
            khb.ado
            khbtab.ado
            ../l/lkhb.mata
            ../l/lkhb.mlib
            khb.sthlp
            khbtab.sthlp
      The ado and sthlp files would be installed into the k subdirectory of the Stata PLUS directory, and the mata and mlib files would be be installed into the l subdirectory of the Stata PLUS directory.

      Here's an example showing what happens with a network install on my laptop running macOS.
      Code:
      . net install khb, from(http://fmwww.bc.edu/RePEc/bocode/k)
      checking khb consistency and verifying not already installed...
      installing into /Users/lisowskiw/Library/Application Support/Stata/ado/plus/...
      installation complete.
      
      . sysdir
         STATA:  /Applications/Stata/
          BASE:  /Applications/Stata/ado/base/
          SITE:  /Applications/Stata/ado/site/
          PLUS:  /Users/lisowskiw/Library/Application Support/Stata/ado/plus/
      PERSONAL:  /Users/lisowskiw/Library/Application Support/Stata/ado/personal/
      OLDPLACE:  ~/ado/
      
      . dir "`c(sysdir_plus)'k/khb*"
      
      -rw-r--r--  1 lisowskiw  staff  13726 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/k/khb.ado
      -rw-r--r--  1 lisowskiw  staff  12420 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/k/khb.sthlp
      -rw-r--r--  1 lisowskiw  staff   3502 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/k/khbtab.ado
      -rw-r--r--  1 lisowskiw  staff   6820 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/k/khbtab.sthlp
      
      . dir "`c(sysdir_plus)'l/lkhb*"
      
      -rw-r--r--  1 lisowskiw  staff   9816 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/l/lkhb.mata
      -rw-r--r--  1 lisowskiw  staff  93272 Jan 18 16:58 /Users/lisowskiw/Library/Application Support/
      > Stata/ado/plus/l/lkhb.mlib
      
      .
      And those are the files I would copy and ask to have loaded into my remote account.

      Comment


      • #4
        Thank you both. I was able to separately load khbtab.ado and lkhb.mata from the bocode files and a test command worked without problems.

        Comment

        Working...
        X