Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data:
115.65 116.00 115.92 116.10 116.44 116.65 117.45 117.58 117.43 117.24 117.25 117.29 117.83 118.22 118.11 118.23 118.15 118.23 119.03 119.38 118.97 118.78 118.97 118.94 119.86 120.09 120.13 120.15 119.90 120.00 120.84 121.17 120.81 121.00 121.12 121.29 122.09 121.88 121.31 121.33 121.45 121.67 122.78 122.84 122.34 122.37 122.72 122.68 122.78 123.08 122.92 123.51 124.18 124.05 124.36 123.87 123.84 123.85 123.83 123.84 124.27 124.56 124.57 124.87 125.08 124.86 124.89 124.58 124.83 124.97 125.19 125.42 125.74 126.07 126.35 126.69 126.85 127.12 127.43 127.49 128.05 127.85 128.35 128.29 128.38 128.80 129.18 130.14 130.77 131.19 131.32 131.41 131.61 131.69 131.94 131.70 132.54 132.74 133.02 132.76 133.05 132.74 133.16 133.10 133.37 133.15 133.18 133.29 133.76 134.51 134.82 134.71 134.52 134.86 135.11 135.28 135.61 135.22 135.47 135.42 135.85 136.27 136.30 136.85 137.05 137.03 137.45 137.49 137.55 138.04 138.03 137.75 138.27 138.99 139.74 139.70 139.97 140.21 140.78 140.80 140.64 140.42 140.85 140.96 141.04 141.71 141.60 142.11 142.59 142.56 143.00 143.18 143.15 143.10 143.45 143.59 143.92 144.66 144.34 144.82 144.49 144.41 144.99 144.95 145.00 145.66 146.68 147.38 147.94 149.12 149.95 150.19 151.16 151.74 152.56 152.09 152.46 152.66 152.38 152.59 152.88 153.29 152.35 152.49 152.20 151.57 151.55 151.79 151.52 151.76 151.92 152.20 152.75 153.49 153.78 154.10 154.62 154.65 154.81 154.92 155.40 155.63 155.76
Type of Seasonality
additive
additive
multiplicative
Seasonal Period
12
12
1
2
3
4
5
6
7
8
9
10
11
12
Chart options
R Code
par2 <- as.numeric(par2) x <- ts(x,freq=par2) m <- decompose(x,type=par1) m$figure bitmap(file='test1.png') plot(m) dev.off() mylagmax <- length(x)/2 bitmap(file='test2.png') op <- par(mfrow = c(2,2)) acf(as.numeric(x),lag.max = mylagmax,main='Observed') acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend') acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal') acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random') par(op) dev.off() bitmap(file='test3.png') op <- par(mfrow = c(2,2)) spectrum(as.numeric(x),main='Observed') spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend') spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal') spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random') par(op) dev.off() bitmap(file='test4.png') op <- par(mfrow = c(2,2)) cpgram(as.numeric(x),main='Observed') cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend') cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal') cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random') par(op) dev.off() load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'t',header=TRUE) a<-table.element(a,'Observations',header=TRUE) a<-table.element(a,'Fit',header=TRUE) a<-table.element(a,'Trend',header=TRUE) a<-table.element(a,'Seasonal',header=TRUE) a<-table.element(a,'Random',header=TRUE) a<-table.row.end(a) for (i in 1:length(m$trend)) { a<-table.row.start(a) a<-table.element(a,i,header=TRUE) a<-table.element(a,x[i]) if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i]) a<-table.element(a,m$trend[i]) a<-table.element(a,m$seasonal[i]) a<-table.element(a,m$random[i]) a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation