全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
6700 10
2013-09-15
如题,thanks in advance
二维码

扫码加我 拉你入群

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

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

全部回复
2013-9-15 08:53:27
找到工程文件夹下的.dsw文件,双击打开后就能修改了

左边的classview里面展开globals就能看见所以你申明的函数和变量了,再修改啊
二维码

扫码加我 拉你入群

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

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

2013-9-15 08:57:33
二维码

扫码加我 拉你入群

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

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

2013-9-15 09:59:02
hsl秦时明月 发表于 2013-9-15 08:53
找到工程文件夹下的.dsw文件,双击打开后就能修改了

左边的classview里面展开globals就能看见所以你申明 ...
请问stata的工程文件夹是哪个?在stata目录下没找到.dsw文件啊
二维码

扫码加我 拉你入群

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

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

2013-9-15 13:29:30
mlib files contain the object code for one or more functions. Functions which happen to be stored
in libraries are called library functions, and Mata’s library functions are also stored in .mlib libraries.
You can create your own libraries, too.
Mata provides two ways to store object code:
1. In a .mo file, which contains the code for one function
2. In a .mlib library file, which may contain the code for up to 500 functions
.mo files are easier to use and work just as well as .mlib libraries; see [M-3] mata mosave. .mlib
libraries, however, are easier to distribute to others when you have many functions, because they are
combined into one file.
Outline of the procedure for dealing with libraries
Working with libraries is easy:
1. First, choose a name for your library. We will choose the name lpersonal.
2. Next, create an empty library by using the mata mlib create command.
3. After that, you can add new members to the library at any time, using mata mlib add.
.mlib libraries contain object code, not the original source code, so you need to keep track of the
source code yourself. Also, if you want to update the object code in a function stored in a library,
you must re-create the entire library; there is no way to replace or delete a member once it is added.
We begin by showing you the mechanical steps, and then we will tell you how we manage libraries
and source code.
二维码

扫码加我 拉你入群

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

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

2013-9-16 09:23:20
dxystata 发表于 2013-9-15 13:29
mlib files contain the object code for one or more functions. Functions which happen to be sto ...
谢谢版主。看来mlib也是个黑箱啊
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群