Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_cross.wasp
Title produced by softwareCross Correlation Function
Date of computationMon, 08 Dec 2008 12:45:22 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/08/t12287656310aepoiupcgks876.htm/, Retrieved Thu, 16 May 2024 21:52:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=30859, Retrieved Thu, 16 May 2024 21:52:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact175
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Univariate Data Series] [Airline data] [2007-10-18 09:58:47] [42daae401fd3def69a25014f2252b4c2]
F RMPD  [Cross Correlation Function] [Q7 - zonder trans...] [2008-12-01 20:04:13] [299afd6311e4c20059ea2f05c8dd029d]
F         [Cross Correlation Function] [Q9] [2008-12-01 20:34:09] [299afd6311e4c20059ea2f05c8dd029d]
-   P         [Cross Correlation Function] [Verbetering Q9] [2008-12-08 19:45:22] [5e2b1e7aa808f9f0d23fd35605d4968f] [Current]
Feedback Forum

Post a new message
Dataseries X:
12192.5
11268.8
9097.4
12639.8
13040.1
11687.3
11191.7
11391.9
11793.1
13933.2
12778.1
11810.3
13698.4
11956.6
10723.8
13938.9
13979.8
13807.4
12973.9
12509.8
12934.1
14908.3
13772.1
13012.6
14049.9
11816.5
11593.2
14466.2
13615.9
14733.9
13880.7
13527.5
13584
16170.2
13260.6
14741.9
15486.5
13154.5
12621.2
15031.6
15452.4
15428
13105.9
14716.8
14180
16202.2
14392.4
15140.6
15960.1
14351.3
13230.2
15202.1
17157.3
16159.1
13405.7
17224.7
17338.4
17370.6
18817.8
16593.2
17979.5
Dataseries Y:
10772.8
9987.7
8638.7
11063.7
11855.7
10684.5
11337.4
10478
11123.9
12909.3
11339.9
10462.2
12733.5
10519.2
10414.9
12476.8
12384.6
12266.7
12919.9
11497.3
12142
13919.4
12656.8
12034.1
13199.7
10881.3
11301.2
13643.9
12517
13981.1
14275.7
13435
13565.7
16216.3
12970
14079.9
14235
12213.4
12581
14130.4
14210.8
14378.5
13142.8
13714.7
13621.9
15379.8
13306.3
14391.2
14909.9
14025.4
12951.2
14344.3
16213.3
15544.5
14750.6
17292.7
17568.5
17930.8
18644.7
16694.8
17242.8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 1 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30859&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30859&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30859&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 time1 seconds
R Server'George Udny Yule' @ 72.249.76.132







Cross Correlation Function
ParameterValue
Box-Cox transformation parameter (lambda) of X series-0.1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series1
Seasonal Period (s)12
Box-Cox transformation parameter (lambda) of Y series-0.3
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series1
krho(Y[t],X[t+k])
-13-0.115632956271041
-120.0121339050908792
-11-0.0925991789023773
-10-0.202966951297274
-90.0411875720518571
-8-0.0704375257170998
-7-0.242014219395690
-60.0072817370172825
-5-0.0566028705938418
-4-0.033900723349961
-30.286496117870197
-20.207402314332974
-10.143729192915682
00.861679907123982
10.190904837883125
20.274630917957816
30.426925659389902
40.169683435999119
50.03583399688189
60.218878307560305
7-0.0800790194147572
80.000575793606316579
90.0679011716106506
10-0.228685608696943
11-0.232862446492123
12-0.132132157147047
13-0.341862371245949

