Home » date » 2007 » Nov » 29 » attachments

workshop3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 09:16:07 -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/29/t1196352322dkdcjpjv06s3iol.htm/, Retrieved Thu, 29 Nov 2007 17:05:22 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
540 522 526 527 516 503 489 479 475 524 552 532 511 492 492 493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0110.2470
10.2726642.7940.003095
2-0.166103-1.70210.954148
3-0.30185-3.0930.998731
4-0.286593-2.93670.997962
50.0237090.24290.404262
60.1736161.7790.039064
70.0394180.40390.34355
8-0.283144-2.90140.997736
9-0.288364-2.95490.998069
10-0.165673-1.69760.953732
110.2502572.56440.005875
120.8073668.2730
130.2294892.35160.01028
14-0.115106-1.17950.879564
15-0.283846-2.90860.997784
16-0.270592-2.77270.996711
170.0057820.05930.476432
180.1418281.45330.07456
190.0367270.37630.35371
20-0.256722-2.63060.995098
21-0.241313-2.47270.992493
22-0.139715-1.43170.922393
230.2373662.43230.008348
240.6785556.95310
250.1653591.69440.046575
26-0.112294-1.15070.87376
27-0.255178-2.61480.994879
28-0.245925-2.520.993379
290.003780.03870.48459
300.1062791.0890.139317
310.0202730.20770.417917
32-0.240523-2.46460.992331
33-0.223276-2.28790.987926
34-0.140618-1.44090.923707
350.2188572.24260.013511
360.5836065.98020
370.1184761.2140.113732
38-0.10491-1.0750.857583
39-0.228105-2.33740.989342
40-0.197384-2.02260.977171
410.0001050.00110.49957
420.096390.98770.162784
430.0147580.15120.440044
44-0.222392-2.27880.98765
45-0.188965-1.93630.972241
46-0.122314-1.25330.893567
470.17571.80040.037335


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2726642.7940.003095
1-0.259761-2.66180.995502
2-0.201539-2.06520.979315
3-0.211812-2.17040.983886
40.0755240.77390.220366
50.0106210.10880.456772
6-0.121591-1.24590.892219
7-0.347468-3.56050.999721
8-0.157981-1.61880.945757
9-0.227937-2.33570.989295
100.1397991.43250.077483
110.6894497.06480
12-0.149209-1.52890.935357
130.1447791.48350.070462
14-0.016783-0.1720.568104
150.014220.14570.442214
16-0.039571-0.40550.657026
17-0.081819-0.83840.798144
18-0.019951-0.20440.580795
19-0.007619-0.07810.53104
200.0471380.4830.315044
210.0215780.22110.412719
220.0284620.29170.385564
230.0784790.80420.211557
24-0.125628-1.28730.899591
25-0.046278-0.47420.681832
260.0104380.1070.457514
27-0.053335-0.54650.707066
280.0184490.1890.425213
29-0.079455-0.81420.791304
300.0014830.01520.493951
31-0.030588-0.31340.622714
32-0.089017-0.91220.818111
33-0.092757-0.95050.827974
34-0.053982-0.55320.709333
350.003810.0390.484467
36-0.075346-0.77210.779096
37-0.029251-0.29970.617515
380.0055420.05680.477409
390.039780.40760.342188
40-0.067705-0.69380.75532
410.0161060.1650.434614
42-0.047227-0.48390.685281
43-0.000821-0.00840.503348
44-0.00125-0.01280.505099
45-0.00745-0.07630.530355
46-0.099225-1.01680.844195
47-0.02762-0.2830.611141
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352322dkdcjpjv06s3iol/1whbf1196352962.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352322dkdcjpjv06s3iol/1whbf1196352962.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352322dkdcjpjv06s3iol/21a751196352962.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352322dkdcjpjv06s3iol/21a751196352962.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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