Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_cross.wasp
Title produced by softwareCross Correlation Function
Date of computationThu, 22 Nov 2007 09:49:21 -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/2007/Nov/22/t11957496833a5x8nb88n98zas.htm/, Retrieved Thu, 02 May 2024 18:40:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=6073, Retrieved Thu, 02 May 2024 18:40:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 7, question 3, cross correlation matrix, duurzame, niet duurzame consumptiegoederen
Estimated Impact165
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Cross Correlation Function] [Workshop 7, quest...] [2007-11-22 16:49:21] [181c187d2008ac66a37ecc12859b08c5] [Current]
Feedback Forum

Post a new message
Dataseries X:
106,7
100,6
101,2
93,1
84,2
85,8
91,8
92,4
80,3
79,7
62,5
57,1
100,8
100,7
86,2
83,2
71,7
77,5
89,8
80,3
78,7
93,8
57,6
60,6
91
85,3
77,4
77,3
68,3
69,9
81,7
75,1
69,9
84
54,3
60
89,9
77
85,3
77,6
69,2
75,5
85,7
72,2
79,9
85,3
52,2
61,2
82,4
85,4
78,2
70,2
70,2
69,3
77,5
66,1
69
75,3
58,2
59,7
Dataseries Y:
112,7
118,4
108,1
105,4
114,6
106,9
115,9
109,8
101,8
114,2
110,8
108,4
127,5
128,6
116,6
127,4
105
108,3
125
111,6
106,5
130,3
115
116,1
134
126,5
125,8
136,4
114,9
110,9
125,5
116,8
116,8
125,5
104,2
115,1
132,8
123,3
124,8
122
117,4
117,9
137,4
114,6
124,7
129,6
109,4
120,9
134,9
136,3
133,2
127,2
122,7
120,5
137,8
119,1
124,3
134,3
121,7
125




Summary of compuational 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 compuational 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=6073&T=0

[TABLE]
[ROW][C]Summary of compuational 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=6073&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6073&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 compuational 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.220215728467449
-13-0.123010216792185
-120.340632248379609
-11-0.0651738258320483
-10-0.284903466647707
-90.0651141629038218
-8-0.292116374935997
-7-0.262386284280908
-60.126178832536365
-5-0.260229134345109
-4-0.433522610847518
-3-0.249822793419911
-2-0.506928303546475
-1-0.309141426527125
00.223535630688955
1-0.258628985779419
2-0.348730001640108
30.00929728294794684
4-0.382480463821283
5-0.254097511918298
60.136741032390292
7-0.218248678489586
8-0.219443600821421
9-0.090542181795263
10-0.402510383876587
11-0.126433924131795
120.255632796828593
13-0.119366101006334
14-0.082519088638202

\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.220215728467449 \tabularnewline
-13 & -0.123010216792185 \tabularnewline
-12 & 0.340632248379609 \tabularnewline
-11 & -0.0651738258320483 \tabularnewline
-10 & -0.284903466647707 \tabularnewline
-9 & 0.0651141629038218 \tabularnewline
-8 & -0.292116374935997 \tabularnewline
-7 & -0.262386284280908 \tabularnewline
-6 & 0.126178832536365 \tabularnewline
-5 & -0.260229134345109 \tabularnewline
-4 & -0.433522610847518 \tabularnewline
-3 & -0.249822793419911 \tabularnewline
-2 & -0.506928303546475 \tabularnewline
-1 & -0.309141426527125 \tabularnewline
0 & 0.223535630688955 \tabularnewline
1 & -0.258628985779419 \tabularnewline
2 & -0.348730001640108 \tabularnewline
3 & 0.00929728294794684 \tabularnewline
4 & -0.382480463821283 \tabularnewline
5 & -0.254097511918298 \tabularnewline
6 & 0.136741032390292 \tabularnewline
7 & -0.218248678489586 \tabularnewline
8 & -0.219443600821421 \tabularnewline
9 & -0.090542181795263 \tabularnewline
10 & -0.402510383876587 \tabularnewline
11 & -0.126433924131795 \tabularnewline
12 & 0.255632796828593 \tabularnewline
13 & -0.119366101006334 \tabularnewline
14 & -0.082519088638202 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6073&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.220215728467449[/C][/ROW]
[ROW][C]-13[/C][C]-0.123010216792185[/C][/ROW]
[ROW][C]-12[/C][C]0.340632248379609[/C][/ROW]
[ROW][C]-11[/C][C]-0.0651738258320483[/C][/ROW]
[ROW][C]-10[/C][C]-0.284903466647707[/C][/ROW]
[ROW][C]-9[/C][C]0.0651141629038218[/C][/ROW]
[ROW][C]-8[/C][C]-0.292116374935997[/C][/ROW]
[ROW][C]-7[/C][C]-0.262386284280908[/C][/ROW]
[ROW][C]-6[/C][C]0.126178832536365[/C][/ROW]
[ROW][C]-5[/C][C]-0.260229134345109[/C][/ROW]
[ROW][C]-4[/C][C]-0.433522610847518[/C][/ROW]
[ROW][C]-3[/C][C]-0.249822793419911[/C][/ROW]
[ROW][C]-2[/C][C]-0.506928303546475[/C][/ROW]
[ROW][C]-1[/C][C]-0.309141426527125[/C][/ROW]
[ROW][C]0[/C][C]0.223535630688955[/C][/ROW]
[ROW][C]1[/C][C]-0.258628985779419[/C][/ROW]
[ROW][C]2[/C][C]-0.348730001640108[/C][/ROW]
[ROW][C]3[/C][C]0.00929728294794684[/C][/ROW]
[ROW][C]4[/C][C]-0.382480463821283[/C][/ROW]
[ROW][C]5[/C][C]-0.254097511918298[/C][/ROW]
[ROW][C]6[/C][C]0.136741032390292[/C][/ROW]
[ROW][C]7[/C][C]-0.218248678489586[/C][/ROW]
[ROW][C]8[/C][C]-0.219443600821421[/C][/ROW]
[ROW][C]9[/C][C]-0.090542181795263[/C][/ROW]
[ROW][C]10[/C][C]-0.402510383876587[/C][/ROW]
[ROW][C]11[/C][C]-0.126433924131795[/C][/ROW]
[ROW][C]12[/C][C]0.255632796828593[/C][/ROW]
[ROW][C]13[/C][C]-0.119366101006334[/C][/ROW]
[ROW][C]14[/C][C]-0.082519088638202[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6073&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6073&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.220215728467449
-13-0.123010216792185
-120.340632248379609
-11-0.0651738258320483
-10-0.284903466647707
-90.0651141629038218
-8-0.292116374935997
-7-0.262386284280908
-60.126178832536365
-5-0.260229134345109
-4-0.433522610847518
-3-0.249822793419911
-2-0.506928303546475
-1-0.309141426527125
00.223535630688955
1-0.258628985779419
2-0.348730001640108
30.00929728294794684
4-0.382480463821283
5-0.254097511918298
60.136741032390292
7-0.218248678489586
8-0.219443600821421
9-0.090542181795263
10-0.402510383876587
11-0.126433924131795
120.255632796828593
13-0.119366101006334
14-0.082519088638202



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) x <- diff(y,lag=par4,difference=par7)
x
y
bitmap(file='test1.png')
(r <- ccf(x,y,main='Cross Correlation Function',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')