\begin{tabular}{lllllllll}
\hline
Cross Correlation Function \tabularnewline
Parameter & Value \tabularnewline
Box-Cox transformation parameter (lambda) of X series & -0.1 \tabularnewline
Degree of non-seasonal differencing (d) of X series & 0 \tabularnewline
Degree of seasonal differencing (D) of X series & 1 \tabularnewline
Seasonal Period (s) & 12 \tabularnewline
Box-Cox transformation parameter (lambda) of Y series & -0.3 \tabularnewline
Degree of non-seasonal differencing (d) of Y series & 0 \tabularnewline
Degree of seasonal differencing (D) of Y series & 1 \tabularnewline
k & rho(Y[t],X[t+k]) \tabularnewline
-13 & -0.115632956271041 \tabularnewline
-12 & 0.0121339050908792 \tabularnewline
-11 & -0.0925991789023773 \tabularnewline
-10 & -0.202966951297274 \tabularnewline
-9 & 0.0411875720518571 \tabularnewline
-8 & -0.0704375257170998 \tabularnewline
-7 & -0.242014219395690 \tabularnewline
-6 & 0.0072817370172825 \tabularnewline
-5 & -0.0566028705938418 \tabularnewline
-4 & -0.033900723349961 \tabularnewline
-3 & 0.286496117870197 \tabularnewline
-2 & 0.207402314332974 \tabularnewline
-1 & 0.143729192915682 \tabularnewline
0 & 0.861679907123982 \tabularnewline
1 & 0.190904837883125 \tabularnewline
2 & 0.274630917957816 \tabularnewline
3 & 0.426925659389902 \tabularnewline
4 & 0.169683435999119 \tabularnewline
5 & 0.03583399688189 \tabularnewline
6 & 0.218878307560305 \tabularnewline
7 & -0.0800790194147572 \tabularnewline
8 & 0.000575793606316579 \tabularnewline
9 & 0.0679011716106506 \tabularnewline
10 & -0.228685608696943 \tabularnewline
11 & -0.232862446492123 \tabularnewline
12 & -0.132132157147047 \tabularnewline
13 & -0.341862371245949 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30859&T=1

