Home » date » 2007 » Dec » 01 » attachments

paper auto 7

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 01 Dec 2007 05:38:53 -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/Dec/01/t1196512078zf7ntvx8v6rwhds.htm/, Retrieved Sat, 01 Dec 2007 13:28:01 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
88,8 93,4 92,6 90,7 81,6 84,1 88,1 85,3 82,9 84,8 71,2 68,9 94,3 97,6 85,6 91,9 75,8 79,8 99 88,5 86,7 97,9 94,3 72,9 91,8 93,2 86,5 98,9 77,2 79,4 90,4 81,4 85,8 103,6 73,6 75,7 99,2 88,7 94,6 98,7 84,2 87,7 103,3 88,2 93,4 106,3 73,1 78,6 101,6 101,4 98,5 99 89,5 83,5 97,4 87,8 90,4 97,1 79,4 85
 
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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.92820
10.2211861.53240.065992
20.0272620.18890.425492
30.142090.98440.16492
4-0.036928-0.25580.600418
5-0.04521-0.31320.622266
6-0.041552-0.28790.612662
7-0.132939-0.9210.81918
8-0.246302-1.70640.952804
9-0.004763-0.0330.513094
10-0.122635-0.84960.800129
11-0.093363-0.64680.739591
12-0.364253-2.52360.99251
13-0.245037-1.69770.951977
140.0245030.16980.432956
15-0.126268-0.87480.806982
16-0.04049-0.28050.609859
170.0681340.4720.319517
180.0097550.06760.473198
19-0.009928-0.06880.527276
200.2940272.03710.023588
210.0664740.46050.323603
220.116220.80520.212339
230.2411121.67050.050668
24-0.057142-0.39590.653031
25-0.027624-0.19140.575485
260.0295950.2050.419205
270.0557030.38590.35063
28-0.007608-0.05270.52091
290.0133640.09260.463309
300.0225860.15650.438156
310.0295050.20440.419445
32-0.055253-0.38280.648224
33-0.105243-0.72910.765271
34-0.088177-0.61090.727928
35-0.192044-1.33050.905183


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2211861.53240.065992
1-0.022775-0.15780.562358
20.1482881.02740.154698
3-0.108441-0.75130.771931
4-0.00871-0.06030.523935
5-0.057086-0.39550.652888
6-0.099377-0.68850.752775
7-0.209456-1.45120.92338
80.1116880.77380.221422
9-0.154519-1.07050.855135
100.0310170.21490.415381
11-0.494145-3.42350.999363
12-0.006959-0.04820.519127
13-0.047272-0.32750.627646
14-0.091485-0.63380.735398
15-0.147826-1.02420.844556
160.0477040.33050.371229
17-0.197957-1.37150.911699
18-0.070523-0.48860.686323
190.0070820.04910.480535
20-0.042204-0.29240.614377
210.0876960.60760.273165
220.0049690.03440.486339
23-0.336247-2.32960.987959
24-0.164149-1.13730.869461
25-0.050265-0.34820.635412
260.0562070.38940.349347
27-0.074299-0.51480.695457
28-0.052739-0.36540.641785
290.0324770.2250.411464
30-0.115696-0.80160.786623
31-0.093059-0.64470.738915
32-0.076205-0.5280.700021
33-0.061985-0.42940.66524
34-0.010086-0.06990.527708
35-0.169067-1.17130.876376
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196512078zf7ntvx8v6rwhds/1jvqm1196512730.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196512078zf7ntvx8v6rwhds/1jvqm1196512730.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196512078zf7ntvx8v6rwhds/2pwnx1196512730.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196512078zf7ntvx8v6rwhds/2pwnx1196512730.ps (open in new window)


 
Parameters:
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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