Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationSun, 14 Dec 2014 10:08:01 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/14/t1418551706tevbw4r8wyb1ccd.htm/, Retrieved Thu, 31 Oct 2024 23:36:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=267384, Retrieved Thu, 31 Oct 2024 23:36:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact100
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Spectral Analysis] [KUL paper spectra...] [2014-12-13 15:24:43] [bb1b6762b7e5624d262776d3f7139d34]
- R     [Spectral Analysis] [KUL paper spectra...] [2014-12-13 15:25:44] [bb1b6762b7e5624d262776d3f7139d34]
- RMP       [Exponential Smoothing] [KUL paper ES2 man] [2014-12-14 10:08:01] [8568a324fefbb8dbb43f697bfa8d1be6] [Current]
- R           [Exponential Smoothing] [KUL paper ES2 man 2] [2014-12-14 10:08:58] [bb1b6762b7e5624d262776d3f7139d34]
Feedback Forum

Post a new message
Dataseries X:
NA
6
NA
1
1
5.5
NA
6.5
4.5
2
5
0.5
5
NA
NA
NA
5.5
NA
3
NA
0.5
6.5
NA
7.5
5.5
4
7.5
NA
4
NA
NA
NA
3.5
2.5
4.5
4.5
NA
6
2.5
NA
0
5
6.5
5
6
NA
5.5
1
NA
6
5
1
5
6.5
7
4.5
NA
8.5
NA
7.5
3.5
NA
NA
9
NA
3.5
NA
6.5
7.5
NA
NA
NA
NA
7.5
NA
NA
6.5
NA
NA
1.5
NA
NA
NA
0
NA
5.5
5
NA
NA
NA
7
0
4.5
NA
1.5
NA
2.5
5.5
8
1
5
NA
3
3
8
NA
NA
NA
NA
NA
NA
5.5
0.5
7.5
9
9.5
NA
7
8
NA
7
NA
NA
9.5
4
6
8
5.5
9.5
7.5
7
NA
8
7
7
6
10
2.5
NA
8
6
8.5
6
9
NA
NA
5.5
NA
NA
9
NA
8.5
9
NA
9
7.5
10
NA
NA
NA
NA
8.5
NA
10
NA
6.5
NA
8.5
NA
NA
8
NA
7
7.5
7.5
9.5
6
NA
7
NA
NA
NA
10
NA
3.5
NA
NA
NA
NA
6.5
6.5
8.5
4
NA
NA
8.5
NA
NA
NA
NA
10
8
NA
NA
5
NA
4.5
8.5
NA
8.5
7.5
7.5
NA
NA
NA
5.5
8.5
9.5
7
NA
NA
NA
6.5
6.5
NA
NA
NA
10
10
NA
NA
NA
7.5
4.5
4.5
0.5
NA
4.5
5.5
5
NA
NA
8
NA
6.5
8
NA
5.5
NA
5
3.5
NA
9
NA
5
NA
3
NA
NA
0.5
6.5
NA
4.5
8
NA
7.5
NA
NA
9.5
6.5
NA
6
NA
NA
8
NA
NA




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'George Udny Yule' @ yule.wessa.net
R Engine error message
Error in hw(p[1L], p[2L], gamma) : 
  NA/NaN/Inf in foreign function call (arg 1)
Calls: HoltWinters -> optim ->  -> fn -> hw
Execution halted

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 0 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
R Engine error message & 
Error in hw(p[1L], p[2L], gamma) : 
  NA/NaN/Inf in foreign function call (arg 1)
Calls: HoltWinters -> optim ->  -> fn -> hw
Execution halted
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=267384&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]0 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[ROW][C]R Engine error message[/C][C]
Error in hw(p[1L], p[2L], gamma) : 
  NA/NaN/Inf in foreign function call (arg 1)
Calls: HoltWinters -> optim ->  -> fn -> hw
Execution halted
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=267384&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=267384&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'George Udny Yule' @ yule.wessa.net
R Engine error message
Error in hw(p[1L], p[2L], gamma) : 
  NA/NaN/Inf in foreign function call (arg 1)
Calls: HoltWinters -> optim ->  -> fn -> hw
Execution halted



Parameters (Session):
par1 = 1 ; par2 = Double ; par3 = additive ;
Parameters (R input):
par1 = 1 ; par2 = Double ; par3 = additive ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')