You are on page 1of 3

Eviews Tutorial

Creating a workfile File → New → Workfile Specify the frequency of the data if the data are time series or the number of observations if undated Importing data File → Import → Read Text-Lotus-Excel … Find the file; Be careful to indicate the extension of the file; For Excel files, the first cell for reading the data is A2 Give the number of series and Eviews will read their name from the file. Importing data (another way of) File → Open → Foreign Data as Workfile … Find the file; Eviews will do the rest Check that Eviews has read the file to the end (sometimes it doesn’t) Saving a workfile Save button The file has extension .wf1 Working with series Double-click on a series, a new window opens To work on a group of series, select the appropriate ones (Ctrl+Mouse) then right-click and Open → As Group Alternatively use Objects → New Object → Group and OK then type the name of the series Creating new series Click on Genr and enter the equation Examples: lahe = log(ahe) Newvar = age*ahe Descriptive Statistics Click on series to open a new window View → Descriptive Stats → Box Plots by classification then choose the variables used for classification View → Descriptive Stats → Stats by classification then choose the variables used for classification and choose the descriptive statistics you want to obtain View → Correlation Using a subsample You can restrict to a subsample by clicking on Sample and entering a condition in the IF case For instance female = 1 will restrict to female workers.

Error 0.D. dependent var Akaike info criterion Schwarz criterion Durbin-Watson stat • The upper panel gives you the estimated equation: estimation method. representation and options used • The middle panel gives the estimated coefficients and their standard errors.689031 1. i. A new window opens that gives the results View → Representation Gives you the command line.E.0000 0. the null hypothesis H0: coefficient = 0 against H1: coefficient ≠ 0 Prob is the P-value of the t test . the representation and the estimated regression line Estimate brings you back to the equation and allows changing the Options Reading the results Dependent Variable: AHE Method: Least Squares Date: 05/27/06 Time: 14:51 Sample: 1 5911 Included observations: 5911 AHE= C(1) + C(2)*AGE Coefficient C(1) C(2) R-squared Adjusted R-squared S.015837 0.0000 13. Then View → Graph → Simple Scatter (or Scatter with Regression) (or something else) Estimating a linear regression Object → New → Equation Then enter the equation AHE = c(1) + c(2) * AGE.904507 6.031777 t-Statistic 5.757602 Prob.850194 277280.760606 Mean dependent var S.95815 6. The t-statistic always tests the significance of the coefficient. You can also simply write AHE c AGE For more than one regressor just type the list AHE c AGE EDU FEMALE The method is Least-Squares.071534 9.75 Std.e.310063 0.935795 0. 0. of regression Sum squared resid Log likelihood 4.745918 0.7 -19760. sample size.015671 6.686769 6.Graphical representations Click on X and Y and open as group.

Fitted. Fitted.• The lower panel gives you the R-squared. the sum of squared residuals. Residual → Actual. You can obtain the actual values of the dependent together with the fitted values and residuals form View → Actual. the (sample) mean of the dependent variable and its (sample) standard deviation. the Standard Error of the regression. Using the regression window You can create a series for the Forecasts (fitted values) The residuals and the coefficients values are in the RESID and C variables in your workfile. you can save the result in your workfile Freeze then Name in the new window Help Menu Help → Eviews Help Topic → Index . Residual Table Saving your results Each time you generate a table or a graph.