::Free Statistics and Forecasting Software::

v1.1.22-r6
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline | Secure website (SSL)
 
 
This software module is powered by R

:: Cross Correlation Function - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the Cross Correlation Function for any univariate time series.

Click here to edit the underlying code of this R Module.

Enter (or paste) your data delimited by hard returns.

Send output to:
Data X:
 
Data Y:
 
Sample Range:
(leave blank to include all observations)
From:
To:
Box-Cox transformation parameter (X series) 
Degree (d) of non-seasonal differencing (X series) 
Degree (D) of seasonal differencing (X series) 
Seasonal Period 
Box-Cox transformation parameter (Y series) 
Degree (d) of non-seasonal differencing (Y series) 
Degree (D) of seasonal differencing (Y series) 
Chart options
Width:
Height:

Click here to edit the underlying code of this R Module.






Cite this software as:
Wessa P., (2008), Cross Correlation Function (v1.0.6) in Free Statistics Software (v1.1.22-r6), Office for Research Development and Education, URL http://www.wessa.net/rwasp_cross.wasp/
The R code is based on :
Borghers, E, and P. Wessa, Statistics - Econometrics - Forecasting, Office for Research Development and Education, http://www.xycoon.com/

Source code of R module
1par1 <- as.numeric(par1)
2par2 <- as.numeric(par2)
3par3 <- as.numeric(par3)
4par4 <- as.numeric(par4)
5par5 <- as.numeric(par5)
6par6 <- as.numeric(par6)
7par7 <- as.numeric(par7)
8if (par1 == 0) {
9x <- log(x)
10} else {
11x <- (x ^ par1 - 1) / par1
12}
13if (par5 == 0) {
14y <- log(y)
15} else {
16y <- (y ^ par5 - 1) / par5
17}
18if (par2 > 0) x <- diff(x,lag=1,difference=par2)
19if (par6 > 0) y <- diff(y,lag=1,difference=par6)
20if (par3 > 0) x <- diff(x,lag=par4,difference=par3)
21if (par7 > 0) x <- diff(y,lag=par4,difference=par7)
22x
23y
24bitmap(file="test1.png")
25(r <- ccf(x,y,main="Cross Correlation Function",ylab="CCF",xlab="Lag (k)"))
26dev.off()
27load(file="createtable")
28a<-table.start()
29a<-table.row.start(a)
30a<-table.element(a,"Cross Correlation Function",2,TRUE)
31a<-table.row.end(a)
32a<-table.row.start(a)
33a<-table.element(a,"Parameter",header=TRUE)
34a<-table.element(a,"Value",header=TRUE)
35a<-table.row.end(a)
36a<-table.row.start(a)
37a<-table.element(a,"Box-Cox transformation parameter (lambda) of X series",header=TRUE)
38a<-table.element(a,par1)
39a<-table.row.end(a)
40a<-table.row.start(a)
41a<-table.element(a,"Degree of non-seasonal differencing (d) of X series",header=TRUE)
42a<-table.element(a,par2)
43a<-table.row.end(a)
44a<-table.row.start(a)
45a<-table.element(a,"Degree of seasonal differencing (D) of X series",header=TRUE)
46a<-table.element(a,par3)
47a<-table.row.end(a)
48a<-table.row.start(a)
49a<-table.element(a,"Seasonal Period (s)",header=TRUE)
50a<-table.element(a,par4)
51a<-table.row.end(a)
52a<-table.row.start(a)
53a<-table.element(a,"Box-Cox transformation parameter (lambda) of Y series",header=TRUE)
54a<-table.element(a,par5)
55a<-table.row.end(a)
56a<-table.row.start(a)
57a<-table.element(a,"Degree of non-seasonal differencing (d) of Y series",header=TRUE)
58a<-table.element(a,par6)
59a<-table.row.end(a)
60a<-table.row.start(a)
61a<-table.element(a,"Degree of seasonal differencing (D) of Y series",header=TRUE)
62a<-table.element(a,par7)
63a<-table.row.end(a)
64a<-table.row.start(a)
65a<-table.element(a,"k",header=TRUE)
66a<-table.element(a,"rho(Y[t],X[t+k])",header=TRUE)
67a<-table.row.end(a)
68mylength <- length(r$acf)
69myhalf <- floor((mylength-1)/2)
70for (i in 1:mylength) {
71a<-table.row.start(a)
72a<-table.element(a,i-myhalf-1,header=TRUE)
73a<-table.element(a,r$acf[i])
74a<-table.row.end(a)
75}
76a<-table.end(a)
77table.save(a,file="mytable.tab")
Delete history
Server DateModuleCommand
Sun, 18 May 2008 09:26:50 -0600Start of session-

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments about our site?
Do you have any suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.22-r6, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.22-r6
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Computations Archive
Search Computations
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net