Home » date » 2007 » Nov » 25 » attachments

workshop 7Q5

R Software Module: rwasp_cross.wasp (opens new window with default values)
Title produced by software: Cross Correlation Function
Date of computation: Sun, 25 Nov 2007 11:04:51 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/25/t1196013450ywz2eso9xxbxuhi.htm/, Retrieved Sun, 25 Nov 2007 18:57:31 +0100
 
User-defined keywords:
cross correlation
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.6 96.1 110 108.2 106.9 117.2 105.2 106.3 95.9 107.5 113 111.4 95.5 90.3 110.8 107.1 101.4 112.9 98.5 100.1 93.4 104.4 101.8 107.9 91.3 86.6 111.4 98.4 102.2 103 95.8 96 95.7 106.4 112 116.2 93.9 100.5 112.5 101.2 107.8 114.3 99.6 98.6 93.6 99.6 113.1 110.7 88.1 93.1 107.4 99.5 105.6 108.3 99.2 99.3 107.1 106.9 115.4 99 100.1 96.2 96.9 96.2 91 99 99 107.2 110.8 111.1 104.6 94.3 90.7 88.8 90.9 90.5 95.5 103.1 100.6 103.1
 
Dataseries Y:
» Textbox « » Textfile « » CSV «
115.9 112.9 126.3 116.8 112 129.7 113.6 115.7 119.5 125.8 129.6 128 112.8 101.6 123.9 118.8 109.1 130.6 112.4 111 116.2 119.8 117.2 127.3 107.7 97.5 120.1 110.6 111.3 119.8 105.5 108.7 128.7 119.5 121.1 128.4 108.8 107.5 125.6 102.9 107.5 120.4 104.3 100.6 121.9 112.7 124.9 123.9 102.2 104.9 109.8 98.9 107.3 112.6 104 110.6 100.8 103.8 117 108.4 95.5 96.9 103.9 101.1 100.6 104.3 98 99.5 97.4 105.6 117.5 107.4 97.8 91.5 107.7 100.1 96.6 106.8 98 98.6
 
Text written by user:
 
Output produced by software:


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])
-16-0.0949036323807035
-150.0244495962296422
-14-0.100073335785255
-130.0250457800472754
-120.436910351606634
-110.00988137256266165
-10-0.204153871452883
-90.0163820823857289
-8-0.0838651402376216
-70.0716124042006511
-60.293395647881458
-50.119749271209492
-40.0399189158914294
-30.208359812754977
-2-0.0217236949071002
-10.192419199243157
00.604664328209351
10.0788012723171934
20.0250403647959459
30.146462960407287
4-0.0430434545938679
50.168763695938089
60.290276400496628
70.0504585721979536
80.0458566978802136
90.181044296189260
10-0.118406472823555
110.131636135333294
120.401784790241174
13-0.0262368561627115
140.0245254841084851
150.00988659604286464
16-0.134748297622974
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196013450ywz2eso9xxbxuhi/1421u1196013890.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196013450ywz2eso9xxbxuhi/1421u1196013890.ps (open in new window)


 
Parameters:
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')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume 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 we 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.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by