Professional Documents
Culture Documents
EVIEWS 12.0 Training - January 2022 - Day 2
EVIEWS 12.0 Training - January 2022 - Day 2
EVIEWS 12.0 Training - January 2022 - Day 2
+ Multivariate
+ Linear Regression
+ Logistic/Probit Regression
A Guideline for Running Regression
+ Unlike IBM SPSS Statistics, EViews does not offer the options of
stepwise entry or backward removal of variables when running
regression.
+ Include all the variables in EViews and eliminate the non-significant variables one by
one until only the significant ones remain.
Note: The list method is easier but may only be used with
unrestricted linear specifications; the formula method is more
general and must be used to specify nonlinear models or
models with parametric restrictions.
Specifying An Equation – by list
The simplest way to specify a linear equation is to provide a list
of variables that you wish to use in the equation.
First, include the name of the dependent variable or expression, Partial significance
followed by a list of explanatory variables. For example:
Note: the presence of the series name C in the list of regressors. This is a
built-in EViews series that is used to specify a constant in a regression.
EViews does not automatically include a constant in a regression so you must
explicitly list the constant (or its equivalent) as a regressor.
You may have noticed that there is a pre-defined object C in your workfile.
This is the default coefficient vector—when you specify an equation by listing
variable names, EViews stores the estimated coefficients in this vector, in the
order of appearance in the list. In the example above, the constant will be
stored in C(1), the coefficient on pce will be held in C(2), the coefficient on inv
will be held in C(3), and the coefficient on g will be held in C(4). Overall significance
Specifying An Equation – by list
Lagged series may be included in statistical operations using the same notation as in generating a new
series with a formula—put the lag in parentheses after the name of the series. For example, the
specification:
cs cs(-1) c inc
tells EViews to regress CS on its own lagged value, a constant, and INC. The coefficient for lagged CS will
be placed in C(1), the coefficient for the constant is C(2), and the coefficient of INC is C(3).
You can include a consecutive range of lagged series by using the word “to” between the lags. For
example:
cs c cs(-1 to -4) inc
regresses CS on a constant, CS(-1), CS(-2), CS(-3), CS(-4), and INC. If you don't include the first lag, it is
taken to be zero. For example:
cs c inc(to -2) inc(-4)
regresses CS on a constant, INC, INC(-1), INC(-2), and INC(-4).
You may include auto-series in the list of variables. If the auto-series expressions contain spaces, they
should be enclosed in parentheses. For example:
log(cs) c log(cs(-1)) ((inc+inc(-1)) / 2)
specifies a regression of the natural logarithm of CS on a constant, its own lagged value, and a two period
moving average of INC.
Specifying An Equation – by formula
An equation formula in EViews is a mathematical
expression involving regressors and coefficients.
To specify an equation using a formula, simply
enter the expression in the dialog in place of the
list of variables.
+ Multicollinearity
+ Residual diagnostic
Time Series Model in E-Views
(Forecasting)
Stationary Test
+ A series is said to be (weakly or
covariance) stationary if the mean and
autocovariances of the series do not
depend on time.
Example: gdp
GDP
14,000
13,000
12,000
11,000
10,000
9,000
8,000
7,000
6,000
5,000
1980 1985 1990 1995 2000 2005 2010
Forecasting-Simple Method
+ Exponential Smoothing
Example: gdp
14,000
13,000
12,000
11,000
10,000
9,000
8,000
7,000
6,000
5,000
1980 1985 1990 1995 2000 2005 2010
GDP GDPSM
Data and Workfile Documentation
• Data.wf1 and Data.xls have monthly data from January 1960-March 2013.
Note that command @expand(@month) creates 12 dummy variables, one for each month
of the year. These are the seasonal factors. Because we have included a constant, we
need to exclude one of the dummy variables in order not to fall in the dummy variable
trap. Here we have chosen to exclude January, by using the option @dropfirst.
Forecasting with Exogenous Variables
Example 1
• Estimation output is shown here. Note
that EViews has estimated the model over
the period 1960m01 to 2013m03, for which
we have payroll data.
• We also plot the actual and fitted values
of the model (shown below), by pressing
View → Actual, Fitted, Residual → Actual
Fitted Residual Graph.
Forecasting with Exogenous Variables
Example 1: Forecasting
• Now, let’s produce a forecast for the payroll series based on our model.
• For this, all we have to do is press the button in the equation toolbar.
Example 1: Forecasting
1. Open eq01. On the equation box toolbar, press the
button. The Forecast dialog box opens up.
2. Under Series name, specify a name for the forecast
series. EViews suggests a name (payrollf) but this series
will be overwritten every time a new model is estimated.
Let’s save our series as eq01_f.
3. Under Forecast sample, select the sample over which the
forecast will be carried out. Here we type, 2013m04 @last.
4. Check “Insert actuals for out-of-sample observations.”
5. Under Method, notice that EViews indicates this is a Static
forecast (no dynamics in the equation) (more details later).
6. Under Output, check Forecast graph and Forecast
evaluation.
7. Click OK.
Forecasting with Exogenous Variables
Example 1: Forecasting
• The Forecast Output is shown
here. Notice that EViews shows
the series Eq01_f over the
forecast sample, together with 2
standard error bands.
Forecasting with Exogenous Variables
Example 1: Forecasting
• Note also that there is now a new series eq01_f saved in the workfile.
Let’s open this series and the original payroll series as a group to
inspect them more closely.
• Notice that the two series are identical when looking at the historical
data. This is because we elected to check the box “Insert actuals for
out-of-sample observations” which instructs EViews to use actual
payroll data for the out-of-forecast sample.
• However, the eq01_f series contains actual forecasts of the payroll
series for future periods. How does EViews compute these values?
• Recall that the explanatory variables in this model are @trend and
seasonal factors. EViews computes the forecast for April 2013 as
follows:
✓ @trendApril 2013 = 639; @trend coefficient=144.4909
✓ @month=4; @month=4 coefficient 1,476.381.
✓ constant=51,730.04
✓ eq01_f April 2013= 51,730.04+144.4909*639+1,476.381*1
=145,536.076
Forecasting with Exogenous Variables
Example 1: : Forecast Sample Changes
What would happen if we set the forecast sample to be the entire range
of the workfile?
+ Better able to identify & measure effects that are simply not
detectable in pure cross-section or time-series
OLS/Common Random
Fixed Effects
Effects Effects
Choice of Panel Data Regression Estimation
Panel Data Regression
Open “dataset data panel.wf1”
OLS/Common Effect Fixed Effect
the equation specification: the equation specification:
y c x1 x2 x3 y c x1 x2 x3
Change panel option, cross
section “Fixed”
Panel Data Regression
Chow Test
Click View \ Fixed Random Effect Testing \ Redundant Fixed Effect – Likelihood Ratio
Let’s connect
M+ Software thank you all for your consideration to be your project partner
for digital.