楼主: voodoo
5790 9

[下载]pdf版的Stata官方教程NetCourse152 - Advanced Stata Programming***非电信通道*** [推广有奖]

院士

67%

还不是VIP/贵宾

-

威望
0
论坛币
6212 个
通用积分
1314.6344
学术水平
324 点
热心指数
365 点
信用等级
253 点
经验
63180 点
帖子
1815
精华
1
在线时间
6434 小时
注册时间
2007-1-5
最后登录
2024-9-20

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

重复贴!有版友反映,我通过论坛电信通道(https://bbs.pinggu.org/thread-325915-1-1.html)上传的该文档部分教育网用户无法下载,特重新上传!

A Must Read for Stata Programming!

论坛上有此文档的word版本,但格式很乱,而且没有相应链接,使用起来很不方便。现忙里偷闲将其处理成pdf版本,创建了全部链接,并重排版面尽可能使其美观,看起来舒服;同时添加了全部数据和程序文档。

低价有偿分享,希望看过用过觉得好的朋友顶一个,让更多人享有好东西。

引用作者的话“The (Stata programming) manual does a good job of detailing what particular commands do; it does not show how the features work together, and that is what I have tried to focus on...I hope I have communicated the grammar of Stata and not just the vocabulary.”


Table of Contents

Lecture 1..........................................................................................................................1
Review of Stata's programming features............................................................................1
Parsing.....................................................................................................................................4
Parsing options........................................................................................................................8
Parsing complicated syntax.................................................................................................11
Aside on subprograms.........................................................................................................16

Lecture 2........................................................................................................................19
Quotes....................................................................................................................................19
Development continues........................................................................................................23
Temporary variables.............................................................................................................25
Development continues........................................................................................................27
An aside concerning r()........................................................................................................30
Development continues........................................................................................................30
Programming the formulas..................................................................................................31
Putting it together..................................................................................................................35

Lecture 3........................................................................................................................41
What you must learn.............................................................................................................41
Scalars...................................................................................................................................42
Binary accuracy.....................................................................................................................44
Accuracy of macros versus scalars....................................................................................46
Converting a program from macros to scalars.................................................................47
Handling by() options............................................................................................................48
Sorting....................................................................................................................................50
Low-level parsing..................................................................................................................51
Programming immediate commands.................................................................................52
Rewriting mytt in terms of mytti...........................................................................................56
Parsing new variables..........................................................................................................58

Lecture 4........................................................................................................................62
Where are we?......................................................................................................................62
Saved results........................................................................................................................63
What can be returned in r()?...............................................................................................66
Referring to returned results in other programs...............................................................67
Referring to returned results in the program that sets them...........................................68
Other types of returned values: s() and e().......................................................................70
s-class returned values........................................................................................................70
e-class returned results........................................................................................................71
Writing post-estimation commands....................................................................................72
Writing an estimation (e class) command.........................................................................74
An alternative estimation-command outline......................................................................77
Writing estimation commands from first principles..........................................................78
Writing estimation commands via maximum likelihood...................................................82

Lecture 5........................................................................................................................85
Restricting commands to the relevant subsample...........................................................85
Which is better: marksample or mark?..............................................................................88
Programming by varlist:........................................................................................................89
Lists........................................................................................................................................91
Creating lists..........................................................................................................................91
Stepping through list elements one-by-one......................................................................94
Deleting elements from lists................................................................................................95
Adding elements to lists.......................................................................................................96
Macro vectors........................................................................................................................96
Parsing revisited: gettoken..................................................................................................99
Quietly blocks.......................................................................................................................100
The relation between capture and quietly.......................................................................104
Capture blocks.....................................................................................................................104
Naming conventions...........................................................................................................107
Program naming convention.............................................................................................110
Calling convention...............................................................................................................110
Version control.....................................................................................................................112
Conclusion...........................................................................................................................113

Exercises & Answers..................................................................................................114
Exercises & Answers in Lecture 1....................................................................................114
Exercises & Answers in Lecture 2....................................................................................117
Exercises & Answers in Lecture 3....................................................................................129
Exercises & Answers in Lecture 4....................................................................................144
Exercises & Answers in Lecture 5....................................................................................154

222355.rar (798.1 KB, 需要: 2 个论坛币) 本附件包括:

  • NetCourseTM 152 - Code & Data.rar
  • NetCourse 152.pdf

[此贴子已经被作者于2008-6-24 19:22:16编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:Programming NetCourse Advanced ADVANCE Program PDF Programming Advanced Stata 电信

已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
niuniuyiwan + 100 + 5 + 5 + 5 精彩帖子

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

巫毒上传,必属佳品!
坛友下载,三思后行!
沙发
voodoo 发表于 2008-7-21 19:56:00 |只看作者 |坛友微信交流群
好货也会沉底,自己顶顶!这也是对论坛的贡献。:-)
巫毒上传,必属佳品!
坛友下载,三思后行!

使用道具

藤椅
miracle-tea 发表于 2008-8-25 15:56:00 |只看作者 |坛友微信交流群

看似很强大!被雷到了,不敢下

使用道具

板凳
katherina_Fei 发表于 2008-8-25 20:50:00 |只看作者 |坛友微信交流群
有没有人下了,看了,说说情况啊?谢谢

使用道具

报纸
voodoo 发表于 2008-10-25 20:17:00 |只看作者 |坛友微信交流群
以下是引用katherina_Fei在2008-8-25 20:50:00的发言:
有没有人下了,看了,说说情况啊?谢谢

已经N人下(N>>20),没人说不好,就是好喽!
巫毒上传,必属佳品!
坛友下载,三思后行!

使用道具

地板
biostat 发表于 2008-10-29 13:52:00 |只看作者 |坛友微信交流群
物有所值,高级编程内容,内含数据与代码。

使用道具

7
毕须加索 发表于 2008-10-30 07:13:00 |只看作者 |坛友微信交流群
如果是免费嘀就更好啦,呵呵

使用道具

8
zgryyl 发表于 2010-12-4 17:56:31 |只看作者 |坛友微信交流群
就是,下载了就不贵了
[img][/img]

使用道具

9
newfei188 发表于 2016-12-5 03:09:54 |只看作者 |坛友微信交流群

使用道具

10
Hakasewww 发表于 2019-5-21 01:19:50 |只看作者 |坛友微信交流群
感谢分享

使用道具

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

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

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

GMT+8, 2024-9-21 11:22