Question: Data Description: US macro data on monthly real disposable personal income ( DSPIC 9 6 ) , real personal consumption expenditures ( PCEC 9 6
Data Description: US macro data on monthly real disposable personal income
DSPIC real personal consumption expenditures PCEC and year Treasury
interest rates GS
This homework has two parts:
I. Prepare these data in Excel for use in the statistical software ROnce 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.
II 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 eg n mean, standard deviation, min and max
Plot dependent variable and independent variable over time. Comment on your plot.
Often time, we compare annual consumptionincome year to year. Report the summarized statistics by year.
Try sample code below:
mydata$yearsubstrmydata$Date,
tapplymydata$PCEC mydata$year, mean
tapplymydata$DSPIC mydata$year, mean
tapplymydata$GS mydata$year, mean
Now run OLS model call Model and write out the estimated regression model. How do you interpret the intercept and slope values of the model? Be sure to comment on the 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 This is all the information I have
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
