Announcement

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

  • Error when running mmqreg with abs() function and interaction term

    Hi,

    I am running a multivariate quantile regression using mmqreg and am running into an error message when using an interaction term and the abs() function.

    Sorry in advance, I have to run STATA on an offline server for data protection reasons that does not allow me to copy/paste or export so I cannot copy & paste data or code into here.

    My regression looks like this:

    mmqreg score portion_meal_r score_pre wealthscore disability_bin satis1 hwise#portion_meal_r, cluster(settlement2) abs(settlement2)

    When I run it, I get the following error message:

    _i__1__hwise_X_1__portion_meal_r invalid name
    st_addvar(): 3300 argument out of range
    map_solve(): - function returned error
    <istmt>: - function returned error
    When I run this without abs(settlement2) or without the interaction terms it runs without issue.

  • #2
    Hi Isabelle
    could you try again, but renaming your variables?
    Say, rather than using "portion_meal_r" use pmr
    and rather than hwise use "hw"
    Thank you

    Comment


    • #3
      Originally posted by FernandoRios View Post
      Hi Isabelle
      could you try again, but renaming your variables?
      Say, rather than using "portion_meal_r" use pmr
      and rather than hwise use "hw"
      Thank you
      Thank you Fernando!! I tried this and it is now giving me the error message: _i_ ambiguous abbreviation
      Still only occurring if I'm using the abs() function
      Any thoughts? Thanks again

      Comment


      • #4
        Do you think you can send me an email with your data (or some other data) so I can try and replicate the error?
        Thank you!

        Comment


        • #5
          I can't export the data from the offline server, unfortunately, but let me see if I can recreate some data...what is your e-mail? Thanks!!!

          Comment


          • #6
            Its in the helpfile

            Comment


            • #7
              Originally posted by FernandoRios View Post
              Its in the helpfile
              Great! Thanks

              Comment

              Working...
              X