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 computationThu, 10 Dec 2009 10:40:17 -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/2009/Dec/10/t1260466916vetb97lfi664zku.htm/, Retrieved Thu, 18 Apr 2024 20:39:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65639, Retrieved Thu, 18 Apr 2024 20:39:31 +0000
QR Codes:

Original text written by user:Paper: Cross Correlation Function zonder differentiatie
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact143
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Granger Causality] [] [2009-12-07 09:26:51] [b98453cac15ba1066b407e146608df68]
- RMPD    [Cross Correlation Function] [Paper: Cross Corr...] [2009-12-10 17:40:17] [7a39e26d7a09dd77604df90cb29f8d39] [Current]
-   P       [Cross Correlation Function] [Paper: Cross corr...] [2009-12-10 17:49:58] [3c8b83428ce260cd44df892bb7619588]
-             [Cross Correlation Function] [Cross correlation...] [2009-12-17 17:22:43] [1433a524809eda02c3198b3ae6eebb69]
-           [Cross Correlation Function] [Cross Correlation...] [2009-12-17 17:21:28] [1433a524809eda02c3198b3ae6eebb69]
Feedback Forum

Post a new message
Dataseries X:
0.527
0.472
0.000
0.052
0.313
0.364
0.363
-0.155
0.052
0.568
0.668
1.378
0.252
-0.402
-0.050
0.555
0.050
0.150
0.450
0.299
0.199
0.496
0.444
-0.393
-0.444
0.198
0.494
0.133
0.388
0.484
0.278
0.369
0.165
0.155
0.087
0.414
0.360
0.975
0.270
0.359
0.169
0.381
0.154
0.486
0.925
0.728
-0.014
0.046
-0.819
-1.674
-0.788
0.279
0.396
-0.141
-0.019
0.099
0.742
0.005
0.448
Dataseries Y:
0.7461
0.7775
0.7790
0.7744
0.7905
0.7719
0.7811
0.7557
0.7637
0.7595
0.7471
0.7615
0.7487
0.7389
0.7337
0.7510
0.7382
0.7159
0.7542
0.7636
0.7433
0.7658
0.7627
0.7480
0.7692
0.7850
0.7913
0.7720
0.7880
0.8070
0.8268
0.8244
0.8487
0.8572
0.8214
0.8827
0.9216
0.8865
0.8816
0.8884
0.9466
0.9180
0.9337
0.9559
0.9626
0.9434
0.8639
0.7996
0.6680
0.6572
0.6928
0.6438
0.6454
0.6873
0.7265
0.7912
0.8114
0.8281
0.8393




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65639&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65639&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65639&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'Gwilym Jenkins' @ 72.249.127.135







Cross Correlation Function
ParameterValue
Box-Cox transformation parameter (lambda) of X series1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series0
Seasonal Period (s)12
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series0
krho(Y[t],X[t+k])
-14-0.0322519751698984
-13-0.0880047126495511
-12-0.122962704376887
-11-0.08246827303282
-10-0.064242399163168
-9-0.128280826338116
-8-0.112639104622952
-7-0.0475290665669814
-60.0176008980522617
-50.112533236538994
-40.229914692584516
-30.325278422984309
-20.356499718018626
-10.386593279830058
00.427903059737979
10.347795148547843
20.146662674008181
3-0.0472477374393098
4-0.174619743620211
5-0.226967819566347
6-0.236714160114840
7-0.216252678947898
8-0.249152694360936
9-0.254790356378027
10-0.240027928186681
11-0.186594572780471
12-0.176522078769344
13-0.190607511038966
14-0.163142689418874

