[下载]Learning Econometrics with GAUSS-经管之家官网!

人大经济论坛-经管之家 收藏本站
您当前的位置> 软件培训>>

Gauss软件培训

>>

[下载]Learning Econometrics with GAUSS

[下载]Learning Econometrics with GAUSS

发布:xuelida | 分类:Gauss软件培训

关于本站

人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!

获取电子版《CDA一级教材》

完整电子版已上线CDA网校,累计已有10万+在读~ 教材严格按考试大纲编写,适合CDA考生备考,也适合业务及数据分析岗位的从业者提升自我。

完整电子版已上线CDA网校,累计已有10万+在读~ 教材严格按考试大纲编写,适合CDA考生备考,也适合业务及数据分析岗位的从业者提升自我。

Contents1Introduction11.1GettingStartedwithGAUSS..................................21.1.1ExecutingDOSCommandsinGAUSS........................31.1.2SomeGAUSSKeystrokes...............................31.1. ...
免费学术公开课,扫码加入


Contents
1 Introduction 1
1.1 Getting Started with GAUSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.1 Executing DOS Commands in GAUSS . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.2 Some GAUSS Keystrokes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.3 A Note on Computer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 The GAUSS Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 GAUSS Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.1 Some Syntax Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.2 Two Types of Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Data Input and Output 9
2.1 ASCII Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1.1 ASCII Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.2 ASCII Output Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1.3 Other Commands Related to ASCII Output Files . . . . . . . . . . . . . . . . . . . 12
2.1.4 An Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2 Matrix Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3 Basic Algebraic Operations 17
3.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.2 Element-by-Element Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3 Other Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.4 Priority of the Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.5 Matrix Concatenation and Indexing Matrices . . . . . . . . . . . . . . . . . . . . . . . . . 20
4 GAUSS Commands 23
4.1 Special Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.2 Simple Statistical Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3 Simple Mathematical Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4 Matrix Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.5 Basic Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.6 Some Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.7 Character Matrices and Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.7.1 Character Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.7.2 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.7.3 The Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.7.4 Three Useful GAUSS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5 GAUSS Program for Linear Regression 41
5.1 A Brief Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.1.1 The Ordinary Least Squares Estimation . . . . . . . . . . . . . . . . . . . . . . . . 41
5.1.2 Analysis of Variance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.1.3 Durbin-Watson Test Statistic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.2 The Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.3 The ‘ols’ Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
iii
iv CONTENTS
5.4 Linear Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.5 Chow Test for Structural Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6 Relational Operators and Logic Operators 59
6.1 Relational Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.2 Logic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6.3 Conditional Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6.4 Row-Selectors: the ‘selif’ and ‘delif’ Commands . . . . . . . . . . . . . . . . . . . . . 62
6.5 Dummy Variables in Linear Regression Models . . . . . . . . . . . . . . . . . . . . . . . . 62
6.5.1 Binary Dummy Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.5.2 The Polychotomous Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.5.3 The Piecewise Linear Regression Model . . . . . . . . . . . . . . . . . . . . . . . . 71
7 Iteration with Do-Loops 75
7.1 Do-loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.2 Some Statistics Related to the OLS Estimation . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.2.1 The Heteroscedasticity Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.2.2 The Autocorrelation Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2.3 Structural Stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
8 GAUSS Procedures: Basics 87
8.1 Structural Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
8.2 Accessing Global Variables Directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
8.3 Calling Other Procedures in a Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.4 String Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.5 Functions: Simplified Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.6 Keywords: Specialized Procedures? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9 GAUSS Procedures: The Library System and Compiling 101
9.1 Autoloading and the Library Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.2 The ‘GAUSS.LCG’ Library File for Extrinsic GAUSS Commands . . . . . . . . . . . . . . . 102
9.3 The ‘USER.LCG’ Library File for User-Defined Procedures . . . . . . . . . . . . . . . . . . 102
9.4 Other Library Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.5 On-Line Help: Seeking Information as the Autoloader . . . . . . . . . . . . . . . . . . . . 103
9.6 Compiling? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9.7 The External and Declare Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
10 Nonlinear Optimization 107
10.1 Newton’s Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.1.1 The Computation of Gradients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
10.1.2 The Computation of Hessian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
10.1.3 Quasi-Newton Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
10.1.4 Newton’s Method for Maximum Likelihood Estimation . . . . . . . . . . . . . . . . 110
10.1.5 The Computation of the Step Length . . . . . . . . . . . . . . . . . . . . . . . . . . 111
10.2 A GAUSS Program for Nonlinear Minimization: NLOPT . . . . . . . . . . . . . . . . . . . 111
10.2.1 Changing Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
CONTENTS v
10.2.2 Analytic Gradients and Analytic Hessian . . . . . . . . . . . . . . . . . . . . . . . 116
10.2.3 Imposing Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
10.2.4 Additional Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
10.2.5 Run-Time Option Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
10.2.6 Global Variable List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
A Drawing Graphs for the Simple Linear Regression Model 300
B GAUSS Data Set (GDS) Files 311
B.1 Writing Data to a New GAUSS Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
B.2 Reading the GAUSS Data Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
B.2.1 Using Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
B.3 Reading and Processing Data with Do-Loops . . . . . . . . . . . . . . . . . . . . . . . . . 315
B.3.1 The ‘readr’ and the ‘writer’ Commands and Do-Loop . . . . . . . . . . . . . . . 317
B.3.2 The ‘seekr’ Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
B.4 GAUSS Commands That Are Related to GDS Files . . . . . . . . . . . . . . . . . . . . . . 318
B.4.1 Sorting the GDS File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
B.4.2 The ‘ols’ Command and the GDS File . . . . . . . . . . . . . . . . . . . . . . . . 319
B.5 Revising GDS Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
B.6 Reading and Writing Small GDS Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
B.7 The ATOG Program? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
B.7.1 The Structure of the Source ASCII file . . . . . . . . . . . . . . . . . . . . . . . . . 322
「经管之家」APP:经管人学习、答疑、交友,就上经管之家!
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
本文关键词:

本文论坛网址:https://bbs.pinggu.org/thread-119314-1-1.html

人气文章

1.凡人大经济论坛-经管之家转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
数据分析师 人大经济论坛 大学 专业 手机版
联系客服
值班时间:工作日(9:00--18:00)