-
Notifications
You must be signed in to change notification settings - Fork 1
/
Step2_Bereinigung_BIP_Steuern_vol.R
86 lines (81 loc) · 3.54 KB
/
Step2_Bereinigung_BIP_Steuern_vol.R
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Saisonbereigigung BIP/Steuern Volumen
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
# bip muss geladen sein
# Tramo Seat Entstehung ---------------------------
bipVol <- perHts(
## bipQ = BIP -------------------------------------
B1GQ = perTramo(bip$L[, "B1GQ"] , template = "RSA3",
# Transformation
transform.function = "Log",
# Outliers
outlier.enabled = FALSE,
usrdef.outliersEnabled = TRUE,
usrdef.outliersType = c("LS", "AO",
"AO", "LS",
"AO"),
usrdef.outliersDate = c("2020-01-01", "2020-04-01",
"2021-01-01", "2021-07-01",
"2022-04-01"),
# Trading Days
usrdef.varEnabled = FALSE,
# usrdef.var = NA, usrdef.varType = "Calendar",
# tradingdays.option = "UserDefined",
# Easter
easter.type = NULL, easter.duration = 6,
# Arima-Model
automdl.enabled = FALSE,
arima.p = 0, arima.d = 1, arima.q = 1,
arima.bp = 0, arima.bd = 1, arima.bq = 1, arima.mu = FALSE),
## D21 - Gütersteuern -------------------------------------
D21 = perTramo(bip$L[, "D21"] , template = "RSA3",
# Transformation
transform.function = "Log",
# Outliers
outlier.enabled = FALSE,
usrdef.outliersEnabled = TRUE,
usrdef.outliersType = c("LS", "AO",
"LS", "AO",
"LS"),
usrdef.outliersDate = c("2020-01-01", "2020-04-01",
"2021-04-01", "2022-01-01",
"2022-07-01"),
# Trading Days
usrdef.varEnabled = FALSE,
# usrdef.var = NA, usrdef.varType = "Calendar",
# tradingdays.option = "UserDefined",
# Easter
easter.type = "NA", easter.duration = 6,
# Arima-Model
automdl.enabled = FALSE,
arima.p = 1, arima.d = 1, arima.q = 0,
arima.bp = 0, arima.bd = 1, arima.bq = 1, arima.mu = FALSE),
## D31 - Gütersubventionen -------------------------------------
D31 = perTramo(bip$L[, "D31"], template = "RSA3",
# Transformation
transform.function = "Log",
# Outliers
outlier.enabled = FALSE,
usrdef.outliersEnabled = TRUE,
usrdef.outliersType = c("AO", "AO",
"LS"),
usrdef.outliersDate = c("2002-04-01", "2005-01-01",
"2022-01-01"),
# Trading Days
usrdef.varEnabled = FALSE,
# usrdef.var = NA, usrdef.varType = "Calendar",
# tradingdays.option = "UserDefined",
# Easter
easter.type = "IncludeEaster", easter.duration = 6,
# Arima-Model
automdl.enabled = FALSE,
arima.p = 0, arima.d = 0, arima.q = 0,
arima.bp = 0, arima.bd = 1, arima.bq = 1, arima.mu = FALSE)
)
# RUN ----------
bipVol$run()
output_bipVol <- lapply(bipVol$components, function(x){
x$output$final$series
})