R version 2.7.0 (2008-04-22) Copyright (C) 2008 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(97.3,101,113.2,101,105.7,113.9,86.4,96.5,103.3,114.9,105.8,94.2,98.4,99.4,108.8,112.6,104.4,112.2,81.1,97.1,112.6,113.8,107.8,103.2,103.3,101.2,107.7,110.4,101.9,115.9,89.9,88.6,117.2,123.9,100,103.6,94.1,98.7,119.5,112.7,104.4,124.7,89.1,97,121.6,118.8,114,111.5,97.2,102.5,113.4,109.8,104.9,126.1,80,96.8,117.2,112.3,117.3,111.1,102.2,104.3,122.9,107.6,121.3,131.5,89,104.4,128.9,135.9,133.3,121.3) > par1 = '36' > #'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] 72 > (np <- floor(n / par1)) [1] 2 > 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] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 97.3 94.1 NA [2,] 101.0 98.7 NA [3,] 113.2 119.5 NA [4,] 101.0 112.7 NA [5,] 105.7 104.4 NA [6,] 113.9 124.7 NA [7,] 86.4 89.1 NA [8,] 96.5 97.0 NA [9,] 103.3 121.6 NA [10,] 114.9 118.8 NA [11,] 105.8 114.0 NA [12,] 94.2 111.5 NA [13,] 98.4 97.2 NA [14,] 99.4 102.5 NA [15,] 108.8 113.4 NA [16,] 112.6 109.8 NA [17,] 104.4 104.9 NA [18,] 112.2 126.1 NA [19,] 81.1 80.0 NA [20,] 97.1 96.8 NA [21,] 112.6 117.2 NA [22,] 113.8 112.3 NA [23,] 107.8 117.3 NA [24,] 103.2 111.1 NA [25,] 103.3 102.2 NA [26,] 101.2 104.3 NA [27,] 107.7 122.9 NA [28,] 110.4 107.6 NA [29,] 101.9 121.3 NA [30,] 115.9 131.5 NA [31,] 89.9 89.0 NA [32,] 88.6 104.4 NA [33,] 117.2 128.9 NA [34,] 123.9 135.9 NA [35,] 100.0 133.3 NA [36,] 103.6 121.3 NA > darr [,1] [,2] [,3] [1,] 3.7 4.6 NA [2,] 12.2 20.8 NA [3,] -12.2 -6.8 NA [4,] 4.7 -8.3 NA [5,] 8.2 20.3 NA [6,] -27.5 -35.6 NA [7,] 10.1 7.9 NA [8,] 6.8 24.6 NA [9,] 11.6 -2.8 NA [10,] -9.1 -4.8 NA [11,] -11.6 -2.5 NA [12,] 4.2 -14.3 NA [13,] 1.0 5.3 NA [14,] 9.4 10.9 NA [15,] 3.8 -3.6 NA [16,] -8.2 -4.9 NA [17,] 7.8 21.2 NA [18,] -31.1 -46.1 NA [19,] 16.0 16.8 NA [20,] 15.5 20.4 NA [21,] 1.2 -4.9 NA [22,] -6.0 5.0 NA [23,] -4.6 -6.2 NA [24,] 0.1 -8.9 NA [25,] -2.1 2.1 NA [26,] 6.5 18.6 NA [27,] 2.7 -15.3 NA [28,] -8.5 13.7 NA [29,] 14.0 10.2 NA [30,] -26.0 -42.5 NA [31,] -1.3 15.4 NA [32,] 28.6 24.5 NA [33,] 6.7 7.0 NA [34,] -23.9 -2.6 NA [35,] 3.6 -12.0 NA [36,] -9.5 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/1k6v91225747132.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/21dyf1225747132.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/3blqa1225747132.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/41wvs1225747132.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] [1,] 94.1 98.70 113.20 101.00 104.40 113.9 86.40 96.50 103.30 114.90 105.8 [2,] 94.1 98.70 113.20 101.00 104.40 113.9 86.40 96.50 103.30 114.90 105.8 [3,] 95.7 99.85 116.35 106.85 105.05 119.3 87.75 96.75 112.45 116.85 109.9 [4,] 97.3 101.00 119.50 112.70 105.70 124.7 89.10 97.00 121.60 118.80 114.0 [5,] 97.3 101.00 119.50 112.70 105.70 124.7 89.10 97.00 121.60 118.80 114.0 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] 94.20 97.2 99.40 108.8 109.8 104.40 112.20 80.00 96.80 112.6 112.30 [2,] 94.20 97.2 99.40 108.8 109.8 104.40 112.20 80.00 96.80 112.6 112.30 [3,] 102.85 97.8 100.95 111.1 111.2 104.65 119.15 80.55 96.95 114.9 113.05 [4,] 111.50 98.4 102.50 113.4 112.6 104.90 126.10 81.10 97.10 117.2 113.80 [5,] 111.50 98.4 102.50 113.4 112.6 104.90 126.10 81.10 97.10 117.2 113.80 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [1,] 107.80 103.20 102.20 101.20 107.7 107.6 101.9 115.9 89.00 88.6 117.20 [2,] 107.80 103.20 102.20 101.20 107.7 107.6 101.9 115.9 89.00 88.6 117.20 [3,] 112.55 107.15 102.75 102.75 115.3 109.0 111.6 123.7 89.45 96.5 123.05 [4,] 117.30 111.10 103.30 104.30 122.9 110.4 121.3 131.5 89.90 104.4 128.90 [5,] 117.30 111.10 103.30 104.30 122.9 110.4 121.3 131.5 89.90 104.4 128.90 [,34] [,35] [,36] [1,] 123.9 100.00 103.60 [2,] 123.9 100.00 103.60 [3,] 129.9 116.65 112.45 [4,] 135.9 133.30 121.30 [5,] 135.9 133.30 121.30 $n [1] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 92.12487 97.28037 109.3115 93.77842 103.5976 107.2339 84.73348 96.19139 [2,] 99.27513 102.41963 123.3885 119.92158 106.5024 131.3661 90.76652 97.30861 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 92.00471 112.4928 100.7387 83.52194 96.45933 97.4866 105.9607 108.0718 [2,] 132.89529 121.2072 119.0613 122.17806 99.14067 104.4134 116.2393 114.3282 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 104.0914 103.6205 79.32105 96.61483 109.7607 111.3742 101.9363 98.3239 [2,] 105.2086 134.6795 81.77895 97.28517 120.0393 114.7258 123.1637 115.9761 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 101.5210 99.2866 98.31812 105.8718 89.92576 106.2712 88.4445 78.84779 [2,] 103.9790 106.2134 132.28188 112.1282 133.27424 141.1288 90.4555 114.15221 [,33] [,34] [,35] [,36] [1,] 109.9784 116.4933 79.44628 92.67505 [2,] 136.1216 143.3067 153.85372 132.22495 $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" Warning message: In bxp(list(stats = c(94.1, 94.1, 95.7, 97.3, 97.3, 98.7, 98.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cpia1225747132.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] [1,] 3.70 12.2 -12.2 -8.3 8.20 -35.60 7.9 6.8 -2.8 -9.10 -11.60 -14.30 1.00 [2,] 3.70 12.2 -12.2 -8.3 8.20 -35.60 7.9 6.8 -2.8 -9.10 -11.60 -14.30 1.00 [3,] 4.15 16.5 -9.5 -1.8 14.25 -31.55 9.0 15.7 4.4 -6.95 -7.05 -5.05 3.15 [4,] 4.60 20.8 -6.8 4.7 20.30 -27.50 10.1 24.6 11.6 -4.80 -2.50 4.20 5.30 [5,] 4.60 20.8 -6.8 4.7 20.30 -27.50 10.1 24.6 11.6 -4.80 -2.50 4.20 5.30 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [1,] 9.40 -3.6 -8.20 7.8 -46.1 16.0 15.50 -4.90 -6.0 -6.2 -8.9 -2.1 [2,] 9.40 -3.6 -8.20 7.8 -46.1 16.0 15.50 -4.90 -6.0 -6.2 -8.9 -2.1 [3,] 10.15 0.1 -6.55 14.5 -38.6 16.4 17.95 -1.85 -0.5 -5.4 -4.4 0.0 [4,] 10.90 3.8 -4.90 21.2 -31.1 16.8 20.40 1.20 5.0 -4.6 0.1 2.1 [5,] 10.90 3.8 -4.90 21.2 -31.1 16.8 20.40 1.20 5.0 -4.6 0.1 2.1 [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 6.50 -15.3 -8.5 10.2 -42.50 -1.30 24.50 6.70 -23.90 -12.0 -9.5 [2,] 6.50 -15.3 -8.5 10.2 -42.50 -1.30 24.50 6.70 -23.90 -12.0 -9.5 [3,] 12.55 -6.3 2.6 12.1 -34.25 7.05 26.55 6.85 -13.25 -4.2 -9.5 [4,] 18.60 2.7 13.7 14.0 -26.00 15.40 28.60 7.00 -2.60 3.6 -9.5 [5,] 18.60 2.7 13.7 14.0 -26.00 15.40 28.60 7.00 -2.60 3.6 -9.5 $n [1] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.144494 6.891833 -15.533035 -16.32397 0.7315326 -40.59955 6.542097 [2,] 5.155506 26.108167 -3.466965 12.72397 27.7684674 -22.50045 11.457903 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -4.186671 -11.68809 -11.754083 -17.216781 -25.71873 -1.654083 8.474157 [2,] 35.586671 20.48809 -2.145917 3.116781 15.61873 7.954083 11.825843 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -8.167492 -10.236855 -0.4708648 -55.35843 15.50622 12.47558 -8.665095 [2,] 8.367492 -2.863145 29.4708648 -21.84157 17.29378 23.42442 4.965095 [,22] [,23] [,24] [,25] [,26] [,27] [,28] [1,] -12.78952 -7.187566 -14.455058 -4.692361 -0.9684674 -26.41012 -22.20248 [2,] 11.78952 -3.612434 5.655058 4.692361 26.0684674 13.81012 27.40248 [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 7.854531 -52.68427 -11.60772 21.96936 6.514831 -37.04697 -21.62877 -9.5 [2,] 16.345469 -15.81573 25.70772 31.13064 7.185169 10.54697 13.22877 -9.5 $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" Warning message: In bxp(list(stats = c(3.7, 3.7, 4.15000000000001, 4.60000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x92w1225747132.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] [,3] [1,] 81.10 80.00 NA [2,] 98.90 102.35 NA [3,] 103.45 111.90 NA [4,] 112.40 121.30 NA [5,] 123.90 135.90 NA $n [1] 36 36 0 $conf [,1] [,2] [,3] [1,] 99.895 106.9098 NA [2,] 107.005 116.8902 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/715it1225747132.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.55 80.55 80.55 [2,] 100.40 100.40 100.40 [3,] 109.45 109.45 109.45 [4,] 115.10 115.10 115.10 [5,] 129.90 129.90 129.90 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 105.579 105.579 105.579 [2,] 113.321 113.321 113.321 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1k6v91225747132.ps tmp/1k6v91225747132.png") > system("convert tmp/21dyf1225747132.ps tmp/21dyf1225747132.png") > system("convert tmp/3blqa1225747132.ps tmp/3blqa1225747132.png") > system("convert tmp/41wvs1225747132.ps tmp/41wvs1225747132.png") > system("convert tmp/5cpia1225747132.ps tmp/5cpia1225747132.png") > system("convert tmp/6x92w1225747132.ps tmp/6x92w1225747132.png") > system("convert tmp/715it1225747132.ps tmp/715it1225747132.png") > > > proc.time() user system elapsed 3.925 2.787 4.270