Home » date » 2008 » Dec » 06 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 06 Dec 2008 05:06:44 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw.htm/, Retrieved Sat, 06 Dec 2008 12:07:22 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104.0 107.9 113.8 113.8 123.1 125.1 137.6 134.0 140.3 152.1 150.6 167.3 153.2 142.0 154.4 158.5 180.9 181.3 172.4 192.0 199.3 215.4 214.3 201.5 190.5 196.0 215.7 209.4 214.1 237.8 239.0 237.8 251.5 248.8 215.4 201.2 203.1 214.2 188.9 203.0 213.3 228.5 228.2 240.9 258.8 248.5 269.2 289.6 323.4 317.2 322.8 340.9 368.2 388.5 441.2 474.3 483.9 417.9 365.9 263.0
 
Output produced by software:


Summary of computational 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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1097840.75260.227709
2-0.033751-0.23140.40901
30.0628030.43060.33438
40.0974760.66830.253618
50.0087630.06010.476175
6-0.041732-0.28610.388029
70.0988760.67790.250592
8-0.089994-0.6170.270118
9-0.263199-1.80440.038789
100.1496631.0260.155063
11-0.007315-0.05010.480109
12-0.386641-2.65070.005456
13-0.2397-1.64330.053497
14-0.013867-0.09510.462333
150.035750.24510.403728
16-0.152176-1.04330.151081
170.0001490.0010.499594
180.0561030.38460.351127
19-0.178879-1.22630.113091
200.0244650.16770.43376
210.1887341.29390.101012
22-0.030477-0.20890.417698
23-0.100732-0.69060.246613
240.0231060.15840.437407
250.1843821.26410.106222
260.0312320.21410.415691
270.008790.06030.476102
280.0429430.29440.384875
29-0.055194-0.37840.353421
30-0.049533-0.33960.367841
310.1224680.83960.202692
320.0010920.00750.497028
33-0.070647-0.48430.3152
34-0.096269-0.660.256243
350.0404350.27720.391419
360.1009140.69180.246223


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1097840.75260.227709
2-0.046362-0.31780.376005
30.0728020.49910.310017
40.0817970.56080.288809
5-0.006033-0.04140.483592
6-0.039383-0.270.394172
70.0995690.68260.249102
8-0.128779-0.88290.190901
9-0.236681-1.62260.055682
100.2156271.47830.073004
11-0.084997-0.58270.281438
12-0.391706-2.68540.004989
13-0.11821-0.81040.210896
140.004930.03380.48659
150.0332830.22820.410248
16-0.066812-0.4580.324518
17-0.017699-0.12130.45197
180.010080.06910.472599
19-0.07482-0.51290.305198
20-0.011725-0.08040.468137
210.0126740.08690.465565
22-0.050493-0.34620.365383
23-0.035076-0.24050.405505
24-0.109491-0.75060.228308
25-0.0437-0.29960.382905
260.0479780.32890.371838
270.0468180.3210.374829
28-0.152147-1.04310.151127
29-0.052811-0.36210.359467
300.0276330.18940.42528
310.0097430.06680.473515
32-0.129131-0.88530.190257
330.0116350.07980.46838
34-0.027699-0.18990.425104
35-0.080037-0.54870.292902
360.0703320.48220.315962
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw/1h07s1228565202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw/1h07s1228565202.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw/2ko081228565202.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228565241yplk35uqp6gjosw/2ko081228565202.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; par2 = -0.2 ; par3 = 1 ; 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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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