use eviews

gw96
ProblemSet3.pdf

ECON 402

Problem Set 3

Gonzalo García – Spring 2019

Due on ELMS at 6 pm on February 28, 2019.

No late submissions are accepted.

For this problem set, I allow and in fact encourage working in groups of no

larger than 3. You need to follow these rules:

1) Groups are exclusive. One person can be in at most one group.

2) The person whose last name comes first will submit the problem set,

listing the full names of the others in the group on the first page. The

others will not submit a problem set.

3) Questions 1, 2 and 3 sum up 10 points, total score for PS3. Question 4

is a bonus question.

1. (4 points) Write an Eviews program that does the following. Upload the

code (prg file) to ELMS and also copy the contents of the code to your

write-up:

a. Create a monthly workfile from 1980M1 to 2018M12

b. Get the following two variables from FRED:

i. Industrial Production: Manufacturing (NAICS) (Monthly,

Seasonally Adjusted)

ii. All Employees: Manufacturing (Monthly, Seasonally

Adjusted, thousands of persons)

c. Generate two new variables:

i. g_ip : Growth rate of ip, computed as the change in the log

of the industrial production manufacturing index

ii. g_emp : Growth rate of emp, computed as the change in the

log of the all employees of the manufacturing industry

d. Do a scatter plot of g_ip (y-axis) vs. g_emp (x-axis) with the

regression line and save the resulting figure as “Figure 1”.

e. Run a regression of g_emp on a constant, g_ip and first lag of g_ip

and store the resulting output as a table called “Table 1”.

2. (3 points) For each of the data sources and variables below, report the

value of the variable using as many digits as available in the source.

a. FRED, Civilian Labor Force Participation Rate, Percent,

Seasonally Adjusted, March 2003. (Also note the “Updated” date

reported on the top left of the screen).

b. ALFRED, Consumer Price Index for All Urban Consumers: All

Items, Monthly, Seasonally Adjusted, 01/16/2014 vintage, Jan

2013.

c. Real-Time Data Set for Macroeconomists, Real Personal

Consumption Expenditure: Total, 1992Q3 vintage, 1991Q1.

3. (3 points) Using ALFRED, plot Real Gross Private Domestic Investment

growth (quarter-on-quarter, annualized) for the period 2006Q1-2010Q4

using data as of the end of January 2011 and the data in the latest

available vintage. You are free to use any method to bring the data in to

Eviews to plot and you do not need to write an Eviews code for this.

Simply put the plot in your write-up.

4. (2 points, Bonus Question). Write an Eviews program that uses loops to

fill out the following matrix.

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

21 22 23 24 25

26 27 28 29 30

31 32 33 34 35