FE515 EViews Topics – Eviews Quick Start

Eviews – ECON SOFTWARE

Eviews Basics

Econometrics data

Eviews == Econometrics Eviews, written in C++.

Basic data types in econometrics are:

Objects

Eviews works in an “object” pattern, objects in Eviews are:

All objects stored in Workfile (wf1).

Actions can be done on object as :

Eviews Workflow

Data Preperation
Work file creation
Object generation
Exploratory data analysis
Linear regression analysis
Output reporting

Data preparation

Clean data.

Workfile Creation

2023-05-20-at-10.49.48

创建宏观经济案例的工作文件

宏观经济案例的工作文件视窗

Data import

导入外部xlsx数据文件1:菜单

导入外部xlsx数据文2:引导

导入外部xlsx数据文件3:检查

Object Generation (Genr)

Commonly used Eviews Objects

stariconname_engrole
4∗imgAlphaexpressing variables that contain alphanumeric characters.
4∗imgCoefrepresenting the parameters of an equation or system.
5∗imgEquationrepresenting estimation, testing, or prediction of an equation.
5∗imgGraphrepresenting graphical output results.
5∗imgGrouprepresenting a collection of sequential objects (including Series/Alpha, etc.).
4∗imgMatrixrepresenting a matrix (a two-dimensional array).
4∗imgScalarepresenting a scalar (i.e., a single value).
5∗imgSeriesrepresenting a time series variable, with its elements required to be numeric.
5∗imgTablerepresenting tabular output results.
4∗imgVectorcolumn vector representing numeric values.

快速案例中的EViews对象一览

常用Eviews对象的菜单式创建操作

Exploratory Data Analysis (EDA)

with Graphs

idpurposeiconnamecharacters
1data comparisonimg(Circular Area Chart)时期间比较->时期数较多->周期性时期
2data comparisonimg折线图(Line Chart)时期间比较->时期数较多->非周期性时期
3data comparisonimg柱状图(Column Chart)时期间比较->时期数较少->分组较少
4data comparisonimg簇状-折线图(Line Chart)时期间比较->时期数较少->分组较多
5data comparisonimg不等宽柱状图(Variable Width Column Chart)条目间比较->每个条目有两个变量->
6data comparisonimg表格型嵌图(Table with Embedded Charts)条目间比较->每个条目有一个变量->分组较多
7data comparisonimg簇状-条形图(Bar Chart)条目间比较->每个条目有一个变量->分组较少->条目较多
8data comparisonimg簇状-柱状图(Column Chart)条目间比较->每个条目有一个变量->分组较少->条目较少
1data structureimg饼形图(Pie Chart)构成无时期变化->简单占比构成
2data structureimg瀑布图(Waterfall Chart)构成无时期变化->累积构成或落差构成
3data structureimg百分比多层构成图(Components of Components)构成无时期变化->多层次子类的百分比构成
4data structureimg堆栈百分比柱状图(Stacked 100% column chart)构成有时期变化->时期较少->仅关心成分之间的相对差异
5data structureimg堆栈柱状图(Stacked Column Chart)构成有时期变化->时期较少->仅关心成分之间的绝对差异
6data structureimg堆栈百分比面积图(Stacked 100% Area Chart)Composition with periodic variations -> More periods -> Only interested in relative differences between components.
7data structureimg堆栈面积图(Stacked Area Chart)Composition with periodic variations -> More periods -> Only interested in absolute differences between components.
1data distributionimg柱状直方图(Column Histogram)Distribution of a single variable -> Few data points.
2data distributionimg线状直方图(Line Histogram)Distribution of a single variable -> Numerous data points.
3data distributionimg散点图(Scatter Chart)Distribution of two variables.
1data correlationimg3D面积图(3D Area Chart)Distribution among three variables.
2data correlationimg散点图(Scatter Chart)Relationship between two variables.
3data correlationimg泡泡图(Bubble chart)Relationship between three variables.

Descriptive Statistics

构造主要变量的描述性统计分析表(三线表)

Graph Analysis

