请选择 进入手机版 | 继续访问电脑版
楼主: 563236798
12359 27

[面板数据求助] stata-malmq问题求助 [推广有奖]

  • 0关注
  • 0粉丝

讲师

16%

还不是VIP/贵宾

-

威望
0
论坛币
12423 个
通用积分
60.8210
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
18855 点
帖子
52
精华
0
在线时间
829 小时
注册时间
2009-9-23
最后登录
2024-3-6

563236798 发表于 2016-3-17 15:54:15 |显示全部楼层 |坛友微信交流群
相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

本人使用是stata14.0版本的软件,最近在运行malmq函数过程中,始终在提示“Malmquist efficiency INPUT Oriented DEAResults:type mismatch r(109)”。但是将这些数据用dea运行,却可以运行,没有提示错误,请教下各位大侠,这是为什么?


详细数据在附件malmq-data中,30个dmu,时间是2000-2013年,有3个投入,4个产出


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Stata tata ALM EFFICIENCY 2000-2013年 efficiency 软件

malmq-data.xlsx

45.04 KB

回帖推荐

果不易 发表于13楼  查看完整内容

command malmq is unrecognized,出现此问题的原因:因为stata14之后的版本采用Utf8编码,而help得到的malmq命令是stata13之前的GB1830编码。 所以,大家可以把下载的ado命令进行转码(后附),然后将转码之后的ado命令直接放到ado文件夹下面的base文件夹,base文件夹下面的m命名的文件夹,再运行就没有问题了。

蓝色 发表于2楼  查看完整内容

不是让你看帮助了吗,严格按照帮助的例子。 你看看人家的dmu变量是怎么设置的。你的是怎么设置的。 help malmq ---------------------------------------------------------------------------------------------------------------------------- Title malmq -- Malmquist Productivity Index using DEA frontier in Stata Syntax malmq ivars = ovars , {period} [, options] opti ...
蓝色 发表于 2016-3-17 19:24:49 |显示全部楼层 |坛友微信交流群
不是让你看帮助了吗,严格按照帮助的例子。
你看看人家的dmu变量是怎么设置的。你的是怎么设置的。





help malmq
----------------------------------------------------------------------------------------------------------------------------

Title

    malmq -- Malmquist Productivity Index using DEA frontier in Stata

Syntax

        malmq ivars = ovars , {period}[if] [in] [, options]

    options               Description
    ----------------------------------------------------------------------------------------------------------------------
    Main
      ort(string)         specifies the orientation. The default is ort(i), meaning the input oriented distance Data
                            Envelopment Analysis(DEA) frontier used. ort(out) means the output oriented DEA frontier.
      trace               lets all the sequences and results displayed in the result window be saved in the "malmq.log"
                            file.
      saving(filename)     specifies that the results be saved in filename.dta. If the filename already exists, the
                            previous filename will be saved with the name of filename_bak_DMYhms.dta.
    ----------------------------------------------------------------------------------------------------------------------

Description

    malmq selects the input and output variables from the user designated data file or in the opened data set and solves
    Malmquist Productivity Index using Data Envelopment Analysis(DEA) frontier by options specified.

    The malmq program requires initial panel data set that contains the input and output variables and period for observed
        units.

    Variable names must be identified by ivars for input variable, by ovars for output variable, and by period for panel
        period of time to allow that malmq program can identify and handle the multiple input-output data set.  And the
        variable name of Decision Making Units(DMUs) is to be specified by "dmu".

    sav(filename) option creates a filename.dta file that contains the results of malmq including the informaions of the
        DMU, input and output data used, efficiency change, technology change, total factor productivity change, scale
        efficiency change, and pure technical change.

    The log file, malmquist.log, will be created in the working directory.


Examples
    . input str20 dmu year o_q i_x

                      dmu       year        o_q        i_x
  1. firm1 2009 1 2
  2. firm2 2009 2 4
  3. firm3 2009 3 3
  4. firm4 2009 4 5
  5. firm5 2009 5 6
  6. firm1 2010 1 2
  7. firm2 2010 3 4
  8. firm3 2010 4 3
  9. firm4 2010 3 5
  10. firm5 2010 5 5
  11. firm1 2011 1 2
  12. firm2 2011 3 4
  13. firm3 2011 4 3
  14. firm4 2011 3 5
  15. firm5 2011 5 5
  16. end

    . malmq i_x = o_q,period(year)

    . malmq i_x = o_q,ort(o) period(year)


已有 1 人评分学术水平 收起 理由
sucheng199099 + 3 精彩帖子

总评分: 学术水平 + 3   查看全部评分

使用道具

563236798 发表于 2016-3-17 21:08:05 |显示全部楼层 |坛友微信交流群
问题已经得到解决,确实dmu设置出现了问题,谢谢@蓝色!

使用道具

huntxhunt 发表于 2016-4-30 12:02:26 |显示全部楼层 |坛友微信交流群
本人14.1 为什么运行malmq总是提示“command malmq is unrecognized”   查看help可以看到内容,证明已经安装过了

使用道具

大神,你的stata可以做malmq吗
我的只能做    一个input      多个 output
不能做           多个input     多个output

做多个投入产出分析是会出现错误
      name:  dealog
       log:  D:\stata11\ado\personal\dea.log
  log type:  text
opened on:   8 Oct 2016, 10:55:59

[DMUi=1]CRS-IN-SI-PII: Entered index.
       1   2
    +---------+
  1 |  1   0  |
    +---------+

[DMUi=1]CRS-IN-SI-PII: XB.
             lp_phase2():  3498  No Solution at Stage 1 and Phase 2.:[DMUi=1]
                _dealp():     -  function returned error
                 <istmt>:     -  function returned error
r(3498);


使用道具

5230 发表于 2017-4-2 10:50:55 |显示全部楼层 |坛友微信交流群
563236798 发表于 2016-3-17 21:08
问题已经得到解决,确实dmu设置出现了问题,谢谢@蓝色!
您好,请问您是怎么修改的,我也遇到同样的问题。调整了dmu为str20,还是一样。

使用道具

zibu111 发表于 2017-8-16 01:34:20 |显示全部楼层 |坛友微信交流群
huntxhunt 发表于 2016-4-30 12:02
本人14.1 为什么运行malmq总是提示“command malmq is unrecognized”   查看help可以看到内容,证明已经安 ...
您好 您的这个问题解决了么 我也遇到了 求指导

使用道具

mswting 发表于 2017-10-31 16:20:30 |显示全部楼层 |坛友微信交流群
能不能把这个的stata命令和数据格式发给我看看啊,完全是什么都不会

使用道具

mswting 发表于 2017-12-1 21:23:19 |显示全部楼层 |坛友微信交流群
5230 发表于 2017-4-2 10:50
您好,请问您是怎么修改的,我也遇到同样的问题。调整了dmu为str20,还是一样。
我也是,你解决了吗

使用道具

mswting 发表于 2017-12-1 21:24:52 |显示全部楼层 |坛友微信交流群
蓝色 发表于 2016-3-17 19:24
不是让你看帮助了吗,严格按照帮助的例子。
你看看人家的dmu变量是怎么设置的。你的是怎么设置的。
为什么我的dmu是严格按照help里面设置的,但还是报错Malmquist efficiency INPUT Oriented DEA Results:
type mismatch,求指点

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-28 18:41