GAZA_STRIP CANCER DATA
BY ELDIRDIRI FADOL IBRAHIM FADOL
2020-10-28
Warning: package 'rtweet' was built under R version 4.0.3
Warning: package 'rgl' was built under R version 4.0.3
Installing package into 'C:/Users/compu lab/Documents/R/win-library/4.0'
(as 'lib' is unspecified)
package 'TSstudio' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\compu lab\AppData\Local\Temp\RtmpKyEMVn\downloaded_packages

Error in ts_info(tsData): could not find function "ts_info"
Error in ts_data_(data = structure(c(89L, 76L, 80L, 81L, 86L, 75L, 70L, : is.data.frame(data) is not TRUE
Error in ts_decompose(tsData): could not find function "ts_decompose"
Error in ts_seasonal(tsData, type = "all"): could not find function "ts_seasonal"
Error in ts_seasonal(tsData - decompose(tsData)$trend, type = "all", title = "Seasonal Plot - tsData (Detrend)"): could not find function "ts_seasonal"
Error in ts_heatmap(tsData): could not find function "ts_heatmap"
Error in ts_cor(tsData, lag.max = 34): could not find function "ts_cor"
Error in ts_lags(tsData): could not find function "ts_lags"
Error in ts_lags(tsData, lags = c(1:4)): could not find function "ts_lags"
Error in ts_to_prophet(tsData): could not find function "ts_to_prophet"
ds y flag
1 2009-01-01 89 1
2 2009-02-01 76 1
3 2009-03-01 80 1
4 2009-04-01 81 1
5 2009-05-01 86 1
6 2009-06-01 75 1
7 2009-07-01 70 1
8 2009-08-01 81 1
9 2009-09-01 76 1
10 2009-10-01 84 1
11 2009-11-01 73 1
12 2009-12-01 74 1
13 2010-01-01 86 1
14 2010-02-01 74 1
15 2010-03-01 78 1
16 2010-04-01 79 1
17 2010-05-01 84 1
18 2010-06-01 73 1
19 2010-07-01 69 1
20 2010-08-01 79 1
21 2010-09-01 76 1
22 2010-10-01 83 1
23 2010-11-01 74 1
24 2010-12-01 75 1
25 2011-01-01 98 1
26 2011-02-01 90 1
27 2011-03-01 95 1
28 2011-04-01 100 1
29 2011-05-01 118 1
30 2011-06-01 98 1
31 2011-07-01 90 1
32 2011-08-01 69 1
33 2011-09-01 87 1
34 2011-10-01 73 1
35 2011-11-01 72 1
36 2011-12-01 47 1
37 2012-01-01 88 1
38 2012-02-01 73 1
39 2012-03-01 82 1
40 2012-04-01 93 1
41 2012-05-01 99 1
42 2012-06-01 102 1
43 2012-07-01 105 1
44 2012-08-01 112 1
45 2012-09-01 115 1
46 2012-10-01 118 1
47 2012-11-01 121 1
48 2012-12-01 123 1
49 2013-01-01 96 1
50 2013-02-01 100 1
51 2013-03-01 103 1
52 2013-04-01 107 1
53 2013-05-01 110 1
54 2013-06-01 120 1
55 2013-07-01 123 1
56 2013-08-01 125 1
57 2013-09-01 128 1
58 2013-10-01 130 1
59 2013-11-01 132 1
60 2013-12-01 140 1
61 2014-01-01 126 1
62 2014-02-01 137 1
63 2014-03-01 105 1
64 2014-04-01 135 1
65 2014-05-01 110 1
66 2014-06-01 116 1
67 2014-07-01 112 1
68 2014-08-01 114 1
69 2014-09-01 115 1
70 2014-10-01 162 1
71 2014-11-01 142 1
72 2014-12-01 128 1
73 2015-01-01 160 1
74 2015-02-01 130 1
75 2015-03-01 138 1
76 2015-04-01 142 1
77 2015-05-01 120 1
78 2015-06-01 122 1
79 2015-07-01 128 1
80 2015-08-01 133 1
81 2015-09-01 140 1
82 2015-10-01 139 1
83 2015-11-01 134 1
84 2015-12-01 142 1
85 2016-01-01 115 1
86 2016-02-01 120 1
87 2016-03-01 123 1
88 2016-04-01 145 1
89 2016-05-01 149 1
90 2016-06-01 153 1
91 2016-07-01 157 1
92 2016-08-01 165 1
93 2016-09-01 165 1
94 2016-10-01 160 1
95 2016-11-01 140 1
96 2016-12-01 110 1
97 2017-01-01 144 1
98 2017-02-01 134 1
99 2017-03-01 135 1
100 2017-04-01 148 1
101 2017-05-01 147 1
102 2017-06-01 144 1
103 2017-07-01 143 1
104 2017-08-01 147 1
105 2017-09-01 151 1
106 2017-10-01 159 1
107 2017-11-01 149 1
108 2017-12-01 143 1
109 2018-01-01 144 1
110 2018-02-01 135 1
111 2018-03-01 136 1
112 2018-04-01 148 1
113 2018-05-01 147 1
114 2018-06-01 145 1
115 2018-07-01 144 1
116 2018-08-01 148 1
117 2018-09-01 152 1
118 2018-10-01 160 1
119 2018-11-01 149 1
120 2018-12-01 142 1
ds y flag
1 2009-01-01 89 1
2 2009-02-01 76 1
3 2009-03-01 80 1
4 2009-04-01 81 1
5 2009-05-01 86 1
6 2009-06-01 75 1
Warning: package 'lubridate' was built under R version 4.0.3
Attaching package: 'lubridate'
The following objects are masked from 'package:base':
date, intersect, setdiff, union
Error in ts_split(tsData, sample.out = h1): could not find function "ts_split"
Error in ts_info(train): could not find function "ts_info"
Error in ts_info(test): could not find function "ts_info"
Warning: package 'forecast' was built under R version 4.0.3
This is forecast 8.13
Stackoverflow is a great place to get help on R issues:
http://stackoverflow.com/tags/forecasting+r.
Warning: package 'plotly' was built under R version 4.0.3
Loading required package: ggplot2
Warning: package 'ggplot2' was built under R version 4.0.3
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot
The following object is masked from 'package:stats':
filter
The following object is masked from 'package:graphics':
layout
Warning: package 'forecastHybrid' was built under R version 4.0.3
Loading required package: thief
Warning: package 'thief' was built under R version 4.0.3
Warning: package 'bsts' was built under R version 4.0.3
Loading required package: BoomSpikeSlab
Warning: package 'BoomSpikeSlab' was built under R version 4.0.3
Loading required package: Boom
Warning: package 'Boom' was built under R version 4.0.3
Loading required package: MASS
Attaching package: 'MASS'
The following object is masked from 'package:plotly':
select
Attaching package: 'Boom'
The following object is masked from 'package:stats':
rWishart
Attaching package: 'BoomSpikeSlab'
The following object is masked from 'package:stats':
knots
Loading required package: zoo
Warning: package 'zoo' was built under R version 4.0.3
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: xts
Warning: package 'xts' was built under R version 4.0.3
Attaching package: 'bsts'
The following object is masked from 'package:BoomSpikeSlab':
SuggestBurn
Error in library(tweet): there is no package called 'tweet'
ME RMSE MAE MPE MAPE MASE
Training set -0.1750222 11.82971 8.224938 -1.248665 7.412145 0.5051786
Test set -13.3563357 13.68902 13.356336 -9.181074 9.181074 0.8203508
ACF1 Theil's U
Training set 0.02278905 NA
Test set 0.23810980 2.065053
Error in test_forecast(forecast.obj = fc1, actual = tsData, test = test): could not find function "test_forecast"
ME RMSE MAE MPE MAPE MASE
Training set 1.0333618 12.478354 9.167721 -0.1348013 8.749278 0.5630846
Test set -0.8526215 6.483249 4.833333 -0.7789156 3.338880 0.2968650
ACF1 Theil's U
Training set -0.03252918 NA
Test set 0.47943286 1.009345
Error in test_forecast(forecast.obj = fc2, actual = tsData, test = test): could not find function "test_forecast"
ME RMSE MAE MPE MAPE MASE
Training set -1.447643e-15 12.97400 10.18544 -1.691944 9.974131 0.6255934
Test set -1.487731e+01 14.94414 14.87731 -10.262473 10.262473 0.9137698
ACF1 Theil's U
Training set 0.5278316 NA
Test set 0.5249287 2.229779
Error in test_forecast(forecast.obj = fc3, actual = tsData, test = test): could not find function "test_forecast"
Warning in predict.lm(predict_object, newdata = newdata, se.fit = TRUE, :
prediction from a rank-deficient fit may be misleading
Warning in predict.lm(predict_object, newdata = newdata, se.fit = TRUE, :
prediction from a rank-deficient fit may be misleading
ME RMSE MAE MPE MAPE MASE
Training set -1.447643e-15 12.97400 10.18544 -1.691944 9.974131 0.6255934
Test set -1.487731e+01 14.94414 14.87731 -10.262473 10.262473 0.9137698
ACF1 Theil's U
Training set 0.5278316 NA
Test set 0.5249287 2.229779
Error in test_forecast(forecast.obj = fc3a, actual = tsData, test = test): could not find function "test_forecast"
ME RMSE MAE MPE MAPE MASE
Training set 1.981239e-16 12.96265 10.12367 -1.677985 9.974215 0.6217993
Test set -1.322890e+01 13.32322 13.22890 -9.134283 9.134283 0.8125236
ACF1 Theil's U
Training set 0.5261371 NA
Test set 0.6117018 1.984434
Error in test_forecast(forecast.obj = fc3b, actual = tsData, test = test): could not find function "test_forecast"
Error in check_res(md3b): could not find function "check_res"
Error in (function (..., flatten = TRUE, functions = TRUE) : object 'USgas' not found
Error in plot_forecast(fc_final): could not find function "plot_forecast"
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2009 89 76 80 81 86 75 70 81 76 84 73 74
2010 86 74 78 79 84 73 69 79 76 83 74 75
2011 98 90 95 100 118 98 90 69 87 73 72 47
2012 88 73 82 93 99 102 105 112 115 118 121 123
2013 96 100 103 107 110 120 123 125 128 130 132 140
2014 126 137 105 135 110 116 112 114 115 162 142 128
2015 160 130 138 142 120 122 128 133 140 139 134 142
2016 115 120 123 145 149 153 157 165 165 160 140 110
2017 144 134 135 148 147 144 143 147 151 159 149 143
2018 144 135 136 148 147 145 144 148 152 160 149 142
Error in train_model(input = tsData, methods = methods, train_method = list(partitions = 4, : could not find function "train_model"
Error in train_model(input = tsData, methods = methods, train_method = list(partitions = 4, : could not find function "train_model"