Home » date » 2011 » Feb » 02 »

PaperTimDamen

*Unverified author*
R Software Module: /rwasp_arimabackwardselection.wasp (opens new window with default values)
Title produced by software: ARIMA Backward Selection
Date of computation: Wed, 02 Feb 2011 09:19:32 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga.htm/, Retrieved Wed, 02 Feb 2011 10:17:52 +0100
 
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/2011/Feb/02/t1296638272uawkojblxxcy4ga.htm/},
    year = {2011},
}
@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 = {2011},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
349 336 331 327 323 322 385 405 412 411 410 415 414 411 408 410 411 416 479 498 502 498 499 506 510 509 502 495 490 490 553 570 573 572 575 580 580 574 563 556 546 545 605 628 631 626 614 606 602 589 574 558 552 546 607 636 631 623 618 605 619 596 570 546 528 506 555 568 564 553 541 542 540 521 505 491 482 478 523 531 532 540 525 533 531 508 495 482 470 466 515 518 516 511 500 498 494 476 458 443 430 424 476 481 470 460 451 450 444 429 421 400 389 384 432 446 431 423 416 416 413 399 386 374 365 365 418 428 424 421 417 423 423 419 406 398 390 391 444 460 455 456 452 459 461 451 443 439 430 436 488 506 502 501 501 515 521 520 512 509 505 511 570 592 594 586 586 592 594 594 586 586 572 572 563 563 555 555 554 554 601 601 622 622 617 617 606 606 595 595 599 599 600 600 592 592 575 575 567 567 555 555 555 555 608 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time25 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


ARIMA Parameter Estimation and Backward Selection
Iterationar1ar2ar3ma1sar1sar2sma1
Estimates ( 1 )0.81640.1081-0.2009-0.66510.02280.82120.4255
(p-val)(0 )(0.0969 )(0 )(6e-04 )(0.5111 )(0 )(0 )
Estimates ( 2 )0.8230.1037-0.1995-0.672400.82510.4573
(p-val)(0 )(0.1109 )(0 )(6e-04 )(NA )(0 )(0 )
Estimates ( 3 )1.00120-0.166-0.813900.82390.4552
(p-val)(0 )(NA )(0 )(0 )(NA )(0 )(0 )
Estimates ( 4 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 5 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 6 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 7 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 8 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 9 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 10 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 11 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 12 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )
Estimates ( 13 )NANANANANANANA
(p-val)(NA )(NA )(NA )(NA )(NA )(NA )(NA )


Estimated ARIMA Residuals
Value
0.348999286178619
-6.42767614641707
-1.37012850153732
-0.458837636949241
-1.78275291152041
-0.388069901278568
32.2732661416117
4.99405136246779
-4.96137887107981
-1.23614159675221
0.94451730516309
5.38765635575823
1.29565427511765
3.92945197406167
-0.0483980366567702
2.80768629484107
2.53160780523421
3.18756766394823
12.9688725101544
1.03533758300484
-3.66035175078133
-1.82007863756105
2.7449450497612
4.57293895884601
3.89029946700118
6.9430887614411
-4.44671656668951
-5.28704113397158
-0.323883631922875
1.27054030179152
6.83195808277417
-1.59098311320093
-3.67714192097057
1.30865312766499
3.7962768014678
-1.30193139807972
-1.27065356288138
-6.46126964270759
-5.92403306955794
-4.09462731547645
-7.63372636027495
-2.82763651725840
7.03629255144971
6.49310610329448
-2.62380075833867
-4.00486732825757
-13.7888486054450
-10.6522140007174
-1.98182856213597
-6.15204495880044
-4.58195807481792
-5.83698903858845
3.33980102802581
-4.02340665179769
5.34196867177401
10.5774245751415
-11.6173501603854
-7.57252957532668
2.11195486588501
-9.6445578587022
18.5636656882922
-14.5764547262866
-16.5179897978528
-9.49192830158234
-6.29318257923702
-16.0030573173993
-0.139996753104996
-8.58945169236974
-2.95797521117692
-3.12405506588326
-2.35023388592161
12.2161999281814
-9.31592420616906
-4.46007493560023
4.63651347017263
5.68147268069583
-0.887118648147182
8.42697119892087
-5.03921598827169
-11.9512613661816
9.6514666304572
17.9783315837234
-14.3958502650654
11.1969778658952
-9.37948569001152
-4.11272731374209
10.6473784579932
3.54634850698809
0.110928888811245
8.73406858657804
8.75248931385755
-5.87838337121173
-2.44670512441347
-1.38154450247784
5.05127421409642
-8.23327910644875
3.09773928614974
0.764169823631509
-8.82595382883443
-4.00954547203885
-4.35781492236395
-5.60156714628166
11.8998476233803
-1.29165414304582
-14.1457372656741
-13.3671531195525
6.22368940311794
-1.51392521177440
-6.72235963375533
5.10192835999333
6.08926522631541
-10.5837694677953
1.51110061628773
3.05201930483237
1.92198453880959
10.7926477669013
-10.6309154777340
2.04311384503321
3.36622874809406
2.54946366148257
2.27672881178436
-2.02194827836195
-1.12664736095800
4.77879019730655
0.662085716488124
3.37434999197773
8.24561457253533
-1.40389390010645
7.41762385259506
3.26235963421998
1.03205821892089
5.03673884084083
3.15484720597157
8.02333617046944
-7.15684305085085
7.36856920421915
1.85563515793244
1.90397984548549
9.47375015815935
2.65388784270069
1.30850003410585
5.40962301823997
-0.189043860115248
4.10880264188663
2.91488916371353
-3.24304234875038
5.94109585756203
2.81369420264208
-3.09527295351448
4.84614099861639
4.18444230066584
6.51873545253609
-3.78361127099407
-1.92558532911326
4.55881172903833
7.16875642297591
3.25450142374114
1.64955361750172
-0.588983692318374
2.45948971544163
3.74771881921173
2.55687951374447
12.7557817704554
3.09494324993065
4.1480333135099
-9.22628697137911
2.80328179377081
-0.346171480585316
-1.45465230065187
7.86634279338631
-2.11582488348808
0.937571046778002
-7.82648918876307
-5.44047796325023
-55.1947605689596
-7.53576482265421
5.90726038922625
5.3447831265896
-4.67966726260879
-13.8775284408875
43.0526470484753
-7.88120371355266
18.3428989457725
-0.683308393644523
-3.02710036085052
-0.255784560559111
-31.5395531802413
-3.59084503180392
0.0587368486616024
6.4000044917508
4.34484479674339
-3.62226432391142
-22.0644207781856
3.85293305515452
-10.540485743537
-0.112638763716239
-4.20521753887335
0.564077296664794
14.7146651486313
1.22367802812397
-5.64796255625998
-2.37700015170488
-0.232171605962178
1.08005649439090
23.8380478912322
-4.05789336255406
7.47469595706925
0.00428168725680793
3.42828217632826
0.136680034906415
-2.60825356797125
-0.71942844317364
-2.87148026515205
2.28547719137587
4.12237883039848
-0.997794667390793
-7.34509904497307
1.34925855447508
-14.5910646352939
1.87752521463306
-5.19900481350345
0.33762648961285
-1.31794326944702
0.246843352596179
-7.48850995644058
-0.152630188949750
-10.3413084839248
1.18557131145530
15.1570556919012
-3.13224565853812
5.93918188259671
-0.967691299816109
-8.2555001811881
1.61802108985264
-11.0066673050985
1.43556664469740
6.45590992383573
-1.11364589474235
-0.0742645692803214
-0.410496721460681
-11.5585014152936
1.75142680873870
5.05654940758536
-1.13687570886097
6.48621178629668
-1.22033665322246
3.49428524165003
-0.176652014447081
-0.875386011534351
0.376399500856327
12.021559866422
-1.50038989907587
5.32550817231161
-0.342778162280635
-0.584737609828263
0.792274121544887
-1.05557406682669
0.611935274473804
-7.90739409241412
1.27809706661832
-4.08099851658935
0.463760671563475
-2.28057223784570
-0.122784869179554
-7.37975970387613
0.702246373369575
-0.157211342432561
-0.473001173802231
-3.56370422984491
0.128753432581220
-2.25829256684824
0.0587527112046472
0.531803713799263
-0.405473655402374
-9.13345652856883
1.20271034916192
15.4351260145706
-2.67923870398124
11.7496534583948
-1.68123975172079
-9.53112973333372
2.20732452000322
-8.24561005990813
1.66627763804490
-3.51775817475618
0.283306524061572
6.35062386075799
-1.46521721174508
-2.70661575669953
0.237187794210627
-11.7935023830687
1.77433113882830
4.12773083394416
-1.01453239597242
1.46874948000942
-0.583393261838182
3.53393540438481
-0.600272081224546
-1.60595485633991
0.391042954566387
9.43687910313866
-1.29540604758472
6.95364545536665
-0.725033962165866
-9.79012926566531
2.07292822763657
4.1283341175066
-0.436145415699116
-6.54083638024849
0.961579977181543
-1.67367401399889
0.0906566880192372
-3.6170890803981
0.259602491940882
-6.34589977824862
0.644328769672427
-3.28327089430894
0.0604727761785853
6.19949067390661
-1.40526402276566
-5.51647055797662
0.701695446340011
2.53320251306809
-0.446493050054926
9.92151922454445
-1.55406544199167
10.9455872848520
-1.32243518867938
-3.71452306321373
1.31909939809401
-0.239925605238227
0.597626811931832
-2.96858406800692
0.632910720094856
-3.96498750734276
0.54718660797397
2.28328790682423
-0.583573035381051
-3.61512598630287
0.383899810265746
4.92586155903604
-0.880507059583409
-1.33263834357484
0.210198935547339
7.14959627898247
-0.994285872790215
-1.74310241028758
0.509125669054697
12.2991765233822
-1.61128900294551
-2.14123976837806
0.791591138880335
18.0266859471181
-2.25739096256154
-0.000513136479980858
0.749669088014969
-17.7061417772143
3.46300938133544
7.64208224734364
-1.27410418200543
-7.44247102937731
0.811221284889314
5.88523330586799
-1.14846549516170
-4.36677717991637
0.558127386904858
-5.70151275419494
0.813143870452791
9.15548959432431
-1.65979928748425
1.60274507101445
-0.253047331826565
19.5805127936504
-2.68550672294896
-19.4910564009685
3.74654339100539
1.08289048331142
0.129642309591418
7.58111442376469
-1.41898147021891
11.0708920053042
-1.63382485403969
-1.04312749400583
0.710498151006959
-5.99090357573914
1.45320535331109
7.59160257089787
-1.06151760675607
-2.80968762633563
0.515966545518893
3.64382382325130
-0.432104672318872
-9.50557166823552
1.55170035198631
6.50918955733499
-1.13652167480274
13.3271000255451
-2.11802668904318
-1.26001775984866
0.679927346741806
0.609507653516175
0.475548270783747
-10.8513238643586
1.93512320692025
-3.22792305742416
0.285944105742601
4.22864556960531
-1.12760839936846
-6.55075890997432
-0.243684272964515
-3.89268867405031
-10.3876847779339
1.02644865728689
7.940932844582
55.267216832701
6.41881181161193
-3.18204971565774
-3.76525753130591
-22.1824780633498
7.89005492036279
-46.1465091605299
5.98064677885565
-0.783203106164478
-7.18466318324385
-2.72973598156625
-1.23844794583067
35.6717839843981
-6.6574559890305
0.112869298884902
-14.8963793783902
-11.3025067769872
7.81859554116761
16.6201021777549
-4.7943703127188
-2.87306627547150
6.62006962513408
5.82421393322227
-6.564297331474
-11.9938081885722
-4.66162234933734
-7.77524318466908
-20.6203432734764
2.92103553300706
-6.7276922952052
0.438817514723269
-9.33201808887827
-13.5086430753222
3.20834692039853
-11.7812264895681
-11.3954400958915
21.7905195981409
5.12748270328677
-23.484320952266
9.96071666998557
0.506158863531255
4.87478856087148
5.3243447504185
-4.56460369320212
-1.32476447203214
2.92739411977482
-14.0395332772984
16.2045459427046
3.72232205322888
-6.28609989980248
-3.19212234453153
11.7042131328247
14.3543552319271
13.6580178553389
0.718657389903456
12.5497661638753
15.7751568516759
0.98815359912794
3.67049797423112
15.9347104383683
2.01645907223030
0.781458352248137
5.4616534656119
-8.96019625713552
2.88196336309272
8.27275194162428
-1.07210962550926
-5.71073747875676
-6.34391725813134
-8.4491799692762
2.73205236797253
-4.70291858750807
13.1464534043095
-4.58004933413975
-9.94507887801194
-5.91535408078596
-9.68364298853874
-9.03254467378042
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/1notf1296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/1notf1296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/2akj71296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/2akj71296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/3qjk31296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/3qjk31296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/4x5hv1296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/4x5hv1296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/5fxp81296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/5fxp81296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/6xmnl1296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/6xmnl1296638344.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/7aen81296638344.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296638272uawkojblxxcy4ga/7aen81296638344.ps (open in new window)


 
Parameters (Session):
par1 = FALSE ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = FALSE ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
R code (references can be found in the software module):
library(lattice)
if (par1 == 'TRUE') par1 <- TRUE
if (par1 == 'FALSE') par1 <- FALSE
par2 <- as.numeric(par2) #Box-Cox lambda transformation parameter
par3 <- as.numeric(par3) #degree of non-seasonal differencing
par4 <- as.numeric(par4) #degree of seasonal differencing
par5 <- as.numeric(par5) #seasonal period
par6 <- as.numeric(par6) #degree (p) of the non-seasonal AR(p) polynomial
par7 <- as.numeric(par7) #degree (q) of the non-seasonal MA(q) polynomial
par8 <- as.numeric(par8) #degree (P) of the seasonal AR(P) polynomial
par9 <- as.numeric(par9) #degree (Q) of the seasonal MA(Q) polynomial
armaGR <- function(arima.out, names, n){
try1 <- arima.out$coef
try2 <- sqrt(diag(arima.out$var.coef))
try.data.frame <- data.frame(matrix(NA,ncol=4,nrow=length(names)))
dimnames(try.data.frame) <- list(names,c('coef','std','tstat','pv'))
try.data.frame[,1] <- try1
for(i in 1:length(try2)) try.data.frame[which(rownames(try.data.frame)==names(try2)[i]),2] <- try2[i]
try.data.frame[,3] <- try.data.frame[,1] / try.data.frame[,2]
try.data.frame[,4] <- round((1-pt(abs(try.data.frame[,3]),df=n-(length(try2)+1)))*2,5)
vector <- rep(NA,length(names))
vector[is.na(try.data.frame[,4])] <- 0
maxi <- which.max(try.data.frame[,4])
continue <- max(try.data.frame[,4],na.rm=TRUE) > .05
vector[maxi] <- 0
list(summary=try.data.frame,next.vector=vector,continue=continue)
}
arimaSelect <- function(series, order=c(13,0,0), seasonal=list(order=c(2,0,0),period=12), include.mean=F){
nrc <- order[1]+order[3]+seasonal$order[1]+seasonal$order[3]
coeff <- matrix(NA, nrow=nrc*2, ncol=nrc)
pval <- matrix(NA, nrow=nrc*2, ncol=nrc)
mylist <- rep(list(NULL), nrc)
names <- NULL
if(order[1] > 0) names <- paste('ar',1:order[1],sep='')
if(order[3] > 0) names <- c( names , paste('ma',1:order[3],sep='') )
if(seasonal$order[1] > 0) names <- c(names, paste('sar',1:seasonal$order[1],sep=''))
if(seasonal$order[3] > 0) names <- c(names, paste('sma',1:seasonal$order[3],sep=''))
arima.out <- arima(series, order=order, seasonal=seasonal, include.mean=include.mean, method='ML')
mylist[[1]] <- arima.out
last.arma <- armaGR(arima.out, names, length(series))
mystop <- FALSE
i <- 1
coeff[i,] <- last.arma[[1]][,1]
pval [i,] <- last.arma[[1]][,4]
i <- 2
aic <- arima.out$aic
while(!mystop){
mylist[[i]] <- arima.out
arima.out <- arima(series, order=order, seasonal=seasonal, include.mean=include.mean, method='ML', fixed=last.arma$next.vector)
aic <- c(aic, arima.out$aic)
last.arma <- armaGR(arima.out, names, length(series))
mystop <- !last.arma$continue
coeff[i,] <- last.arma[[1]][,1]
pval [i,] <- last.arma[[1]][,4]
i <- i+1
}
list(coeff, pval, mylist, aic=aic)
}
arimaSelectplot <- function(arimaSelect.out,noms,choix){
noms <- names(arimaSelect.out[[3]][[1]]$coef)
coeff <- arimaSelect.out[[1]]
k <- min(which(is.na(coeff[,1])))-1
coeff <- coeff[1:k,]
pval <- arimaSelect.out[[2]][1:k,]
aic <- arimaSelect.out$aic[1:k]
coeff[coeff==0] <- NA
n <- ncol(coeff)
if(missing(choix)) choix <- k
layout(matrix(c(1,1,1,2,
3,3,3,2,
3,3,3,4,
5,6,7,7),nr=4),
widths=c(10,35,45,15),
heights=c(30,30,15,15))
couleurs <- rainbow(75)[1:50]#(50)
ticks <- pretty(coeff)
par(mar=c(1,1,3,1))
plot(aic,k:1-.5,type='o',pch=21,bg='blue',cex=2,axes=F,lty=2,xpd=NA)
points(aic[choix],k-choix+.5,pch=21,cex=4,bg=2,xpd=NA)
title('aic',line=2)
par(mar=c(3,0,0,0))
plot(0,axes=F,xlab='',ylab='',xlim=range(ticks),ylim=c(.1,1))
rect(xleft = min(ticks) + (0:49)/50*(max(ticks)-min(ticks)),
xright = min(ticks) + (1:50)/50*(max(ticks)-min(ticks)),
ytop = rep(1,50),
ybottom= rep(0,50),col=couleurs,border=NA)
axis(1,ticks)
rect(xleft=min(ticks),xright=max(ticks),ytop=1,ybottom=0)
text(mean(coeff,na.rm=T),.5,'coefficients',cex=2,font=2)
par(mar=c(1,1,3,1))
image(1:n,1:k,t(coeff[k:1,]),axes=F,col=couleurs,zlim=range(ticks))
for(i in 1:n) for(j in 1:k) if(!is.na(coeff[j,i])) {
if(pval[j,i]<.01) symb = 'green'
else if( (pval[j,i]<.05) & (pval[j,i]>=.01)) symb = 'orange'
else if( (pval[j,i]<.1) & (pval[j,i]>=.05)) symb = 'red'
else symb = 'black'
polygon(c(i+.5 ,i+.2 ,i+.5 ,i+.5),
c(k-j+0.5,k-j+0.5,k-j+0.8,k-j+0.5),
col=symb)
if(j==choix) {
rect(xleft=i-.5,
xright=i+.5,
ybottom=k-j+1.5,
ytop=k-j+.5,
lwd=4)
text(i,
k-j+1,
round(coeff[j,i],2),
cex=1.2,
font=2)
}
else{
rect(xleft=i-.5,xright=i+.5,ybottom=k-j+1.5,ytop=k-j+.5)
text(i,k-j+1,round(coeff[j,i],2),cex=1.2,font=1)
}
}
axis(3,1:n,noms)
par(mar=c(0.5,0,0,0.5))
plot(0,axes=F,xlab='',ylab='',type='n',xlim=c(0,8),ylim=c(-.2,.8))
cols <- c('green','orange','red','black')
niv <- c('0','0.01','0.05','0.1')
for(i in 0:3){
polygon(c(1+2*i ,1+2*i ,1+2*i-.5 ,1+2*i),
c(.4 ,.7 , .4 , .4),
col=cols[i+1])
text(2*i,0.5,niv[i+1],cex=1.5)
}
text(8,.5,1,cex=1.5)
text(4,0,'p-value',cex=2)
box()
residus <- arimaSelect.out[[3]][[choix]]$res
par(mar=c(1,2,4,1))
acf(residus,main='')
title('acf',line=.5)
par(mar=c(1,2,4,1))
pacf(residus,main='')
title('pacf',line=.5)
par(mar=c(2,2,4,1))
qqnorm(residus,main='')
title('qq-norm',line=.5)
qqline(residus)
residus
}
if (par2 == 0) x <- log(x)
if (par2 != 0) x <- x^par2
(selection <- arimaSelect(x, order=c(par6,par3,par7), seasonal=list(order=c(par8,par4,par9), period=par5)))
bitmap(file='test1.png')
resid <- arimaSelectplot(selection)
dev.off()
resid
bitmap(file='test2.png')
acf(resid,length(resid)/2, main='Residual Autocorrelation Function')
dev.off()
bitmap(file='test3.png')
pacf(resid,length(resid)/2, main='Residual Partial Autocorrelation Function')
dev.off()
bitmap(file='test4.png')
cpgram(resid, main='Residual Cumulative Periodogram')
dev.off()
bitmap(file='test5.png')
hist(resid, main='Residual Histogram', xlab='values of Residuals')
dev.off()
bitmap(file='test6.png')
densityplot(~resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test7.png')
qqnorm(resid, main='Residual Normal Q-Q Plot')
qqline(resid)
dev.off()
ncols <- length(selection[[1]][1,])
nrows <- length(selection[[2]][,1])-1
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ARIMA Parameter Estimation and Backward Selection', ncols+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Iteration', header=TRUE)
for (i in 1:ncols) {
a<-table.element(a,names(selection[[3]][[1]]$coef)[i],header=TRUE)
}
a<-table.row.end(a)
for (j in 1:nrows) {
a<-table.row.start(a)
mydum <- 'Estimates ('
mydum <- paste(mydum,j)
mydum <- paste(mydum,')')
a<-table.element(a,mydum, header=TRUE)
for (i in 1:ncols) {
a<-table.element(a,round(selection[[1]][j,i],4))
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(p-val)', header=TRUE)
for (i in 1:ncols) {
mydum <- '('
mydum <- paste(mydum,round(selection[[2]][j,i],4),sep='')
mydum <- paste(mydum,')')
a<-table.element(a,mydum)
}
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,'Estimated ARIMA Residuals', 1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Value', 1,TRUE)
a<-table.row.end(a)
for (i in (par4*par5+par3):length(resid)) {
a<-table.row.start(a)
a<-table.element(a,resid[i])
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