[TABLE]
[ROW][C]Cross Correlation Function[/C][/ROW]
[ROW][C]Parameter[/C][C]Value[/C][/ROW]
[ROW][C]Box-Cox transformation parameter (lambda) of X series[/C][C]-0.1[/C][/ROW]
[ROW][C]Degree of non-seasonal differencing (d) of X series[/C][C]0[/C][/ROW]
[ROW][C]Degree of seasonal differencing (D) of X series[/C][C]1[/C][/ROW]
[ROW][C]Seasonal Period (s)[/C][C]12[/C][/ROW]
[ROW][C]Box-Cox transformation parameter (lambda) of Y series[/C][C]-0.3[/C][/ROW]
[ROW][C]Degree of non-seasonal differencing (d) of Y series[/C][C]0[/C][/ROW]
[ROW][C]Degree of seasonal differencing (D) of Y series[/C][C]1[/C][/ROW]
[ROW][C]k[/C][C]rho(Y[t],X[t+k])[/C][/ROW]
[ROW][C]-13[/C][C]-0.115632956271041[/C][/ROW]
[ROW][C]-12[/C][C]0.0121339050908792[/C][/ROW]
[ROW][C]-11[/C][C]-0.0925991789023773[/C][/ROW]
[ROW][C]-10[/C][C]-0.202966951297274[/C][/ROW]
[ROW][C]-9[/C][C]0.0411875720518571[/C][/ROW]
[ROW][C]-8[/C][C]-0.0704375257170998[/C][/ROW]
[ROW][C]-7[/C][C]-0.242014219395690[/C][/ROW]
[ROW][C]-6[/C][C]0.0072817370172825[/C][/ROW]
[ROW][C]-5[/C][C]-0.0566028705938418[/C][/ROW]
[ROW][C]-4[/C][C]-0.033900723349961[/C][/ROW]
[ROW][C]-3[/C][C]0.286496117870197[/C][/ROW]
[ROW][C]-2[/C][C]0.207402314332974[/C][/ROW]
[ROW][C]-1[/C][C]0.143729192915682[/C][/ROW]
[ROW][C]0[/C][C]0.861679907123982[/C][/ROW]
[ROW][C]1[/C][C]0.190904837883125[/C][/ROW]
[ROW][C]2[/C][C]0.274630917957816[/C][/ROW]
[ROW][C]3[/C][C]0.426925659389902[/C][/ROW]
[ROW][C]4[/C][C]0.169683435999119[/C][/ROW]
[ROW][C]5[/C][C]0.03583399688189[/C][/ROW]
[ROW][C]6[/C][C]0.218878307560305[/C][/ROW]
[ROW][C]7[/C][C]-0.0800790194147572[/C][/ROW]
[ROW][C]8[/C][C]0.000575793606316579[/C][/ROW]
[ROW][C]9[/C][C]0.0679011716106506[/C][/ROW]
[ROW][C]10[/C][C]-0.228685608696943[/C][/ROW]
[ROW][C]11[/C][C]-0.232862446492123[/C][/ROW]
[ROW][C]12[/C][C]-0.132132157147047[/C][/ROW]
[ROW][C]13[/C][C]-0.341862371245949[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30859&T=1

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

As an alternative you can also use a QR Code:  

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

Cross Correlation Function
ParameterValue
Box-Cox transformation parameter (lambda) of X series-0.1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series1
Seasonal Period (s)12
Box-Cox transformation parameter (lambda) of Y series-0.3
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series1
krho(Y[t],X[t+k])
-13-0.115632956271041
-120.0121339050908792
-11-0.0925991789023773
-10-0.202966951297274
-90.0411875720518571
-8-0.0704375257170998
-7-0.242014219395690
-60.0072817370172825
-5-0.0566028705938418
-4-0.033900723349961
-30.286496117870197
-20.207402314332974
-10.143729192915682
00.861679907123982
10.190904837883125
20.274630917957816
30.426925659389902
40.169683435999119
50.03583399688189
60.218878307560305
7-0.0800790194147572
80.000575793606316579
90.0679011716106506
10-0.228685608696943
11-0.232862446492123
12-0.132132157147047
13-0.341862371245949



Parameters (Session):
par1 = -0.1 ; par2 = 0 ; par3 = 1 ; par4 = 12 ; par5 = -0.3 ; par6 = 0 ; par7 = 1 ;
Parameters (R input):
par1 = -0.1 ; par2 = 0 ; par3 = 1 ; par4 = 12 ; par5 = -0.3 ; par6 = 0 ; par7 = 1 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
par6 <- as.numeric(par6)
par7 <- as.numeric(par7)
if (par1 == 0) {
x <- log(x)
} else {
x <- (x ^ par1 - 1) / par1
}
if (par5 == 0) {
y <- log(y)
} else {
y <- (y ^ par5 - 1) / par5
}
if (par2 > 0) x <- diff(x,lag=1,difference=par2)
if (par6 > 0) y <- diff(y,lag=1,difference=par6)
if (par3 > 0) x <- diff(x,lag=par4,difference=par3)
if (par7 > 0) y <- diff(y,lag=par4,difference=par7)
x
y
bitmap(file='test1.png')
(r <- ccf(x,y,main='Cross Correlation Function',ylab='CCF',xlab='Lag (k)'))
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Cross Correlation Function',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,'Box-Cox transformation parameter (lambda) of X series',header=TRUE)
a<-table.element(a,par1)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of non-seasonal differencing (d) of X series',header=TRUE)
a<-table.element(a,par2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of seasonal differencing (D) of X series',header=TRUE)
a<-table.element(a,par3)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal Period (s)',header=TRUE)
a<-table.element(a,par4)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Box-Cox transformation parameter (lambda) of Y series',header=TRUE)
a<-table.element(a,par5)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of non-seasonal differencing (d) of Y series',header=TRUE)
a<-table.element(a,par6)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of seasonal differencing (D) of Y series',header=TRUE)
a<-table.element(a,par7)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'k',header=TRUE)
a<-table.element(a,'rho(Y[t],X[t+k])',header=TRUE)
a<-table.row.end(a)
mylength <- length(r$acf)
myhalf <- floor((mylength-1)/2)
for (i in 1:mylength) {
a<-table.row.start(a)
a<-table.element(a,i-myhalf-1,header=TRUE)
a<-table.element(a,r$acf[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')