R version 2.7.2 (2008-08-25) 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(109.20,88.60,94.30,98.30,86.40,80.60,104.10,108.20,93.40,71.90,94.10,94.90,96.40,91.10,84.40,86.40,88.00,75.10,109.70,103.00,82.10,68.00,96.40,94.30,90.00,88.00,76.10,82.50,81.40,66.50,97.20,94.10,80.70,70.50,87.80,89.50,99.60,84.20,75.10,92.00,80.80,73.10,99.80,90.00,83.10,72.40,78.80,87.30,91.00,80.10,73.60,86.40,74.50,71.20,92.40,81.50,85.30,69.90,84.20,90.70,100.30) > 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] 61 > (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] 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 1 1 1 1 1 1 1 1 1 1 > arr [,1] [,2] [1,] 109.2 99.6 [2,] 88.6 84.2 [3,] 94.3 75.1 [4,] 98.3 92.0 [5,] 86.4 80.8 [6,] 80.6 73.1 [7,] 104.1 99.8 [8,] 108.2 90.0 [9,] 93.4 83.1 [10,] 71.9 72.4 [11,] 94.1 78.8 [12,] 94.9 87.3 [13,] 96.4 91.0 [14,] 91.1 80.1 [15,] 84.4 73.6 [16,] 86.4 86.4 [17,] 88.0 74.5 [18,] 75.1 71.2 [19,] 109.7 92.4 [20,] 103.0 81.5 [21,] 82.1 85.3 [22,] 68.0 69.9 [23,] 96.4 84.2 [24,] 94.3 90.7 [25,] 90.0 100.3 [26,] 88.0 NA [27,] 76.1 NA [28,] 82.5 NA [29,] 81.4 NA [30,] 66.5 NA [31,] 97.2 NA [32,] 94.1 NA [33,] 80.7 NA [34,] 70.5 NA [35,] 87.8 NA [36,] 89.5 NA > darr [,1] [,2] [1,] -20.6 -15.4 [2,] 5.7 -9.1 [3,] 4.0 16.9 [4,] -11.9 -11.2 [5,] -5.8 -7.7 [6,] 23.5 26.7 [7,] 4.1 -9.8 [8,] -14.8 -6.9 [9,] -21.5 -10.7 [10,] 22.2 6.4 [11,] 0.8 8.5 [12,] 1.5 3.7 [13,] -5.3 -10.9 [14,] -6.7 -6.5 [15,] 2.0 12.8 [16,] 1.6 -11.9 [17,] -12.9 -3.3 [18,] 34.6 21.2 [19,] -6.7 -10.9 [20,] -20.9 3.8 [21,] -14.1 -15.4 [22,] 28.4 14.3 [23,] -2.1 6.5 [24,] -4.3 9.6 [25,] -2.0 NA [26,] -11.9 NA [27,] 6.4 NA [28,] -1.1 NA [29,] -14.9 NA [30,] 30.7 NA [31,] -3.1 NA [32,] -13.4 NA [33,] -10.2 NA [34,] 17.3 NA [35,] 1.7 NA [36,] 10.1 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/1feaa1225284974.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/285oq1225284974.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/3q06s1225284974.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/4vc7p1225284974.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] [1,] 99.6 84.2 75.1 92.00 80.8 73.10 99.80 90.0 83.10 71.90 78.80 87.3 [2,] 99.6 84.2 75.1 92.00 80.8 73.10 99.80 90.0 83.10 71.90 78.80 87.3 [3,] 104.4 86.4 84.7 95.15 83.6 76.85 101.95 99.1 88.25 72.15 86.45 91.1 [4,] 109.2 88.6 94.3 98.30 86.4 80.60 104.10 108.2 93.40 72.40 94.10 94.9 [5,] 109.2 88.6 94.3 98.30 86.4 80.60 104.10 108.2 93.40 72.40 94.10 94.9 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 91.0 80.1 73.6 86.4 74.50 71.20 92.40 81.50 82.1 68.00 84.2 90.7 [2,] 91.0 80.1 73.6 86.4 74.50 71.20 92.40 81.50 82.1 68.00 84.2 90.7 [3,] 93.7 85.6 79.0 86.4 81.25 73.15 101.05 92.25 83.7 68.95 90.3 92.5 [4,] 96.4 91.1 84.4 86.4 88.00 75.10 109.70 103.00 85.3 69.90 96.4 94.3 [5,] 96.4 91.1 84.4 86.4 88.00 75.10 109.70 103.00 85.3 69.90 96.4 94.3 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 90.00 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 89.5 [2,] 90.00 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 89.5 [3,] 95.15 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 89.5 [4,] 100.30 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 89.5 [5,] 100.30 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 89.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 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93.6746 81.4842 63.24921 88.11146 77.34352 68.47078 97.14592 78.76644 [2,] 115.1254 91.3158 106.15079 102.18854 89.85648 85.22922 106.75408 119.43356 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 76.74254 71.59139 69.3564 82.60906 87.66696 73.31048 66.93393 86.4 [2,] 99.75746 72.70861 103.5436 99.59094 99.73304 97.88952 91.06607 86.4 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 66.16741 68.79281 81.72194 68.22958 80.12487 66.82727 76.66981 88.47798 [2,] 96.33259 77.50719 120.37806 116.27042 87.27513 71.07273 103.93019 96.52202 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [1,] 83.64254 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 [2,] 106.65746 88 76.1 82.5 81.4 66.5 97.2 94.1 80.7 70.5 87.8 [,36] [1,] 89.5 [2,] 89.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(99.6, 99.6, 104.4, 109.2, 109.2, 84.2, 84.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vhf81225284974.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] [1,] -20.6 -9.1 4.00 -11.90 -7.70 23.5 -9.80 -14.80 -21.5 6.4 0.80 1.5 [2,] -20.6 -9.1 4.00 -11.90 -7.70 23.5 -9.80 -14.80 -21.5 6.4 0.80 1.5 [3,] -18.0 -1.7 10.45 -11.55 -6.75 25.1 -2.85 -10.85 -16.1 14.3 4.65 2.6 [4,] -15.4 5.7 16.90 -11.20 -5.80 26.7 4.10 -6.90 -10.7 22.2 8.50 3.7 [5,] -15.4 5.7 16.90 -11.20 -5.80 26.7 4.10 -6.90 -10.7 22.2 8.50 3.7 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -10.9 -6.7 2.0 -11.90 -12.9 21.2 -10.9 -20.90 -15.40 14.30 -2.1 -4.30 [2,] -10.9 -6.7 2.0 -11.90 -12.9 21.2 -10.9 -20.90 -15.40 14.30 -2.1 -4.30 [3,] -8.1 -6.6 7.4 -5.15 -8.1 27.9 -8.8 -8.55 -14.75 21.35 2.2 2.65 [4,] -5.3 -6.5 12.8 1.60 -3.3 34.6 -6.7 3.80 -14.10 28.40 6.5 9.60 [5,] -5.3 -6.5 12.8 1.60 -3.3 34.6 -6.7 3.80 -14.10 28.40 6.5 9.60 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 -13.4 -10.2 17.3 1.7 10.1 [2,] -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 -13.4 -10.2 17.3 1.7 10.1 [3,] -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 -13.4 -10.2 17.3 1.7 10.1 [4,] -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 -13.4 -10.2 17.3 1.7 10.1 [5,] -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 -13.4 -10.2 17.3 1.7 10.1 $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 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -23.80959 -18.23498 -3.962250 -12.33206 -8.872735 21.52487 -18.37948 [2,] -12.19041 14.83498 24.862250 -10.76794 -4.627265 28.67513 12.67948 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -19.676107 -28.16607 -3.352214 -3.952661 0.1420968 -14.356481 -6.823446 [2,] -2.023893 -4.03393 31.952214 13.252661 5.0579032 -1.843519 -6.376554 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -4.66607 -20.232588 -18.825396 12.92914 -13.492361 -36.14555 -16.20240 [2,] 19.46607 9.932588 2.625396 42.87086 -4.107639 19.04555 -13.29760 [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [1,] 5.597075 -7.408167 -12.87948 -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 [2,] 37.102925 11.808167 18.17948 -2 -11.9 6.4 -1.1 -14.9 30.7 -3.1 [,32] [,33] [,34] [,35] [,36] [1,] -13.4 -10.2 17.3 1.7 10.1 [2,] -13.4 -10.2 17.3 1.7 10.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" Warning message: In bxp(list(stats = c(-20.6, -20.6, -18, -15.4, -15.4, -9.1, -9.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vces1225284974.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,] 66.50 69.9 [2,] 81.75 75.1 [3,] 89.05 84.2 [4,] 95.65 90.7 [5,] 109.70 100.3 $n [1] 36 25 $conf [,1] [,2] [1,] 85.38967 79.2704 [2,] 92.71033 89.1296 $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70vqw1225284974.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,] 66.500 66.500 66.500 [2,] 80.975 80.975 80.975 [3,] 86.425 86.425 86.425 [4,] 93.100 93.100 93.100 [5,] 104.400 104.400 104.400 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 83.23208 83.23208 83.23208 [2,] 89.61792 89.61792 89.61792 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1feaa1225284974.ps tmp/1feaa1225284974.png") > system("convert tmp/285oq1225284974.ps tmp/285oq1225284974.png") > system("convert tmp/3q06s1225284974.ps tmp/3q06s1225284974.png") > system("convert tmp/4vc7p1225284974.ps tmp/4vc7p1225284974.png") > system("convert tmp/5vhf81225284974.ps tmp/5vhf81225284974.png") > system("convert tmp/6vces1225284974.ps tmp/6vces1225284974.png") > system("convert tmp/70vqw1225284974.ps tmp/70vqw1225284974.png") > > > proc.time() user system elapsed 1.709 1.112 2.174