Announcement

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

  • Calibrationbelt error message mm_integrate_38() function required

    Hi,

    Trying to run the calibrationbelt command I get an error message stating that the function mm_integrate_38() from the package -moremata- is required.

    The relevant article states 'The second way to use calibrationbelt is after fitting a logistic regression model (using either the logit or logistic command). In this case, it is possible to simply run calibrationbelt without specifying the argument varlist or any other option. The command automatically considers the dependent variable and the predictions of the logistic regression fit as the arguments to be used', and does not mention the mm_integrate_38() function (https://journals.sagepub.com/doi/pdf...867X1801700414).

    I guess I must be missing something, might anyone be able to help?

    Thank you

    Using Stata 15.1

    Code:
    // RUN logit

    Iteration 0: log likelihood = -448.47411
    Iteration 1: log likelihood = -382.91372
    Iteration 2: log likelihood = -382.2601
    Iteration 3: log likelihood = -382.25663
    Iteration 4: log likelihood = -382.25663

    Logistic regression Number of obs = 676
    LR chi2(23) = 132.43
    Prob > chi2 = 0.0000
    Log likelihood = -382.25663 Pseudo R2 = 0.1477


    // I then ran lroc, estat gof, and pmcalplot without any trouble//

    . net install gr0071
    checking gr0071 consistency and verifying not already installed...
    all files already exist and are up to date.

    . calibrationbelt
    The function mm_integrate_38() from the package -moremata- is required; type -ssc insta
    > ll moremata- to install the package.

    . ssc install moremata, replace
    checking moremata consistency and verifying not already installed...
    all files already exist and are up to date.
    Attached Files

  • #2
    Dear Camilda,

    Can you check your version, using:
    Code:
    which calibrationbelt
    *!1.4 calibrationbelt
    Is it 1.4?
    http://publicationslist.org/eric.melse

    Comment


    • #3
      Dear Eric,

      Thank you for your reply.

      Unfortunately, no version is shown when I check:

      . which calibrationbelt
      C:-------------------\Stata\c\calibrationbelt.ado

      .

      // I then thought the issue may be in how I tried to install the package, so I started again with 'search calibrationbelt' to 'package installation':

      package name: gr0071.pkg
      from: http://www.stata-journal.com/software/sj17-4/

      checking gr0071 consistency and verifying not already installed...
      all files already exist and are up to date.


      I am using a remote desktop to my University, while I hadn't had any issues installing other packages, I do wonder if this may be part of the problem?

      Thanks again,

      Camila

      Comment


      • #4
        Dear Camila,

        It is rather difficult to give advise as I cannot replicate your problem without access to your data.
        I assume that you have installed on your remote desktop.
        What you can do is open the ado file from the folder where your system has installed that. You can check for this location from within Stata by using the command:
        Code:
        sysdir
        What you should look for is the path reported by PLUS: in Stata's result window.
        Below that, in the folder ..\c you should find the file calibrationbelt.ado
        When you open this ado file, using a text editor or by using Stata's do-file editor, I expect the following in the first lines of the file:
        Code:
        /****************************/
        /* Calibration Belt Program */
        /****************************/
        
        /********************/
        /* Giovanni Nattino */
        /*   Version 1.4    */
        /********************/
        If that is the case, well, at least we are then certain that you are using the current version (that runs without issues on my system).

        Furthermore, I would again check for the last version of moremata, using:
        Code:
        ssc install moremata, replace
        You wrote in #1 that you are using the last version, but, better be certain of that (again).

        Another 'system cleaning' excersize would be to run a full ado update, using:
        Code:
        ado update, update
        which will not only update all ado packages present on your system but also remove older version of these should these still be located somewhere (unnecessarily).
        Sometimes conflicts occur when user made packages use older versions of other user made packages.
        Possibly this might be occuring when you are using the calibrationbelt command on your system.
        http://publicationslist.org/eric.melse

        Comment


        • #5
          Dear Eric,

          Thank you so much for your help.

          I used:

          . adopath

          Then opened the folder, but opening the ado file did not result in what you suggested so I then deleted the calibrationbelt.ado and .sthlp files to subsequently

          . sysdir set PLUS C:\----------

          . ssc install moremata, replace

          . search calibrationbelt

          checking gr0071 consistency and verifying not already installed...
          installing into C:\---------
          installation complete.

          //RUN logit

          . calibrationbelt
          -----------------------------------------------------------
          GiViTI Calibration Belt

          Calibration belt and test for internal validation:
          the calibration is evaluated on the training sample.

          Sample size: 676
          Polynomial degree: 2
          Test statistic: 2.11
          p-value: 0.1464
          -----------------------------------------------------------


          Success!

          Thank you

          Comment

          Working...
          X