Econ 7011C: Econometrics for Finance Fall 2022 Homework 3 Answer to question no 1 Answer to question no 1(a) Definition: Med: Producer Price Index by Industry: General Medical and Surgical...

1 answer below »

View more »
Answered Same DayOct 24, 2022

Answer To: Econ 7011C: Econometrics for Finance Fall 2022 Homework 3 Answer to question no 1 Answer to...

Mohd answered on Oct 24 2022
65 Votes
-
-
-
2022-10-24
library(readr)
Fred_data <- read_csv("Fred_data.csv", col_types = cols(DATE = col_date(format = "%m/%d/%Y")))
View(Fred_data)
model_1<-lm(Unemployment_Rate~CPI,data=Fred_data)
model_2<-lm(Unemployment_Rate~PCE,data=Fred_data)
model_3<-lm(PCE~CPI,data=Fred_data)
model_4<-lm(PCE~CPI+Unemployment_Rate,data=Fred_data)
summary(model_1)
##
## Call:
## lm(formula = Unemployment_
Rate ~ CPI, data = Fred_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.6000 -1.1571 -0.1901 0.3581 9.3738
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 7.0239 0.5154 13.629< 2e-16 ***
## CPI -0.7601 0.1905 -3.991 0.000124 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.702 on 103 degrees of freedom
## Multiple R-squared: 0.1339, Adjusted R-squared: 0.1255
## F-statistic: 15.92 on 1 and 103 DF, p-value: 0.0001236
summary(model_2)
##
## Call:
## lm(formula = Unemployment_Rate ~ PCE, data = Fred_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -3.4976 -1.0211 -0.4509 0.4673 9.3972
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 6.998e+00 1.187e+00 5.897 4.75e-08 ***
## PCE -1.403e-04 8.572e-05 -1.636 0.105
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.806 on 103 degrees of freedom
## Multiple R-squared: 0.02534, Adjusted R-squared: 0.01588
## F-statistic: 2.678 on 1 and 103 DF, p-value: 0.1048
summary(model_3)
##
## Call:
## lm(formula = PCE ~ CPI, data = Fred_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -15370.3 -1171.2 110.4 926.8 2584.9
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 12568.4 617.5 20.36<2e-16 ***
## CPI 438.2 228.2 1.92 0.0576 .
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 2039 on 103 degrees of freedom
## Multiple R-squared: 0.03456, Adjusted R-squared: 0.02519
## F-statistic: 3.687 on 1 and 103 DF, p-value: 0.05759
summary(model_4)
##
## Call:
## lm(formula = PCE ~ CPI + Unemployment_Rate, data = Fred_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -15210.8 -1183.0 -3.4 1126.7 2574.8
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 13407.4 1033.7 12.970<2e-16 ***
## CPI 347.4 245.2 1.417 0.160
## Unemployment_Rate -119.4 118.0 -1.012 0.314
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 2039 on 102 degrees of freedom
## Multiple R-squared: 0.04416, Adjusted R-squared: 0.02541
## F-statistic: 2.356 on 2 and 102 DF, p-value: 0.09994
library(tseries)
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
adf.test(Fred_data$CPI)
## Warning in adf.test(Fred_data$CPI): p-value greater than printed p-value
##
## Augmented Dickey-Fuller Test
##
## data: Fred_data$CPI
## Dickey-Fuller = 0.85597, Lag order = 4, p-value = 0.99
## alternative hypothesis: stationary
acf(Fred_data$CPI)
adf.test(Fred_data$Unemployment_Rate)
##
## Augmented Dickey-Fuller Test
##
## data: Fred_data$Unemployment_Rate
## Dickey-Fuller = -2.7089, Lag order = 4, p-value = 0.2827
## alternative hypothesis: stationary
acf(Fred_data$Unemployment_Rate)
adf.test(Fred_data$PCE)
##
## Augmented Dickey-Fuller Test
##
## data: Fred_data$PCE
## Dickey-Fuller = -2.7877, Lag order = 4, p-value = 0.25
## alternative hypothesis: stationary
acf(Fred_data$PCE)
skimr::skim(Fred_data)
Data summary
    Name
    Fred_data
    Number of rows
    105
    Number of...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here
April
January
February
March
April
May
June
July
August
September
October
November
December
2025
2025
2026
2027
SunMonTueWedThuFriSat
30
31
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
1
2
3
00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30