楼主: 2009091332
19209 24

[编程问题求助] opreg命令的详细下载、安装步骤 [推广有奖]

  • 2关注
  • 13粉丝

副教授

17%

还不是VIP/贵宾

-

TA的文库  其他...

国际企业管理挑战赛(GMC)资料

威望
0
论坛币
14127 个
通用积分
0.1959
学术水平
84 点
热心指数
112 点
信用等级
75 点
经验
2990 点
帖子
372
精华
0
在线时间
1009 小时
注册时间
2014-5-20
最后登录
2023-11-16

666论坛币
目前使用版本是Stata12.0,需要opreg命令的详细下载、安装步骤,希望有截图,如果有opreg的具体操作方法就更好不过了。希望各位老师、前辈不吝赐教,后生必虚心学习~~些许论坛币,不成敬意

最佳答案

hua2007 查看完整内容

这个是,这个命令的do,ado,help文件,你解压缩之后,放在相应目录下就行!然后就可以运行这个命令了!
关键词:安装步骤 REG stata12 Stata tata
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
551办公室 + 5 + 5 + 5 鼓励积极发帖讨论

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

沙发
hua2007 发表于 2014-6-11 10:38:05 |只看作者 |坛友微信交流群
Desktop.rar (7.1 KB) 本附件包括:
  • opreg.ado
  • opreg.hlp
  • opreg_p.ado
这个是,这个命令的do,ado,help文件,你解压缩之后,放在相应目录下就行!然后就可以运行这个命令了!
已有 2 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
SpencerMeng + 20 + 2 + 2 + 2 精彩帖子
crystal8832 + 20 + 20 + 1 + 1 热心帮助其他会员

总评分: 经验 + 20  论坛币 + 40  学术水平 + 3  热心指数 + 3  信用等级 + 2   查看全部评分

使用道具

藤椅
hua2007 发表于 2014-6-11 10:49:38 |只看作者 |坛友微信交流群
help opreg                                                                                                                                                                 (SJ12-1: st0145_2)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Title

    opreg -- Production function estimation using Olley and Pakes' technique


Syntax

        opreg depvar [if] [in], exit(varname) state(varlist) proxy(varname) free(varlist) [options]


