R代写-S3
时间:2022-04-12
library(fpp2)
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
## -- Attaching packages ---------------------------------------------- fpp2 2.4 --
## v ggplot2 3.3.5 v fma 2.4
## v forecast 8.16 v expsmooth 2.3
##
length(elecequip)
## [1] 195
plot(elecequip)
Time
e
le
ce
qu
ip
2000 2005 2010
60
70
80
90
10
0
12
0
a=diff(elecequip)
plot(a)
1
Time
a
2000 2005 2010
−
30
−
10
0
10
20
30
This dataset is a time series detailingMonthly number of orders for the manufacture of electrical equipment:
computer, electronic and optical products in 17 countries in the euro area from package “fpp2”, it contains
195 observations that can easily be made to approximate stationary after the difference.
2