Assignment1_R.pdf

Econ 4650, Spring 2019 Assignment 1

Introduction

Welcome to Assignment 1!

It is suggested you do the following before attempting this assignment*

• Read the appropriate textbook chapters (Chapter 1 & Chapter 2 in the Custom Text; Chapter 17 & Chapter 1 in the full text)

• Read the Econ_4650_Sprin_2019_Intro_to_R.pdf in Module 1.a • Install the software R • Read OrdinaryLeastSquares pdf in Module 1.b • Take a deep breath!

*Note, You may also watch the Module 1 video tutorials, but this is not required. Also, please note that there have been adjustments to the number of assignments and the structure of the course since the time the videos were made.

Definitions for Annual Consumption of Chicken Data

Y = per capita chicken consumption (in pound) in a given year

PC = the price of chicken (in cents per pound) in a given year

PB = the price of beef (in cents per pound) in a given year

YD = U.S. per capita disposable income (in hundred of dollars) in a given year

Assignment 1

[1] Download the data file CHICK6.csv from Assignment 1.

[2] Load the CHICK6.csv data into R and rename it so that it includes your own name or initials (for example, we might name our dataset JunfuCHICK6 ).

[3] Generate the mean and the standard deviation for the variables Y, PC, PB, and YD from the CHICK6.csv data set.

[4] You are going to run a regression (in [5]) where Y is the dependent variable, and PC, PB, and YD are the independent variables. Discuss whether you think the independent variable PB will have a negative or positive e�ect on the dependent variable. In your decision, try to use as much economic theory as you can – theory is what motivates what variables are included in a model and what sign we anticipate for the model’s estimates.

[5] Estimate the model in R and present the results.

[6] Interpret the results for the coe�cient PB from your model. Make sure to include whether or not the result aligned with your expectations.

1

Rectangle
FreeText
Principles of Econometrics