Syntax for predict after opreg

        predict [type] newvar [if] [in] [, tfp]


    options                              Description
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * exit(varname)                      varname indicates a firm's exit
    * state(varlist)                     state variables appearing in production function
    * proxy(varname)                     variable to proxy for unobserved productivity
    * free(varlist)                      additional variables used in the second stage only
      cvars(varlist)                     additional variables used in both the first and second stages
      second                             use second-degree polynomial expansion
      vce(bootstrap, bootstrap_options)  specify bootstrap options
      level(#)                           set confidence level; default is level(95)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * exit(varname), state(varlist), proxy(varname), and free(varlist) are required.
    A panel variable and a time variable must be specified by using xtset; see [XT] xtset.


Description

    opreg estimates the production function in the presence of selection bias and simultaneity by using the three-stage algorithm described in Olley and Pakes (1996).


Options

    exit(varname) specifies a variable coded 0/1, where at time t for firm i, varname_it equals 1 if the firm exited at the beginning of that period and zero otherwise.

    state(varlist) specifies state variables.

    proxy(varname) specifies the proxy variable to be used in the equation determining exit.

    free(varlist) specifies variable inputs that are not to be included in the exit equation.

    cvars(varlist) specifies variable inputs that are also included in the exit equation.

    second specifies that a second-degree polynomial expansion is to be used in the first and second stages.  The default is to use a third-degree polynomial expansion.

    vce(bootstrap, bootstrap_options) allows you to specify options to control the bootstrap process.  The most commonly used bootstrap_options is reps(#), which control the number of
        replications performed.  The default is reps(50).

    level(#); see [R] estimation_options.


Option for predict

    tfp calculates the log of total factor productivity.  To obtain the prediction in levels, exponentiate the results.  This is the default.


Remarks

    The first and second stages use a third-degree polynomial expansion.  For example, with one state variable, the polynomial term is state^2 + proxy^2 + state*proxy + state^3 + proxy^3
    + state^2*proxy + state*proxy^2.  With two state variables, the polynomial term is state1^2 + state2^2 + proxy^2 + state1*proxy + state2*proxy + state1*state2, state1^3 + state2^3 +
    proxy^3 + state1^2*state2 + state1^2*proxy + state2^2*state1 + state2^2*proxy + proxy^2*state1 + proxy^2*state2 + state1*state2*proxy, and so on.


Examples

    . opreg sales, exit(exit) state(stock) proxy(investment) free(material employment) cvars(sizedum2 sizedum3 time)

    . opreg sales, exit(exit) state(stock) proxy(investment) free(material employment) cvars(sizedum2 sizedum3 time) vce(bootstrap, reps(200))

    In either case, opreg would form the following equations:

        exit = stock^2 + investment^2 + stock*investment + stock^3 + investment^3 + stock^2*investment + stock*investment^2 + sizedum2 + sizedum3 + time

    and

        sales = stock + stock^2 + investment^2 + stock*investment + stock^3 + investment^3 + stock^2*investment + stock*investment^2 + sizedum2 + sizedum3 + time + material + employment

    The investment variable enters the second stage only through the polynomial term.


Reference

    Olley, G. S., and A. Pakes. 1996. The dynamics of productivity in the telecommunications equipment industry. Econometrica 64: 1263-1297.
已有 1 人评分论坛币 信用等级 收起 理由
crystal8832 + 10 + 1 补偿

总评分: 论坛币 + 10  信用等级 + 1   查看全部评分

使用道具

板凳
2009091332 在职认证  发表于 2014-6-11 10:51:58 |只看作者 |坛友微信交流群
hua2007 发表于 2014-6-11 10:48
这个是,这个命令的do,ado,help文件,你解压缩之后,放在相应目录下就行!然后就可以运行这个命令了!
谢谢老师

使用道具

报纸
hua2007 发表于 2014-6-11 10:53:12 |只看作者 |坛友微信交流群
详细的参考资料,可以查看, Stata Journal, volume 12, number 1;Stata Journal, volume 10, number 4; Stata Journal, volume 8, number 2,这些都可以在论坛下到!

使用道具

1.在command命令栏中输入findit opreg,然后点击enter。(操作前提是必须联网)
2.在出现的Viewer net框里点击蓝色的(click here to install)处,然后就安装ok了。
3.在command命令栏中输入help opreg,然后点击enter就可以有opreg的具体操作方法和主要含义及来源、参考文献。
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
2009091332 + 1 + 1 + 1 好的意见建议
crystal8832 + 10 + 1 补偿

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

使用道具

7
2009091332 在职认证  发表于 2014-6-11 10:53:23 |只看作者 |坛友微信交流群
hua2007 发表于 2014-6-11 10:49
help opreg                                                                                           ...
这段代码是findit opreg后,help里面的吧~我做到这步了,然后就不知道该怎么做了

使用道具

8
2009091332 在职认证  发表于 2014-6-11 10:54:31 |只看作者 |坛友微信交流群
hua2007 发表于 2014-6-11 10:53
详细的参考资料,可以查看, Stata Journal, volume 12, number 1;Stata Journal, volume 10, number 4;  ...
嗯  今天一上午都在搜集资料,就是看的比较乱,不知如何下手~

使用道具

9
hua2007 发表于 2014-6-11 11:02:45 |只看作者 |坛友微信交流群
2009091332 发表于 2014-6-11 10:54
嗯  今天一上午都在搜集资料,就是看的比较乱,不知如何下手~
看着那几本期刊,应该会理解很透彻了!如果,还是不知道怎么下手的话,建议看看OP当年发表的原文!Olley, G. S., and A. Pakes. 1996. The dynamics of productivity in the telecommunications equipment industry. Econometrica 64: 1263-1297.

使用道具

10
2009091332 在职认证  发表于 2014-6-11 11:02:48 |只看作者 |坛友微信交流群
还魂草的世界 发表于 2014-6-11 10:53
1.在command命令栏中输入findit opreg,然后点击enter。(操作前提是必须联网)
2.在出现的Viewer net框里 ...
步骤1 步骤2 步骤3 我是按照这三个步骤做的,然后出现步骤3的no files installed or copied的语句,这样不算安装完成吧?

使用道具

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

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

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

GMT+8, 2024-4-30 23:11