Home » date » 2007 » Dec » 06 » attachments

Workshop 5 Q1 Belgische uitvoer

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 06 Dec 2007 06:45:17 -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/06/t1196947996veu2vytmjibcghu.htm/, Retrieved Thu, 06 Dec 2007 14:33:18 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
522.3 -216.5 -101.4 1201.4 -185.6 580.7 1905.8 1008.8 463.4 2400.8 811.0 2162.8 1539.6 1145.5 2451.5 1843.4 1407.9 1277.8 1219.6 1459.3 1789.1 716.0 345.3 1275.1 1378.9 -125.5 1669.7 1335.9 1524.3 1168.2 1948.9 -668.7 2230.1 1208.9 1316.8 1023.8 262.5 2185.6 871.1 -696.9 1408.7 822.3 278.2 1670.1 865.3 1337.0 2179.0 1844.5 925.8
 
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.08280
1-0.014685-0.08930.535348
20.0989860.60210.275388
30.2634051.60220.058804
40.0573310.34870.364634
5-0.036578-0.22250.587424
60.0493650.30030.382824
7-0.210156-1.27830.895452
8-0.043232-0.2630.602984
9-0.137551-0.83670.795931
10-0.007858-0.04780.518933
11-0.111422-0.67780.748927
12-0.267517-1.62720.943913
130.1322760.80460.213093
140.0228010.13870.445223
15-0.020197-0.12290.548557
16-0.056851-0.34580.634277
170.0482560.29350.385379
180.0738360.44910.32798
19-0.056309-0.34250.63305
200.0156860.09540.462251
210.0990140.60230.27533
22-0.215255-1.30930.900754
230.0612060.37230.355897
24-0.062012-0.37720.645911
25-0.207714-1.26350.892839
26-0.09836-0.59830.723358
27-0.031497-0.19160.575443
28-0.108728-0.66140.743762
290.0447090.2720.393584
30-0.022076-0.13430.553047
310.0438880.2670.39549
320.0370790.22550.4114
330.0617340.37550.354712
340.0601910.36610.358178
350.0277360.16870.433471
360.0104990.06390.474711
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.014685-0.08930.535348
10.0987910.60090.275777
20.2688481.63530.05523
30.0671010.40820.342755
4-0.092202-0.56080.710858
5-0.044939-0.27340.606949
6-0.252766-1.53750.933662
7-0.047454-0.28870.612772
8-0.104937-0.63830.736398
90.1299690.79060.217117
10-0.014368-0.08740.534586
11-0.270643-1.64630.94591
120.1352440.82270.207986
130.0679310.41320.340919
140.1412120.8590.197948
15-0.202321-1.23070.886894
16-0.049923-0.30370.618459
170.0754430.45890.324495
18-0.154357-0.93890.823069
190.0762210.46360.322813
200.064980.39530.347461
21-0.133095-0.80960.788323
22-0.092599-0.56330.71167
23-0.193114-1.17470.876183
240.0127580.07760.46928
25-0.108454-0.65970.743234
260.0178040.10830.457173
27-0.055615-0.33830.631474
280.1083640.65920.256939
290.0859940.52310.302018
30-0.132265-0.80450.786887
310.0394960.24020.405733
32-0.049843-0.30320.618275
33-0.07403-0.45030.672443
34-0.043286-0.26330.60311
35-0.067589-0.41110.658325
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196947996veu2vytmjibcghu/13me51196948715.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196947996veu2vytmjibcghu/13me51196948715.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196947996veu2vytmjibcghu/2pw3f1196948715.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196947996veu2vytmjibcghu/2pw3f1196948715.ps (open in new window)


 
Parameters:
par1 = 48 ; 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