全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
10038 20
2007-05-31

NetCourseTM 152: Advanced Stata Programming


Course content

Lecture 1: Parsing Stata syntax/Stata programming basics

  • Review of Stata programming features you learned in NC151
  • Parsing Stata syntax
  • Parsing options
  • Parsing complicated syntax
  • Using subprograms

Lecture 2: Parsing Stata syntax, continued/Quotes, returned results, and subsamples

  • Compound quotes for handling strings that may themselves contain quotes
  • Temporary variables
  • Using returned results from other programs
  • Restricting a calculation to a subsample
  • Putting together a complete program

Lecture 3: Using scalars and macros and introduction to low-level parsing

  • Scalars
  • Binary accuracy
  • Accuracy of macros versus scalars
  • Converting a program from macros to scalars
  • Handling by() options
  • Sorting
  • Low-level parsing
  • Programming immediate commands
  • Parsing new variables

There is a week break between lectures 3 and 4 to allow more time for those who may fall behind and to allow for more discussion from the participants.

Lecture 4: Returning results and writing estimation commands

  • Saved results
  • What can be returned in r()?
  • Referring to returned results in other programs
  • Referring to returned results in the program that sets them
  • Other types of returned values: s() and e()
  • S-class returned values
  • E-class returned results
  • Writing postestimation commands
  • Writing an estimation (e-class) command
  • Writing estimation commands from first principles
  • Writing estimation commands via maximum likelihood

Lecture 5: List processing, controlling program output, and naming conventions

  • Restricting commands to the relevant subsample
  • Which is better: marksample or mark?
  • Programming by varlist
  • Lists
  • Stepping through list elements one by one
  • Deleting elements from lists
  • Adding elements to lists
  • Macro vectors
  • Parsing revisited: gettoken
  • Quietly blocks
  • The relation between capture and quietly
  • capture blocks
  • Naming conventions
  • Program naming convention
  • Calling convention
  • Version control

二维码

扫码加我 拉你入群

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

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

全部回复
2007-5-31 08:37:00
How to upload file??
I cannot upload

二维码

扫码加我 拉你入群

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

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

2007-6-1 14:23:00
我顶你一下,能否给我发一份,谢谢,success_sd@163.com
二维码

扫码加我 拉你入群

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

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

2007-6-2 04:33:00
好东东,能否给我的邮箱发一份:luke.newsarticle@gmail.com,谢谢!
二维码

扫码加我 拉你入群

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

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

2007-6-8 06:01:00
Hello

http://rapidshare.com/files/35840051/nc152.rar


password: www.pinggu.org



[em05]

enjoy
二维码

扫码加我 拉你入群

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

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

2007-6-8 19:47:00
Thanks
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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