Announcement

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

  • invalid name r(198);

    Hi,
    I am following an online tutorial and have an issue after the second line of code;


    . use "http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial.dta", clear

    . runmlwin normexam cons, level2(school: cons) level1(student: cons)

    <3 invalid name
    r(198);
    I am running the newest version of stata and have no idea why it is giving me this error.
    All variable names are correct and runmlwin has been installed.

  • #2
    I didn't check it out in Stat but, as far as my fast search goes, the command is somewhat different:

    Code:
     runmlwin normexam cons standlrt, level2(school: cons) level1(student: cons) nopause
    Hopefully that helps.
    Best regards,

    Marcos

    Comment


    • #3
      I found that code online too but alas it gives the same error, thanks anyway

      Comment


      • #4
        Cross-posted at https://www.reddit.com/r/stata/comme...lid_name_r198/

        Please note our explicit policy on cross-posting: You are asked to tell us about it. (What policies apply on Reddit is for those folks to discuss.)

        Comment


        • #5
          Make sure that you have installed all of the files in the package. For example, use ssc and not a browser.

          The problem will bite if the local macro mlwinversion is not defined and that will happen if one of the ancillary programs was not installed.

          Code:
          if `mlwinversion' < 3

          Comment


          • #6
            Hello,

            I am new to the forum and I'd like to follow up with this question. I've also tried to run the cross-classified model with random effects in Stata (version 15) via runmlwin package; however, I'm running into the same problem 'mlwinversion'<3. As suggested, I have checked that i've installed all the files as well as have defined the mlwin path. This is the command I used to run the model:

            global MLwin_path "C:\Program Files (x86)\MLwiN trial\i386\mlwin.exe"
            sort highschid id
            runmlwin test cons standlrt, level2(highschid:cons) level1(id:cons) nopause
            I'd appreciate if anyone could provide further advice.

            Comment


            • #7
              Since this is a user-contributed package from SSC, you could try updating it or uninstalling and then re-installing it:

              Code:
              adoupdate runmlwin
              
              ssc uninstall runmlwin
              ssc install

              Comment


              • #8
                The problem seems to persist after I re-installed the package... thanks anyway.

                Comment

                Working...
                X