Question: Homework # 6 Assignment: A project on SLR We will use the computer software to gather data and estimate equations in class for this data
Homework # Assignment: A project on SLR
We will use the computer software to gather data and estimate equations in class for this
databased homework.
This homework has three parts:
I. Use the web to get US macro data on monthly real disposable personal income
DSPIC real personal consumption expenditures PCEC and year Treasury
interest rates GS
II Prepare these data in Excel for use in the statistical software R Once you import the
data to R check your data with head and tail function so that you are sure your data is
correct. Explore the data and report summarize statistics.
III. Run the regression program of a simple consumption model described below. The
basic consumption function model says that consumption is explained by disposable
income. Be sure to set up the dependent variable to reflect this model and use R to
generate a table reporting all regression results.
Based on your data results, answer the following questions Also submit your R file
along with associated Excel data:
Write a simple consumption model by clearly stating dependent variable and
independent variable.
Describe the OLS methodology based on your model. Setup the objective
function, and indicate the decision variables.
Look at descriptive statistics of your data using summary function and using
stargazer to generate a nice Table call it Table Comments on the results at
least describe mean, variance, min and max
Plot dependent variable and independent variable over time. Comments on your
plot.
Often time, we compare annual consumptionincome year to year. Report the
summarize statistics by year include answers in R code
Now run OLS model call Model and write out the resulting equation
regression line How do you interpret the intercept and slope values of the
regression line? Do not worry if the intercept is not a reasonable data point for
consumption because we do not have any data that is close to the intercept
values Be sure to comment on sign, magnitude and significance of the slope
value.
Use the equation to predict the dependent value, given a value of the independent
variable of $ Billion.
What is the Rsquared? What does Rsquared mean in general and what does this
value tell us
What is the FValue? What does F mean in general and what does this particular
value of F tell us
Finally, one student wonders what would happen if we regress the logs of the
variables in the above basic equation Model Take the logs of each variable in
that equation and repeat the regression in log form not GS You must create
the log variables before running this regression, call Model
mydata$logPCEClogmydata$PCEC
mydata$logDSPIClogmydata$DSPIC
Another student wonders if interest rates GS matters in consumption behavior.
Run another model that adds interest rates GS to Model call Model
Using stargazer to generate a nice Table call it Table including all three regression
results for easy comparison.
Bring Table to your final exam.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