\begin{tabular}{lllllllll}
\hline
Cross Correlation Function \tabularnewline
Parameter & Value \tabularnewline
Box-Cox transformation parameter (lambda) of X series & 1 \tabularnewline
Degree of non-seasonal differencing (d) of X series & 0 \tabularnewline
Degree of seasonal differencing (D) of X series & 0 \tabularnewline
Seasonal Period (s) & 12 \tabularnewline
Box-Cox transformation parameter (lambda) of Y series & 1 \tabularnewline
Degree of non-seasonal differencing (d) of Y series & 0 \tabularnewline
Degree of seasonal differencing (D) of Y series & 0 \tabularnewline
k & rho(Y[t],X[t+k]) \tabularnewline
-14 & -0.0322519751698984 \tabularnewline
-13 & -0.0880047126495511 \tabularnewline
-12 & -0.122962704376887 \tabularnewline
-11 & -0.08246827303282 \tabularnewline
-10 & -0.064242399163168 \tabularnewline
-9 & -0.128280826338116 \tabularnewline
-8 & -0.112639104622952 \tabularnewline
-7 & -0.0475290665669814 \tabularnewline
-6 & 0.0176008980522617 \tabularnewline
-5 & 0.112533236538994 \tabularnewline
-4 & 0.229914692584516 \tabularnewline
-3 & 0.325278422984309 \tabularnewline
-2 & 0.356499718018626 \tabularnewline
-1 & 0.386593279830058 \tabularnewline
0 & 0.427903059737979 \tabularnewline
1 & 0.347795148547843 \tabularnewline
2 & 0.146662674008181 \tabularnewline
3 & -0.0472477374393098 \tabularnewline
4 & -0.174619743620211 \tabularnewline
5 & -0.226967819566347 \tabularnewline
6 & -0.236714160114840 \tabularnewline
7 & -0.216252678947898 \tabularnewline
8 & -0.249152694360936 \tabularnewline
9 & -0.254790356378027 \tabularnewline
10 & -0.240027928186681 \tabularnewline
11 & -0.186594572780471 \tabularnewline
12 & -0.176522078769344 \tabularnewline
13 & -0.190607511038966 \tabularnewline
14 & -0.163142689418874 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65639&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]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]0[/C][/ROW]
[ROW][C]Seasonal Period (s)[/C][C]12[/C][/ROW]
[ROW][C]Box-Cox transformation parameter (lambda) of Y series[/C][C]1[/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]0[/C][/ROW]
[ROW][C]k[/C][C]rho(Y[t],X[t+k])[/C][/ROW]
[ROW][C]-14[/C][C]-0.0322519751698984[/C][/ROW]
[ROW][C]-13[/C][C]-0.0880047126495511[/C][/ROW]
[ROW][C]-12[/C][C]-0.122962704376887[/C][/ROW]
[ROW][C]-11[/C][C]-0.08246827303282[/C][/ROW]
[ROW][C]-10[/C][C]-0.064242399163168[/C][/ROW]
[ROW][C]-9[/C][C]-0.128280826338116[/C][/ROW]
[ROW][C]-8[/C][C]-0.112639104622952[/C][/ROW]
[ROW][C]-7[/C][C]-0.0475290665669814[/C][/ROW]
[ROW][C]-6[/C][C]0.0176008980522617[/C][/ROW]
[ROW][C]-5[/C][C]0.112533236538994[/C][/ROW]
[ROW][C]-4[/C][C]0.229914692584516[/C][/ROW]
[ROW][C]-3[/C][C]0.325278422984309[/C][/ROW]
[ROW][C]-2[/C][C]0.356499718018626[/C][/ROW]
[ROW][C]-1[/C][C]0.386593279830058[/C][/ROW]
[ROW][C]0[/C][C]0.427903059737979[/C][/ROW]
[ROW][C]1[/C][C]0.347795148547843[/C][/ROW]
[ROW][C]2[/C][C]0.146662674008181[/C][/ROW]
[ROW][C]3[/C][C]-0.0472477374393098[/C][/ROW]
[ROW][C]4[/C][C]-0.174619743620211[/C][/ROW]
[ROW][C]5[/C][C]-0.226967819566347[/C][/ROW]
[ROW][C]6[/C][C]-0.236714160114840[/C][/ROW]
[ROW][C]7[/C][C]-0.216252678947898[/C][/ROW]
[ROW][C]8[/C][C]-0.249152694360936[/C][/ROW]
[ROW][C]9[/C][C]-0.254790356378027[/C][/ROW]
[ROW][C]10[/C][C]-0.240027928186681[/C][/ROW]
[ROW][C]11[/C][C]-0.186594572780471[/C][/ROW]
[ROW][C]12[/C][C]-0.176522078769344[/C][/ROW]
[ROW][C]13[/C][C]-0.190607511038966[/C][/ROW]
[ROW][C]14[/C][C]-0.163142689418874[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65639&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65639&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 series1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series0
Seasonal Period (s)12
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series0
krho(Y[t],X[t+k])
-14-0.0322519751698984
-13-0.0880047126495511
-12-0.122962704376887
-11-0.08246827303282
-10-0.064242399163168
-9-0.128280826338116
-8-0.112639104622952
-7-0.0475290665669814
-60.0176008980522617
-50.112533236538994
-40.229914692584516
-30.325278422984309
-20.356499718018626
-10.386593279830058
00.427903059737979
10.347795148547843
20.146662674008181
3-0.0472477374393098
4-0.174619743620211
5-0.226967819566347
6-0.236714160114840
7-0.216252678947898
8-0.249152694360936
9-0.254790356378027
10-0.240027928186681
11-0.186594572780471
12-0.176522078769344
13-0.190607511038966
14-0.163142689418874



Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ; par5 = 1 ; par6 = 0 ; par7 = 0 ;
Parameters (R input):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ; par5 = 1 ; par6 = 0 ; par7 = 0 ;
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')