R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(114.1,110.3,103.9,101.6,94.6,95.9,104.7,102.8,98.1,113.9,80.9,95.7,113.2,105.9,108.8,102.3,99,100.7,115.5,100.7,109.9,114.6,85.4,100.5,114.8,116.5,112.9,102,106,105.3,118.8,106.1,109.3,117.2,92.5,104.2,112.5,122.4,113.3,100,110.7,112.8,109.8,117.3,109.1,115.9,96,99.8,116.8,115.7,99.4,94.3,91,93.2,103.1,94.1,91.8,102.7,82.6,89.1) > par1 = '60' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 60 > (np <- floor(n / par1)) [1] 1 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > arr [,1] [,2] [1,] 114.1 NA [2,] 110.3 NA [3,] 103.9 NA [4,] 101.6 NA [5,] 94.6 NA [6,] 95.9 NA [7,] 104.7 NA [8,] 102.8 NA [9,] 98.1 NA [10,] 113.9 NA [11,] 80.9 NA [12,] 95.7 NA [13,] 113.2 NA [14,] 105.9 NA [15,] 108.8 NA [16,] 102.3 NA [17,] 99.0 NA [18,] 100.7 NA [19,] 115.5 NA [20,] 100.7 NA [21,] 109.9 NA [22,] 114.6 NA [23,] 85.4 NA [24,] 100.5 NA [25,] 114.8 NA [26,] 116.5 NA [27,] 112.9 NA [28,] 102.0 NA [29,] 106.0 NA [30,] 105.3 NA [31,] 118.8 NA [32,] 106.1 NA [33,] 109.3 NA [34,] 117.2 NA [35,] 92.5 NA [36,] 104.2 NA [37,] 112.5 NA [38,] 122.4 NA [39,] 113.3 NA [40,] 100.0 NA [41,] 110.7 NA [42,] 112.8 NA [43,] 109.8 NA [44,] 117.3 NA [45,] 109.1 NA [46,] 115.9 NA [47,] 96.0 NA [48,] 99.8 NA [49,] 116.8 NA [50,] 115.7 NA [51,] 99.4 NA [52,] 94.3 NA [53,] 91.0 NA [54,] 93.2 NA [55,] 103.1 NA [56,] 94.1 NA [57,] 91.8 NA [58,] 102.7 NA [59,] 82.6 NA [60,] 89.1 NA > darr [,1] [,2] [1,] -3.8 NA [2,] -6.4 NA [3,] -2.3 NA [4,] -7.0 NA [5,] 1.3 NA [6,] 8.8 NA [7,] -1.9 NA [8,] -4.7 NA [9,] 15.8 NA [10,] -33.0 NA [11,] 14.8 NA [12,] 17.5 NA [13,] -7.3 NA [14,] 2.9 NA [15,] -6.5 NA [16,] -3.3 NA [17,] 1.7 NA [18,] 14.8 NA [19,] -14.8 NA [20,] 9.2 NA [21,] 4.7 NA [22,] -29.2 NA [23,] 15.1 NA [24,] 14.3 NA [25,] 1.7 NA [26,] -3.6 NA [27,] -10.9 NA [28,] 4.0 NA [29,] -0.7 NA [30,] 13.5 NA [31,] -12.7 NA [32,] 3.2 NA [33,] 7.9 NA [34,] -24.7 NA [35,] 11.7 NA [36,] 8.3 NA [37,] 9.9 NA [38,] -9.1 NA [39,] -13.3 NA [40,] 10.7 NA [41,] 2.1 NA [42,] -3.0 NA [43,] 7.5 NA [44,] -8.2 NA [45,] 6.8 NA [46,] -19.9 NA [47,] 3.8 NA [48,] 17.0 NA [49,] -1.1 NA [50,] -16.3 NA [51,] -5.1 NA [52,] -3.3 NA [53,] 2.2 NA [54,] 9.9 NA [55,] -9.0 NA [56,] -2.3 NA [57,] 10.9 NA [58,] -20.1 NA [59,] 6.5 NA [60,] NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1mve91258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2w0rb1258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/38sme1258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/46n5o1258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [2,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [3,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [4,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [5,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [1,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [2,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [3,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [4,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [5,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [1,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [2,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [3,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [4,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [5,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [1,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [2,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [3,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [4,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [5,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [,50] [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 [2,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 [3,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 [4,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 [5,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 $n [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [2,] 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [1,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [2,] 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [1,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [2,] 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [1,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [2,] 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 [,50] [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 [2,] 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w4ce1258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [2,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [3,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [4,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [5,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [2,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [3,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [4,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [5,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [2,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [3,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [4,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [5,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [2,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [3,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [4,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [5,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA [2,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA [3,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA [4,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA [5,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA $n [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [2,] -3.8 -6.4 -2.3 -7 1.3 8.8 -1.9 -4.7 15.8 -33 14.8 17.5 -7.3 2.9 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [2,] -6.5 -3.3 1.7 14.8 -14.8 9.2 4.7 -29.2 15.1 14.3 1.7 -3.6 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [2,] -10.9 4 -0.7 13.5 -12.7 3.2 7.9 -24.7 11.7 8.3 9.9 -9.1 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [2,] -13.3 10.7 2.1 -3 7.5 -8.2 6.8 -19.9 3.8 17 -1.1 -16.3 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA [2,] -5.1 -3.3 2.2 9.9 -9 -2.3 10.9 -20.1 6.5 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6h4y11258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [1,] 80.90 NA [2,] 98.55 NA [3,] 104.45 NA [4,] 113.05 NA [5,] 122.40 NA $n [1] 60 0 $conf [,1] [,2] [1,] 101.4923 NA [2,] 107.4077 NA $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77d3f1258482587.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 80.90 80.90 80.90 [2,] 98.55 98.55 98.55 [3,] 104.45 104.45 104.45 [4,] 113.05 113.05 113.05 [5,] 122.40 122.40 122.40 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 101.4923 101.4923 101.4923 [2,] 107.4077 107.4077 107.4077 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1mve91258482587.ps tmp/1mve91258482587.png") > system("convert tmp/2w0rb1258482587.ps tmp/2w0rb1258482587.png") > system("convert tmp/38sme1258482587.ps tmp/38sme1258482587.png") > system("convert tmp/46n5o1258482587.ps tmp/46n5o1258482587.png") > system("convert tmp/5w4ce1258482587.ps tmp/5w4ce1258482587.png") > system("convert tmp/6h4y11258482587.ps tmp/6h4y11258482587.png") > system("convert tmp/77d3f1258482587.ps tmp/77d3f1258482587.png") > > > proc.time() user system elapsed 1.327 0.949 1.632