1 / 15

Eviews Tutorial for Labor Economics Lei Lei

Eviews Tutorial for Labor Economics Lei Lei. Getting Started. Open Eviews window Create a workfile Import data View and plot data View summary statistics Generate new variables Run simple regression. 1.Open Eviews window. Click on the Eviews icon Main Eviews window:

adamtodd
Download Presentation

Eviews Tutorial for Labor Economics Lei Lei

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Eviews Tutorial for Labor EconomicsLei Lei

  2. Getting Started • Open Eviews window • Create a workfile • Import data • View and plot data • View summary statistics • Generate new variables • Run simple regression

  3. 1.Open Eviews window • Click on the Eviews icon • Main Eviews window: • title bar: at the top, inlcluding menus such as “File”, ”Edit”, etc. • command window: immediately below the title bar. You can execute commands either by clicking on command buttons or by typing equivalent command into the command window. • status line: at the bottom, providing additional information on the status of various settings of the program. • work area: between the command window and the status line, where the results of operations will be displayed.

  4. 2.Create a Workfile • Workfile: The most important object container in Eviews, which can be used to store data and results. • Create a workfile: • Click on the File menu, then on New, and on Workfile • In the window appeared: • Choose the type of your data. For example, you can select “Dated-regular frequency” for time-series data; • Input the start and end dates of your data; • Name the workfile (optional). • Click OK.

  5. 2.Create a Workfile-continued • The workfile now contains two entries: • c – constant, where Eviews saves the intercept of the regression. • resid– residuals, where Eviews saves the residuals of last regression • You can then import data into this workfile.

  6. 3.Import data • Import from excel file: • Open the file, make sure the observations for different variables are arranged in columns, with names on top. Copy the names of the variables, and remember the Upper left data cell (location of first data, i.e., A2), then close the spreadsheet. • In main Eviews window, after creating the workfile, click File, then Read Text-Lotus-Excel, and specify the location of data file. • In the opened dialog box, fill in the Upper left data cell, then past the names of the variables, click OK.

  7. 3.Import data-continued • Enter data manually: • click on Quick in the title bar, and then on Empty Group (Edit Series). • Next enter the variables, starting with the name, in the grey box to the immediate right of “obs.” • Import ASCII data form a textfile: • Make sure the observations for different variables are arranged in columns, with names on top. • In the Eviews workfile window, click Procs, and Read Text-Lotus-Excel, then browse for location the text file. • In the dialog box, select from a range of input options.

  8. 3.Import data-continued • Edit data: click the Edit+/-button on the workfile toolbar, move to the observation in question, enter the correct value, and press Enter. • Paste data into word file: click freeze, then you can copy and past. • Print data: click Printbutton. • Save data: • Save an entire workfile: click Save in the workfile toolbar, or click on File and then SaveAs in the main menu. • Store individual series: clcik Store in the workfile toolbar. If you need to retrieve the series, you can simply click on Fetch in the workfile toolbar.

  9. 4. View and plot data • View data • One variable – double click on variable in workfile window, click on view, then spreadsheet; or simply click on Sheet • Multiple variables – in workfile window, select the name of variables needed, right click and choose “open group view/spreadsheet”

  10. 4. View and plot data-continued • Plot data • One variable – double clicking on the name of the variable, then click on View /Graph/Lineinthe resulting serieswindow. • Multiple variables – open the variables as a group, then click View /Multiple Graph/Line. • Edit: double click on the graph or click on Optionsbutton to edit.

  11. 5.View summary statistics • One variable • Click the Viewbutton at the upper-left corner of the workfile, then click on Descriptive Statistics,and Histogram and Stats • Multiple variables • First open the variables as a group • View Descriptive Statistics in the group • View correlations

  12. 6. Generate new variables • In the workfile window, click Genr button, then specify the new variable using equation formula. • Alternatively, in the command line, use command “genr” to generate new variables. For example, • natural logs: genr lqvetts=log(qvetts) • genr unemplsq=unemployment*unemployment • lagged variable: genr lprice=price(-1)

  13. 7.Run simple regression • In main Eviews window, click Quick,thenEstimate Equation. Alternatively, in Workfile window, click Object, and New Object, then click Equation. • Equation Speciation: write down the equation, then choose the method (usually least squares) and sample period. • Note: If run linear regression, you may just input the name of the variables instead of the whole formula. First is the dependent variable, then write down all independent variables. (e.g: Y c X1 X2 … Xk)

  14. 7.Run simple regression-continued • The interpretation of the coefficients: it indicates the effect of a unit change in the relevant variable on the dependent variable, holding all other factors constant (“ceteris paribus”). • Saving equation: using Name Option • Exporting table of results • Save table using Freeze/Name • Open table, select all, then copy and choose “formatted”, thus paste in word file.

  15. 7.Run simple regression-continued • Test: click View/Coefficient Tests/Wald-Coefficient Restrictions. • View results in the equation window: • Regression output: click View, then Estimation output • Residuals: click View, then Actual, Fitted redisual

More Related