── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(tseries)
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
library(strucchange) # Threshold & break tests
Attaching package: 'strucchange'
The following object is masked from 'package:stringr':
boundary
library(sandwich)library(car)
Loading required package: carData
Attaching package: 'car'
The following object is masked from 'package:purrr':
some
The following object is masked from 'package:dplyr':
recode
library(tsDyn)
Warning in as.POSIXlt.POSIXct(Sys.time()): unknown timezone 'Argentinië
(standaardtijd)'
library(urca)library(cowplot)
Attaching package: 'cowplot'
The following object is masked from 'package:lubridate':
stamp
library(GGally)library(ggstats)library(ggthemes)
Attaching package: 'ggthemes'
The following object is masked from 'package:cowplot':
theme_map
library(ggvis)
Attaching package: 'ggvis'
The following object is masked from 'package:ggplot2':
resolution
library(ggplot2)library(moments)
dataR <-read_excel("Z:/Research/Sectie Real Sector/Notities/2025/Inflatie & economische groei/dataR.xlsx")
Warning in adf.test(diff_growth): p-value smaller than printed p-value
Augmented Dickey-Fuller Test
data: diff_growth
Dickey-Fuller = -5.0263, Lag order = 3, p-value = 0.01
alternative hypothesis: stationary
ggplot(dataR, aes(x = inflation, y = growth)) +geom_point(color ="purple") +geom_smooth(method ="lm", color ="green", se =FALSE) +labs(title ="Inflation vs Growth",x ="Inflation (%)",y ="Growth (%)") +theme_minimal()
`geom_smooth()` using formula = 'y ~ x'
pp.test(dataR$inflation)
Warning in pp.test(dataR$inflation): p-value smaller than printed p-value
Phillips-Perron Unit Root Test
data: dataR$inflation
Dickey-Fuller Z(alpha) = -27.008, Truncation lag parameter = 3, p-value
= 0.01
alternative hypothesis: stationary
pp.test(dataR$growth)
Warning in pp.test(dataR$growth): p-value smaller than printed p-value
Phillips-Perron Unit Root Test
data: dataR$growth
Dickey-Fuller Z(alpha) = -53.793, Truncation lag parameter = 3, p-value
= 0.01
alternative hypothesis: stationary
# Eerste verschil van growthdiff_growth <-diff(dataR$growth)# Eerste verschil van inflationdiff_inflation <-diff(dataR$inflation)dataR$diff_growth <-c(NA, diff_growth) # voeg NA aan het begin toe om lengte gelijk te makendataR$diff_inflation <-c(NA, diff_inflation)