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(87.48,82.39,83.48,79.31,78.16,72.77,72.45,68.46,67.62,68.76,70.07,68.55,65.3,58.96,59.17,62.37,66.28,55.62,55.23,55.85,56.75,50.89,53.88,52.95,55.08,53.61,58.78,61.85,55.91,53.32,46.41,44.57,50,50,53.36,46.23,50.45,49.07,45.85,48.45,49.96,46.53,50.51,47.58,48.05,46.84,47.67,49.16,55.54,55.82,58.22,56.19,57.77,63.19,54.76,55.74,62.54,61.39,69.6,79.23,80,93.68,107.63,100.18,97.3,90.45,80.64,80.58,75.82,85.59,89.35,89.42,104.73,95.32,89.27,90.44,86.97,79.98,81.22,87.35,83.64,82.22,94.4,102.18) > par1 = '12' > #'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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 87.48 65.30 55.08 50.45 55.54 80.00 104.73 NA [2,] 82.39 58.96 53.61 49.07 55.82 93.68 95.32 NA [3,] 83.48 59.17 58.78 45.85 58.22 107.63 89.27 NA [4,] 79.31 62.37 61.85 48.45 56.19 100.18 90.44 NA [5,] 78.16 66.28 55.91 49.96 57.77 97.30 86.97 NA [6,] 72.77 55.62 53.32 46.53 63.19 90.45 79.98 NA [7,] 72.45 55.23 46.41 50.51 54.76 80.64 81.22 NA [8,] 68.46 55.85 44.57 47.58 55.74 80.58 87.35 NA [9,] 67.62 56.75 50.00 48.05 62.54 75.82 83.64 NA [10,] 68.76 50.89 50.00 46.84 61.39 85.59 82.22 NA [11,] 70.07 53.88 53.36 47.67 69.60 89.35 94.40 NA [12,] 68.55 52.95 46.23 49.16 79.23 89.42 102.18 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -5.09 -6.34 -1.47 -1.38 0.28 13.68 -9.41 NA [2,] 1.09 0.21 5.17 -3.22 2.40 13.95 -6.05 NA [3,] -4.17 3.20 3.07 2.60 -2.03 -7.45 1.17 NA [4,] -1.15 3.91 -5.94 1.51 1.58 -2.88 -3.47 NA [5,] -5.39 -10.66 -2.59 -3.43 5.42 -6.85 -6.99 NA [6,] -0.32 -0.39 -6.91 3.98 -8.43 -9.81 1.24 NA [7,] -3.99 0.62 -1.84 -2.93 0.98 -0.06 6.13 NA [8,] -0.84 0.90 5.43 0.47 6.80 -4.76 -3.71 NA [9,] 1.14 -5.86 0.00 -1.21 -1.15 9.77 -1.42 NA [10,] 1.31 2.99 3.36 0.83 8.21 3.76 12.18 NA [11,] -1.52 -0.93 -7.13 1.49 9.63 0.07 7.78 NA [12,] -3.25 2.13 4.22 6.38 0.77 15.31 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/1j8bq1290704005.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/2uzsu1290704005.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/3uzsu1290704005.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/44raw1290704005.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] [1,] 50.45 49.070 45.850 48.450 49.960 46.530 46.410 44.57 48.050 46.840 [2,] 55.31 54.715 58.500 59.020 56.840 54.470 52.635 51.66 53.375 50.445 [3,] 65.30 58.960 59.170 62.370 66.280 63.190 55.230 55.85 62.540 61.390 [4,] 83.74 88.035 86.375 84.875 82.565 76.375 76.545 74.52 71.720 75.490 [5,] 104.73 95.320 107.630 100.180 97.300 90.450 81.220 87.35 83.640 85.590 [,11] [,12] [1,] 47.67 46.230 [2,] 53.62 51.055 [3,] 69.60 68.550 [4,] 79.71 84.325 [5,] 94.40 102.180 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 48.32206 39.06183 42.5235 46.92981 50.91745 50.10869 40.95133 42.19838 [2,] 82.27794 78.85817 75.8165 77.81019 81.64255 76.27131 69.50867 69.50162 [,9] [,10] [,11] [,12] [1,] 51.58466 46.43353 54.01947 48.68169 [2,] 73.49534 76.34647 85.18053 88.41831 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(50.45, 55.31, 65.3, 83.74, 104.73, 49.07, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54raw1290704005.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] [1,] -9.410 -6.050 -7.450 -5.940 -10.66 -9.81 -3.990 -4.760 -1.420 0.830 -7.130 [2,] -5.715 -1.505 -3.100 -3.175 -6.92 -7.67 -2.385 -2.275 -1.315 2.150 -1.225 [3,] -1.470 1.090 1.170 -1.150 -5.39 -0.39 -0.060 0.470 -1.150 3.360 0.070 [4,] -0.550 3.785 2.835 1.545 -3.01 0.46 0.800 3.165 0.570 5.985 4.635 [5,] 0.280 5.170 3.200 3.910 -2.59 3.98 0.980 6.800 1.140 8.210 9.630 [,12] [1,] -3.250 [2,] 0.770 [3,] 3.175 [4,] 6.380 [5,] 6.380 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.554455 -2.069103 -2.374286 -3.968708 -7.724989 -5.245105 -1.962031 [2,] 1.614455 4.249103 4.714286 1.668708 -3.055011 4.465105 1.842031 [,8] [,9] [,10] [,11] [,12] [1,] -2.77868 -2.27569159 1.069800 -3.429497 -0.4436312 [2,] 3.71868 -0.02430841 5.650200 3.569497 6.7936312 $out [1] 13.68 13.95 5.42 6.13 -5.86 9.77 12.18 15.31 $group [1] 1 2 5 7 9 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9.41000000000001, -5.715, -1.47, -0.550000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64raw1290704005.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] [,4] [,5] [,6] [,7] [,8] [1,] 67.620 50.890 44.570 45.85 54.760 75.820 79.98 NA [2,] 68.655 54.555 48.205 47.21 55.780 80.610 82.93 NA [3,] 72.610 56.300 53.340 48.25 57.995 89.385 88.31 NA [4,] 80.850 60.770 55.495 49.56 62.865 95.490 94.86 NA [5,] 87.480 66.280 61.850 50.51 69.600 107.630 104.73 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 67.04778 53.4653 50.01498 47.17815 54.76348 82.59813 82.86865 NA [2,] 78.17222 59.1347 56.66502 49.32185 61.22652 96.17187 93.75135 NA $out [1] 79.23 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(67.62, 68.655, 72.61, 80.85, 87.48, 50.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7x09h1290704005.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,] 62.87571 55.230 62.54750 [2,] 63.57929 59.065 63.84000 [3,] 69.00357 62.455 67.17750 [4,] 70.78071 65.790 70.53875 [5,] 71.77143 69.600 72.43750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 65.71895 59.38768 64.12216 [2,] 72.28819 65.52232 70.23284 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(62.8757142857143, 63.5792857142857, 69.0035714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1j8bq1290704005.ps tmp/1j8bq1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/2uzsu1290704005.ps tmp/2uzsu1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/3uzsu1290704005.ps tmp/3uzsu1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/44raw1290704005.ps tmp/44raw1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/54raw1290704005.ps tmp/54raw1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/64raw1290704005.ps tmp/64raw1290704005.png",intern=TRUE)) character(0) > try(system("convert tmp/7x09h1290704005.ps tmp/7x09h1290704005.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 0.958 3.813