Menu

malmq error - uniqrowmat command

Help
2013-01-14
2024-08-04
1 2 > >> (Page 1 of 2)
  • Christopher Brewer

    Hello,

    I attempted to run malmq.ado using sample DEA data in Stata 11: [.malmq i_AC = O_SPI O_CPI, ort(o) period( period)]. This returns an error [3499 _uniqrowmat() not found].

    I was unable to find any information on this command, which malmq.ado references. Can you let me know how I can get around this error?

    Thank you in advance for your help.

     
    • Choonjoo Lee

      Choonjoo Lee - 2013-01-15

      There are some possible reasons; didn't run "ldea.do" command properly before your malmq command, old versions of malmq.ado or dea.ado are not renamed or deleted, or Stata does not find the ldea.mlib.

      Please try the following procedure again.
      - command "discard" in your stata command window or reopen Stata program.
      - delete or rename all the malmq.ado files.
      - Save "ldea.do" file favorably in your working directory where your data exist.
      - Open your data file using Stata program.
      - In your Stata command window, command "do ldea.do" : you need to run this command only once before you run the mqlmq command after you open the Stata program. You can open "ldea.do"file using the Stata do file editer and quietly run it.
      - Try your analysis using the attached data set. I tested it and got the result.
      ; malmq i_AC = O_SPI O_CPI,ort(o) period(time)
      - If you still get the same error or another, please post them here again.
      * Pleae note that all the previous versions of dea.ado or malmq.ado files need to be discarded and ldea.milb created by commanding "do ldea.do".

       

      Last edit: Choonjoo Lee 2013-01-15
    • Kwadwo Asamoah

      Kwadwo Asamoah - 2016-10-25
      Post awaiting moderation.
  • P Arifin

    P Arifin - 2014-04-15

    I have a different problem but the same error code. I can use the malmq command just find, but everytime I add the saving or sav command it comes out with an error like so:
    <istmt>: 3499 file_exists() not found

    I'm really stumped why this happens, any help you could give me would be nice. I'm running stata 12 if that helps

     
  • maria

    maria - 2015-03-18

    Hello, I have the same problem: when I specify the option saving I get the error message : <istmt>: 3499 file_exists() not found.
    Thank you in advance for your help (and for all your work!)

     
    • Choonjoo Lee

      Choonjoo Lee - 2015-03-18

      Dear Maria,

      I think there are some reasons;

      Mata library does not have ldea.mlib file

      or your computer isn't looking in the required mata library for -malmq-.

      At first, to see whether your computer look the required mata library, in my
      computer I get the following results using -mata mlib query-.

      . mata

      ------------------------------------------------- mata (type end to exit)

      : mata mlib query

      .mlib libraries to be searched are

      lmatabase;lmataado;lmatafc;lmatagsem;lmataopt;lmatapath;lmatapss;lmatasem;ld
      ea

      You see the last one "ldea". If you don't have "ldea" in your list, it means
      that your computer doesn't look the required library or you don't have
      "ldea.mlib" file in your computer.

      If it is the case, you can put the "ldea.mlib" file in your directory such
      as 'PERSONAL' in my case and see if your computer finds it.

      You can use the attached "ldea.mlib" file or generate by the command -do
      ldea.do-.

      Good luck.

      From: maria [mailto:magostino@users.sf.net]
      Sent: Thursday, March 19, 2015 3:08 AM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      Hello, I have the same problem: when I specify the option saving I get the
      error message : <istmt>: 3499 file_exists() not found.
      Thank you in advance for your help (and for all your work!)


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#b2 d7


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
      • edinson tolentino

        Dear Choonjoo Lee:

        I have the same problem with my malmq comand because I have this message:

        Malmquist efficiency INPUT Oriented DEA Results:
        type mismatch
        r(109);

        I don't know why , I installed each part about malmq comand but sincerelly I don't know why this type of message.

        I'm waiting your answer and message about my problem

        Regards

         
  • maria

    maria - 2015-03-19

    dear Choonjoo,
    thank you very much for your prompt reply! When I follow your instructions I get
    mata mlib query
    .mlib libraries to be searched are
    lmatabase;lmataado;lmataopt;lmatasem;ldea;lsfcross;lsfpanel;lsynth_mata_subr;lxtabond2

    thus, it seems I have the the ldea file...but still I get the error message. Anyway, I tried to save in my Stata directory the file you sent me, but no way...I hope you can figure out what's wrong with my estimation. My panel is balanced, I use the following command (in Stata 12):
    malmq i_kap i_empl i_rawm = o_ric, ort(in) period (anno)saving (prova)

    Thank you again for your kind attention

     
    • Choonjoo Lee

      Choonjoo Lee - 2015-03-19

      Dear Maria,

      Could you try the command;

      : mata mlib index

      Then, you should have

          .mlib libraries to be searched are now
      

      lmatabase;lmataado;lmataopt;lmatasem;ldea;lsfcross;lsfpanel;lsynth_mata_subr
      ;lxtabond2

      And try your malmq command.

      Choonjoo.

      From: maria [mailto:magostino@users.sf.net]
      Sent: Thursday, March 19, 2015 6:56 PM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      dear Choonjoo,
      thank you very much for your prompt reply! When I follow your instructions I
      get
      mata mlib query
      .mlib libraries to be searched are
      lmatabase;lmataado;lmataopt;lmatasem;ldea;lsfcross;lsfpanel;lsynth_mata_subr
      ;lxtabond2

      thus, it seems I have the the ldea file...but still I get the error message.
      Anyway, I tried to save in my Stata directory the file you sent me, but no
      way...I hope you can figure out what's wrong with my estimation. My panel is
      balanced, I use the following command (in Stata 12):
      malmq i_kap i_empl i_rawm = o_ric, ort(in) period (anno)saving (prova)

      Thank you again for your kind attention


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#d9 71


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
  • maria

    maria - 2015-03-19

    dear Choonjoo,
    thank you very much for your answer. I have just found out that adding "replace" at the end of the command line solves the problem!
    However, I see that my output file (that I attach) indicates (8 times) the same one-year interval for the same DMU. I tried several changes in my period variable, but nothing worked. I would really appreciate your help... Thank you

     
    • Choonjoo Lee

      Choonjoo Lee - 2015-03-19

      Hi! I attached the results.

      Please check if you have the problem.

      From: maria [mailto:magostino@users.sf.net]
      Sent: Friday, March 20, 2015 4:47 AM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      dear Choonjoo,
      thank you very much for your answer. I have just found out that adding
      "replace" at the end of the command line solves the problem!
      However, I see that my output file (that I attach) indicates (8 times) the
      same one-year interval for the same DMU. I tried several changes in my
      period variable, but nothing worked. I would really appreciate your help...
      Thank you

      Attachment: output.dta (28.2 kB; application/octet-stream)


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#73 ba


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
  • maria

    maria - 2015-03-19

    dear Choonjoo,
    please, find attached also the dataset I use to get my output. My panel time span is 2003-2010. Thank you

     
    • Choonjoo Lee

      Choonjoo Lee - 2015-03-19

      Please check your malmq.ado file version.

      . viewsource malmq.ado

      *! version 1.2.0 18JUN2011

      capture program drop malmq

      program define malmq, rclass

      version 10.0
      

      .

      You should get the above version of malmq.ado code.

      If not, please delete it and replace with the right version of it.

      And don't forget to check the version after replacing it.

      Choonjoo.

      From: maria [mailto:magostino@users.sf.net]
      Sent: Friday, March 20, 2015 5:42 AM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      dear Choonjoo,
      please, find attached also the dataset I use to get my output. My panel time
      span is 2003-2010. Thank you

      Attachment: data.dta (24.7 kB; application/octet-stream)


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#2b 9c


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
  • maria

    maria - 2015-03-19

    dear Choonjoo,
    I get:
    *! version 1.2.0 18JUN2011
    capture program drop malmq
    program define malmq, rclass
    version 10.0

    thus the version is the one you suggest...thank you, I really appreciate your help
    Maria

     
  • lucia

    lucia - 2015-05-31

    First of all, given the tips in this forum I was able to run malmq code.

    Now, I have doubts on the obtained outcomes that I hope to get some help. Considering 2 years of analysis (2012/13), with a balanced panel:
    (1) In the first table, scores of t1 correspond to 2012, and t should correspond to 2013 right?
    (2)In the second part, whith CRS and VRS, some units appears twice in 2012 but not in 2013, while others are twice in 2013 but not in 2012. What might be happening?
    (3) Finally, in the last table where five indices are decomposed. Why are some dmus lacking?

    Thank you in advance.
    Lucia

     
    • Choonjoo Lee

      Choonjoo Lee - 2015-06-01

      Please let me have your data file and output file.

      In that way, I can see the results.

      You might have the old version of malmq.ado file.

      Choonjoo.

      From: lucia [mailto:lucia-trab@users.sf.net]
      Sent: Sunday, May 31, 2015 10:40 PM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      First of all, given the tips in this forum I was able to run malmq code.

      Now, I have doubts on the obtained outcomes that I hope to get some help.
      Considering 2 years of analysis (2012/13), with a balanced panel:
      (1) In the first table, scores of t1 correspond to 2012, and t should
      correspond to 2013 right?
      (2)In the second part, whith CRS and VRS, some units appears twice in 2012
      but not in 2013, while others are twice in 2013 but not in 2012. What might
      be happening?
      (3) Finally, in the last table where five indices are decomposed. Why are
      some dmus lacking?

      Thank you in advance.
      Lucia


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#80 aa


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
      • lucia

        lucia - 2015-06-01

        Dear Choonjoo,

        Please see attached the requested files.
        As a remark, I considered dmus in string format and dropped observations in order to get a balanced panel.

        Regarding .ado version, I have the following: viewsource malmq.ado
        *! version 1.2.0 18JUN2011

        Thanks

         
    • Choonjoo Lee

      Choonjoo Lee - 2015-06-02

      Hello! Lucia,

      I get some different results(see the attachment).

      I will check the details later.

      Choonjoo

      From: lucia [mailto:lucia-trab@users.sf.net]
      Sent: Sunday, May 31, 2015 10:40 PM
      To: bloom.rampike@gmail.com
      Subject: [deas:discussion] malmq error - uniqrowmat command

      First of all, given the tips in this forum I was able to run malmq code.

      Now, I have doubts on the obtained outcomes that I hope to get some help.
      Considering 2 years of analysis (2012/13), with a balanced panel:
      (1) In the first table, scores of t1 correspond to 2012, and t should
      correspond to 2013 right?

      ==> t correspond to 2012 and t1 to 2013.

      (2)In the second part, whith CRS and VRS, some units appears twice in 2012
      but not in 2013, while others are twice in 2013 but not in 2012. What might
      be happening?

      ==> only one unit should appear.

      (3) Finally, in the last table where five indices are decomposed. Why are
      some dmus lacking?

      => get 170 dmus.

      Thank you in advance.
      Lucia


      malmq error - uniqrowmat command
      https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#80 aa


      Sent from sourceforge.net because bloom.rampike@gmail.com
      bloom.rampike@gmail.com is subscribed to
      https://sourceforge.net/p/deas/discussion/help/
      https://sourceforge.net/p/deas/discussion/help

      To unsubscribe from further messages, a project admin can change settings at
      https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
      mailing list, you can unsubscribe from the mailing list.

       
      • lucia

        lucia - 2015-06-02

        Thanks for your effort.
        For prior checking, please see attached the .ado files and libraries that I have in my personal folder, which might help to explain our different results.
        Then I simply run: malmq i_nrstaff = o_nrvisits, period(Y) sav(output_malmq) replace

        Lucia

         
        • Choonjoo Lee

          Choonjoo Lee - 2015-06-02

          Please replace them with the attached files and see if you get the results.

          Will get back to you soon.

          Choonjoo

          From: lucia [mailto:lucia-trab@users.sf.net]
          Sent: Wednesday, June 3, 2015 7:21 AM
          To: bloom.rampike@gmail.com
          Subject: [deas:discussion] Re: malmq error - uniqrowmat command

          Thanks for your effort.
          For prior checking, please see attached the .ado files and libraries that I
          have in my personal folder, which might help to explain our different
          results.
          Then I simply run: malmq i_nrstaff = o_nrvisits, period(Y) sav(output_malmq)
          replace

          Lucia


          malmq error - uniqrowmat command
          https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#80 aa/3081/10c1


          Sent from sourceforge.net because bloom.rampike@gmail.com
          bloom.rampike@gmail.com is subscribed to
          https://sourceforge.net/p/deas/discussion/help/
          https://sourceforge.net/p/deas/discussion/help

          To unsubscribe from further messages, a project admin can change settings at
          https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
          mailing list, you can unsubscribe from the mailing list.

           
          • lucia

            lucia - 2015-06-03

            Dear Choonjoo,

            I'm now obtaining the same results as you've send me.

            Yet, in the first set of results (Cross CRS-DEA Result) it seems that t in fact corresponds to 2013 if compared with the results of the following dea code: dea i_nrstaff = o_nrvisits , rts(vrs) sav(2012_2013) // crs column. I was wondering if you could check this, please.

            Regarding your forthcoming article in The Stata Journal, you refer that using some summarizing statistics it will be possible to obtain efficiency catch-up and technology progress. Practically, how should I do?

            Thank you so much.
            Lucia

             
            • Choonjoo Lee

              Choonjoo Lee - 2015-06-04

              Please see below;

              From: lucia [mailto:lucia-trab@users.sf.net]
              Sent: Wednesday, June 3, 2015 6:22 PM
              To: bloom.rampike@gmail.com
              Subject: [deas:discussion] Re: malmq error - uniqrowmat command

              Dear Choonjoo,

              I'm now obtaining the same results as you've send me.

              Yet, in the first set of results (Cross CRS-DEA Result) it seems that t in
              fact corresponds to 2013 if compared with the results of the following dea
              code: dea i_nrstaff = o_nrvisits , rts(vrs) sav(2012_2013) // crs column. I
              was wondering if you could check this, please.

              => the first set of results shows the technical efficiency scores relative
              to technology frontier of t year. So, the program is coded so as to t is the
              frontier of year t and the score is the technical efficiency score of dmus
              relative to it.

              I'll see if there is a problem later.

              Regarding your forthcoming article in The Stata Journal, you refer that
              using some summarizing statistics it will be possible to obtain efficiency
              catch-up and technology progress. Practically, how should I do?

              => The following paper will give some ideas. I will get back to you later if
              you are not clear about it.

              Innovation policy for defense acquisition and dynamics of productive
              efficiency: A DEA application to the Korean defense industry
              http://scholar.google.co.kr/scholar?oi=bibs&cluster=7536428982996747873&btn I=1&hl=en

              C Lee, J Lee, T Kim - Asian Journal of Technology Innovation, 2009

              Cheers!

              Thank you so much.
              Lucia


              malmq error - uniqrowmat command
              https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#80 aa/3081/10c1/b3e8/0663


              Sent from sourceforge.net because bloom.rampike@gmail.com
              bloom.rampike@gmail.com is subscribed to
              https://sourceforge.net/p/deas/discussion/help/
              https://sourceforge.net/p/deas/discussion/help

              To unsubscribe from further messages, a project admin can change settings at
              https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
              mailing list, you can unsubscribe from the mailing list.

               
              • lucia

                lucia - 2015-06-07

                Thank you for referring the abovementioned paper. I now understand the purpose. In addition, when in the article is mentioned bootstrap method using the Gaussian kernel density estimation and the bandwidth selection, are these just standard procedures behind the used commands of dea?
                Regards,
                Lucia

                 
                • Choonjoo Lee

                  Choonjoo Lee - 2015-06-07

                  Hi~

                  For your question "bootstrap method using the Gaussian kernel density
                  estimation and the bandwidth selection, are these just standard procedures
                  behind the used commands of dea?"

                  • No.

                  I used the bootstrap method using the Gaussian kernel density estimation
                  because there was no available approach using stata with dea program.

                  So, I developed this program in Stata.

                  I and my research colleagues have programmed the two-stage bootstrap method
                  and currently testing it. It works fine, but due to my time constraints I
                  couldn't make any help file.

                  Choonjoo.

                  From: lucia [mailto:lucia-trab@users.sf.net]
                  Sent: Monday, June 8, 2015 3:46 AM
                  To: bloom.rampike@gmail.com
                  Subject: [deas:discussion] Re: malmq error - uniqrowmat command

                  Thank you for referring the abovementioned paper. I now understand the
                  purpose. In addition, when in the article is mentioned bootstrap method
                  using the Gaussian kernel density estimation and the bandwidth selection,
                  are these just standard procedures behind the used commands of dea?
                  Regards,
                  Lucia


                  malmq error - uniqrowmat command
                  https://sourceforge.net/p/deas/discussion/help/thread/b7dfc4ba/?limit=25#80 aa/3081/10c1/b3e8/0663/7be1/693e


                  Sent from sourceforge.net because bloom.rampike@gmail.com
                  bloom.rampike@gmail.com is subscribed to
                  https://sourceforge.net/p/deas/discussion/help/
                  https://sourceforge.net/p/deas/discussion/help

                  To unsubscribe from further messages, a project admin can change settings at
                  https://sourceforge.net/p/deas/admin/discussion/forums. Or, if this is a
                  mailing list, you can unsubscribe from the mailing list.

                   
                  • lucia

                    lucia - 2015-06-08

                    Ok, it is nice to know that. I'm looking forward to have this new procedure whenever possible.
                    Thanks,
                    Lucia

                     
1 2 > >> (Page 1 of 2)

Log in to post a comment.