Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. > # Time series and seasonality
  2. > weatherarima <- ts(lnweather, start = c(1941,11), frequency = 12)
  3. > plot(weatherarima,type="l")
  4. > title("Maximum Air Temperature - Dublin")
  5. > components <- decompose(weatherarima)
  6. > components
  7. $x
  8. Jan Feb Mar Apr May Jun
  9. 1941
  10. 1942 2.476538 2.451005 2.785011 2.785011 3.039749 3.182212
  11. 1943 2.501436 2.501436 2.595255 2.833213 2.949688 3.169686
  12. .....
  13. 2002 2.624669 2.564949 2.694627 2.954910 2.901422 3.072693
  14. 2003 2.541602 2.509599 2.681022 2.912351 3.095578 3.034953
  15. Jul Aug Sep Oct Nov Dec
  16. 1941 2.639057 2.541602
  17. 1942 3.100092 3.104587 3.049273 2.944439 2.549445 2.610070
  18. .....
  19. 2002 3.165475 3.086487 3.034953 2.928524 2.766319 2.595255
  20. 2003 3.173878
  21.  
  22. $seasonal
  23. Jan Feb Mar Apr May
  24. 1941
  25. 1942 -0.31362491 -0.35898680 -0.15593894 -0.02671571 0.13670560
  26. .....
  27. 2002 -0.31362491 -0.35898680 -0.15593894 -0.02671571 0.13670560
  28. 2003 -0.31362491 -0.35898680 -0.15593894 -0.02671571 0.13670560
  29. Jun Jul Aug Sep Oct
  30. 1941
  31. 1942 0.27355305 0.31190154 0.28790588 0.21125359 0.04673145
  32. .....
  33. 2002 0.27355305 0.31190154 0.28790588 0.21125359 0.04673145
  34. 2003 0.27355305 0.31190154
  35. Nov Dec
  36. 1941 -0.14702167 -0.26576308
  37. 1942 -0.14702167 -0.26576308
  38. .....
  39. 2002 -0.14702167 -0.26576308
  40. 2003
  41.  
  42. $trend
  43. Jan Feb Mar Apr May Jun
  44. 1941
  45. 1942 NA NA NA NA 2.837814 2.836933
  46. 1943 2.829826 2.832604 2.829045 2.824329 2.828174 2.827151
  47. .....
  48. 2002 2.879646 2.870902 2.869069 2.868745 2.867848 2.867383
  49. 2003 2.863026 NA NA NA NA NA
  50. Jul Aug Sep Oct Nov Dec
  51. 1941 NA NA
  52. 1942 2.840823 2.843962 2.838157 2.832259 2.830515 2.826240
  53. .....
  54. 2001 2.878778 2.885695 2.887395 2.898603 2.899514 2.888079
  55. 2002 2.862396 2.856628 2.853755 2.851415 2.857732 2.864249
  56. 2003 NA
  57.  
  58. $random
  59. Jan Feb Mar Apr
  60. 1941
  61. 1942 NA NA NA NA
  62. 1943 -0.0147649865 0.0278182514 -0.0778510992 0.0356001029
  63. .....
  64. 2002 0.0586479010 0.0530343061 -0.0185033055 0.1128809535
  65. 2003 -0.0077995720 NA NA NA
  66. May Jun Jul Aug
  67. 1941
  68. 1942 0.0652292932 0.0717255328 -0.0526327312 -0.0272813565
  69. .....
  70. 2002 -0.1031320807 -0.0682430232 -0.0088222488 -0.0580476292
  71. 2003 NA NA NA
  72. Sep Oct Nov Dec
  73. 1941 NA NA
  74. 1942 -0.0001374702 0.0654487074 -0.1340478642 0.0495926311
  75. .....
  76. 2002 -0.0300558356 0.0303770585 0.0556092504 -0.0032310605
  77. 2003
  78.  
  79. $figure
  80. [1] -0.14702167 -0.26576308 -0.31362491 -0.35898680 -0.15593894
  81. [6] -0.02671571 0.13670560 0.27355305 0.31190154 0.28790588
  82. [11] 0.21125359 0.04673145
  83.  
  84. $type
  85. [1] "additive"
  86.  
  87. attr(,"class")
  88. [1] "decomposed.ts"
  89. > plot(components)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement