Announcement

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

  • Stpm2 error <istmt>: 3499 stpm2_setup()not found

    Hello all,
    I successfully used -stpm2- on my personal computer

    I looked at all the downloaded files, and as per usual sent to my administrator who installed them on my remote platform.
    I crosschcecked to make sure I have all the files on my remote as compared to the files on my personal computer (and I do) - see screen shot

    However, when working on my remote platform I started off with

    Code:
    stset survival, failure(mets=1) scale(12) exit(time120)
    stpm2 hormone, df(4) scale(hazard) eform nolog
    
    <istmt>: 3499 stpm2_setup()not found

    I cross checked with here :
    https://ideas.repec.org/c/boc/bocode/s457128.html

    To make sure I have all the files as seen in my screen shot
    Click image for larger version

Name:	Screenshot 2023-10-01 at 20.38.45.png
Views:	1
Size:	204.6 KB
ID:	1728712


    I seem to be missing the following 2 files - although they're not found on my personal subscription laptop which allows stpm2 to work flawlessly( although... maybe I can't seem them)....
    File URL: http://fmwww.bc.edu/repec/bocode/b/build_stpm2_mlib.ado
    File Function: program code
    Download Restriction: no
    File URL: http://fmwww.bc.edu/repec/bocode/l/lstpm2.mlib
    File Function: Mata object library
    Download Restriction: no

    I have now downloaded lstpm2.mlib

    But I can't download stpm2_mlib
    I've tried to following - find what I typed and stata's errors

    net from http://fmwww.bc.edu/repec/bocode/b/build_stpm2_mlib.ado
    file http://fmwww.bc.edu/repec/bocode/b/b....ado/stata.toc not found
    http://fmwww.bc.edu/repec/bocode/b/b...tpm2_mlib.ado/ either
    1) is not a valid URL, or
    2) could not be contacted, or
    3) is not a Stata download site (has no stata.toc file).

    current site is still http://fmwww.bc.edu/repec/bocode/s/
    r(601);

    . net link http://fmwww.bc.edu/repec/bocode/b/build_stpm2_mlib.ado
    http://fmwww.bc.edu/repec/bocode/b/build_stpm2_mlib.ado not found
    r(111);

    . ssc install build_stpm2_mlib
    ssc install: "build_stpm2_mlib" not found at SSC, type search build_stpm2_mlib
    (To find all packages at SSC that start with b, type ssc describe b)
    r(601);

    Firstly, do you think stpm2 is not working because I'm missing the two files?
    Is there perhaps another reason?
    How can I download stpm2_mlib

    So annoying all this regulation when my personal computer works flawlessly and no messing around with files

  • #2
    For anyone, I solved this.
    I actually contacted the author

    Firstly ensure all the files are installed
    You should have the following files

    The error in my case was due to the absence of -lstpm2.mlib-

    When all files installed, and you get the above error run the following:
    Code:
    mata mata mlib index
    lstpm2 should be in the output

    If it isn't then if you have installed it, it should be located in the stata> ado>personal folder

    Mine was stored in just the stata folder and didn't work in fact it didn't appear in the output following the code given above
    It now works

    Note - I am working on a remote platform which is not connected to the internet and rely on my administrator uploading the packages which I email to the administrator - laborious but that;s the system!

    Click image for larger version

Name:	Screenshot 2023-10-02 at 21.14.12.png
Views:	2
Size:	490.4 KB
ID:	1728859


    Attached Files

    Comment

    Working...
    X