https://www.amazon.com/Introduction-Stata-Programming-Christopher-Baum/dp/1597180459
lemonwp曾在论坛里首发扫描高清版,但下载阅读发现无法highlight和进行搜索,使用颇为不便,因此特地费时良久将扫描pdf文件做OCR转换,可方便读者迅速标注并检索相关命令。
Baum-An Introduction to Stata Programming(清晰版).pdf
(34.17 MB)
Table Of Contents:
List of tables xv
List of figures xvii
Preface xix
Acknowledgments xxi
Notation and typography xxiii
Why should you become a Stata programmer? 1(4)
Do-file programming 1(1)
Ado-file programming 2(1)
Mata programming for ado-files 2(1)
Plan of the book 3(1)
Installing the necessary software 3(2)
Some elementary concepts and tools 5(28)
Introduction 5(1)
What you should learn from this chapter 5(1)
Navigational and organizational issues 5(3)
The current working directory and profile.do 6(1)
Locating important directories: sysdir and adopath 6(1)
Organization of do-files, ado-files, and data files 7(1)
Editing Stata do- and ado-files 8(1)
Data types 9(5)
Storing data efficiently: The compress command 11(1)
Date and time handling 11(1)
Time-series operators 12(2)
Handling errors: The capture command 14(1)
Protecting the data in momory: The preserve and restore commands 14(1)
Getting your data into Stata 15(11)
Inputting data from ASCII text files and spreadsheets 15(1)
Handling text files 16(1)
Free format versus fixed format 17(1)
The insheet command 18(2)
Accessing data stored in spreadsheets 20(1)
Fixed-format data files 20(5)
Importing data from other package formats 25(1)
Guidelines for Stata do-file programming style 26(3)
Basic guidelines for do-file writers 27(2)
Enhancing speed and efficiency 29(1)
How to seek help for Stata programming 29(4)
Do-file programming: Functions, macros, scalars, and matrices 33(30)
Introduction 33(1)
What you should learn from this chapter 33(1)
Some general programming details 34(6)
The varlist 35(1)
The numlist 35(1)
The if exp and in range qualifiers 35(1)
Missing data handling 36(1)
Recoding missing values: The mvdecode and mvencode commands 37(1)
String-to-numeric conversion and vice versa 37(1)
Numeric-to-string conversion 38(1)
Working with quoted strings 39(1)
Functions for the generate command 40(7)
Using if exp with indicator variables 42(2)
The cond() function 44(1)
Recoding discrete and continuous variables 45(2)
Functions for the egen command 47(3)
Official egen functions 47(2)
egen functions from the user community 49(1)
Computation for by-groups 50(3)
Observation numbering: _n and _N 50(3)
Local macros 53(3)
Global macros 56(1)
Extended macro functions and macro list functions 56(2)
System parameters, settings, and constants: creturn 57(1)
...


雷达卡






京公网安备 11010802022788号