idname_engiconmark
1line & SymbolimgDisplaying a trend, including one sequence object, with numerous data points.
1line & SymbolimgDisplaying a trend, including four sequence objects, with numerous data points.
2BarimgDisplaying group differences, horizontal bar chart, including one sequence object, with a small number of data groups.
2BarimgDisplaying group differences, vertical bar chart, including one sequence object, with a small number of data groups.
2BarimgDisplaying group differences, vertical bar chart, including several sequence objects, with a small number of data groups.
3SpikeimgDisplaying numerical magnitudes, including one sequence object, with a small number of data groups.
4AreaimgDisplaying coverage area, including one sequence object, with numerous data points.
4AreaimgDisplaying coverage area, including four sequence objects, with numerous data points.
5Area BandimgDisplaying area differences, including two sequence objects, with numerous data points.
6MixedimgDisplaying diverse information, including multiple sequence objects, with numerous data points.
7Dot PlotimgDisplaying numerical magnitudes, including one sequence object, with numerous data points.
8Error PlotimgDisplaying numerical differences, including two sequence objects, with a small number of data points.
8Error PlotimgDisplaying numerical differences, including three sequence objects, with a small number of data points.
9High-Lowimg表现数值位置关系,包含2个序列对象(最高价、最低价),数据点较少
9High-Lowimg表现数值位置关系,包含3个序列对象(开盘价、最高价、最低价),数据点较少
10Scatterimg表现变量关系,包含2个序列对象,数据点较多
10Scatterimg表现变量关系,包含多个序列对象,数据点较多
11Bubble Plotimg表现变量关系,包含3个序列对象,数据点较多
12XY Lineimg表现数据变化路径,包含2个序列对象,数据点较多
13XY Areaimg表现2D覆盖面积,包含个序列对象,数据点较多
14XY Barimg表现分组差异,垂直条形,包含若干个序列对象,数据分组较少
15Pieimg表现数据构成关系,包含1个序列对象,数据分组较少
16Distributionimg表现数据分布密度,直方图,包含1个序列对象,数据点较多(自动分组)
17Quantile-Quantileimg表现数据分布密度,正态QQ图,包含1个序列对象,数据点较多
18Boxplotimg表现数据分布形态,包含若干序列对象,数据点较多
19Seasonal Graphimg表现数据循环关系,包含1个序列对象,数据点较多,分组较少(在同一月份不同年份上的变化)
19Seasonal Graphimg表现数据循环关系,包含1个序列对象,数据点较多,分组较少(在同一年份不同月份上的变化)

Line-Symbol

主要变量的简单多线图(Line-Symbol)绘制

主要变量的个性化多线图(Line Symbol)绘制

Linear Regression Analysis

主回归模型Eviews操作

Command

通过命令视窗提取回归方程的判定系数$R^2$和调整判定系数$\bar{R}^2$

通过命令视窗计算得到理论$t$值$t_{1-\alpha/2}(f)=t_{0.975}(125)$

Program (Batch Commands)

EViews程序文件(.prg)的创建操作

Command Syntax (program syntax)

Syntax:

Commonly used commands and functions

2023-05-20-at-11.25.31

2023-05-20-at-11.25.44

2023-05-20-at-11.26.03

A univariate linear regression model (SLR)

OLS

Essense of Regression:

(1)Yi>Y|Xi
  1. Ordinary Least Squares (OLS): Minimizes the sum of squared residuals between observed values and the predicted values of a regression model to estimate population parameters.

  2. Maximum Likelihood Estimation (MLE): Assumes that the observed data is generated from a probability distribution and estimates population parameters by maximizing the likelihood function of the observed data.

  3. Bayesian Estimation: Incorporates prior knowledge and beliefs about the parameters by specifying prior distributions, and updates them using observed data to obtain the posterior distribution of the parameters.

  4. Method of Moments (MOM): Matches the sample moments (such as means and variances) to their population counterparts to estimate population parameters.

OLS

(2.2)Yi=β1+β2Xi+ui(PRM)(2)uiN(0,σ2)(2.3)Yi=β^1+β^2Xi+ei(SRM)
(3)Min(Q)=(YiY^i)2(4)=(Yi(β^1+β^2Xi))2(5)=f(β^1,β^2)
(2.4)β^2=nXiYiXiYinXi2(Xi)2β1^=nXi2YiXiXiYinXi2(Xi)2(FF solution)
(2.5)β^2=xiyixi2β1^=Y¯iβ^2X¯i(ff solution)
(2.6)Y^i=β^1+β^2Xi(2.7)ei=YiY^i(2.8)σ^2=ei2n1=(YiY^i)2n1

T-statistic

The t-statistic is used to test the hypothesis that the coefficient is different from zero ( null hypo).

for a PRM:

(6)Yi=β1+β2Xi+ui

F-value

This used to test the overall significance of the model.

How to read Eviews SLM report

看懂EViews回归分析报告

(7)Yi=β1+β2Xi+ϵi

生成回归方程对象

主回归模型Eviews操作