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(93.89,93.36,92.25,91.07,90.93,90.68,90.65,90.6,90.02,89.74,89.31,89.16,89.15,88.98,88.25,87.36,87.13,86.93,86.93,86.93,86.98,86.16,85.88,85.91,85.91,85.6,84.9,83.67,83.41,83.33,83.32,83.3,82.73,82.2,81.7,81.52,81.52,81.55,81.89,81.8,81.84,81.77,81.77,82.98,83.13,82.84,82.8,82.8,82.8,82.98,81.91,81.64,81.4,81.21,81.21,81.23,81.01,80.55,80.5,80.54,80.54,80.72,80.63,80.36,79.88,79.66,79.66,79.13,78.81,78.67,78.43,78.13,78.13,78.07,76.94,74.97,75,75.1,75.1,75.02,73.87,73.18,72.55,72.42,72.4,72.45,71.42,70.89,70.42,69.57,69.57,69.44,68.25,66.86,66.5,66.46) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 93.89 89.15 85.91 81.52 82.80 80.54 78.13 72.40 NA [2,] 93.36 88.98 85.60 81.55 82.98 80.72 78.07 72.45 NA [3,] 92.25 88.25 84.90 81.89 81.91 80.63 76.94 71.42 NA [4,] 91.07 87.36 83.67 81.80 81.64 80.36 74.97 70.89 NA [5,] 90.93 87.13 83.41 81.84 81.40 79.88 75.00 70.42 NA [6,] 90.68 86.93 83.33 81.77 81.21 79.66 75.10 69.57 NA [7,] 90.65 86.93 83.32 81.77 81.21 79.66 75.10 69.57 NA [8,] 90.60 86.93 83.30 82.98 81.23 79.13 75.02 69.44 NA [9,] 90.02 86.98 82.73 83.13 81.01 78.81 73.87 68.25 NA [10,] 89.74 86.16 82.20 82.84 80.55 78.67 73.18 66.86 NA [11,] 89.31 85.88 81.70 82.80 80.50 78.43 72.55 66.50 NA [12,] 89.16 85.91 81.52 82.80 80.54 78.13 72.42 66.46 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.53 -0.17 -0.31 0.03 0.18 0.18 -0.06 0.05 NA [2,] -1.11 -0.73 -0.70 0.34 -1.07 -0.09 -1.13 -1.03 NA [3,] -1.18 -0.89 -1.23 -0.09 -0.27 -0.27 -1.97 -0.53 NA [4,] -0.14 -0.23 -0.26 0.04 -0.24 -0.48 0.03 -0.47 NA [5,] -0.25 -0.20 -0.08 -0.07 -0.19 -0.22 0.10 -0.85 NA [6,] -0.03 0.00 -0.01 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.05 0.00 -0.02 1.21 0.02 -0.53 -0.08 -0.13 NA [8,] -0.58 0.05 -0.57 0.15 -0.22 -0.32 -1.15 -1.19 NA [9,] -0.28 -0.82 -0.53 -0.29 -0.46 -0.14 -0.69 -1.39 NA [10,] -0.43 -0.28 -0.50 -0.04 -0.05 -0.24 -0.63 -0.36 NA [11,] -0.15 0.03 -0.18 0.00 0.04 -0.30 -0.13 -0.04 NA [12,] -0.01 0.00 0.00 0.00 0.00 0.00 -0.02 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/1dgn51228438628.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/2t2cx1228438628.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/30v111228438628.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/446f71228438628.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,] 72.400 72.450 71.420 70.890 70.42 69.57 69.570 69.440 68.250 66.860 66.50 [2,] 79.335 79.395 78.785 77.665 77.44 77.38 77.380 77.075 76.340 75.925 75.49 [3,] 82.160 82.265 81.900 81.720 81.62 81.49 81.490 82.105 81.870 81.375 81.10 [4,] 87.530 87.290 86.575 85.515 85.27 85.13 85.125 85.115 85.055 84.500 84.34 [5,] 93.890 93.360 92.250 91.070 90.93 90.68 90.650 90.600 90.020 89.740 89.31 [,12] [1,] 66.460 [2,] 75.275 [3,] 81.030 [4,] 84.355 [5,] 89.160 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.58216 77.85474 77.5484 77.33488 77.24605 77.16074 77.16353 77.61374 [2,] 86.73784 86.67526 86.2516 86.10512 85.99395 85.81926 85.81647 86.59626 [,9] [,10] [,11] [,12] [1,] 77.00168 76.58488 76.15626 75.95778 [2,] 86.73832 86.16512 86.04374 86.10222 $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(72.4, 79.335, 82.16, 87.53, 93.89, 72.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5h17j1228438628.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] [1,] -0.530 -1.130 -1.970 -0.480 -0.250 -0.010 -0.130 -1.190 -1.390 -0.630 [2,] -0.240 -1.090 -1.205 -0.365 -0.235 -0.005 -0.105 -0.865 -0.755 -0.465 [3,] -0.015 -0.880 -0.710 -0.235 -0.195 0.000 -0.035 -0.445 -0.495 -0.320 [4,] 0.115 -0.395 -0.270 -0.055 -0.075 0.000 0.010 -0.085 -0.285 -0.145 [5,] 0.180 0.340 -0.090 0.040 0.100 0.000 0.020 0.150 -0.140 -0.040 [,11] [,12] [1,] -0.300 -0.010 [2,] -0.165 -0.005 [3,] -0.085 0.000 [4,] 0.015 0.000 [5,] 0.040 0.000 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2133081 -1.268237 -1.2323044 -0.40817045 -0.2843783 -0.002793072 [2,] 0.1833081 -0.491763 -0.1876956 -0.06182955 -0.1056217 0.002793072 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.09924065 -0.880719199 -0.7575487 -0.4987566 -0.18555058 -0.002985919 [2,] 0.02924065 -0.009280801 -0.2324513 -0.1412434 0.01555058 0.002985919 $out [1] -0.85 -0.03 1.21 -0.53 -0.02 $group [1] 5 6 7 7 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.530000000000001, -0.240000000000002, -0.0150000000000006, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x8wn1228438628.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] [,9] [1,] 89.160 85.880 81.520 81.520 80.500 78.13 72.420 66.460 NA [2,] 89.880 86.545 82.465 81.770 80.780 78.74 73.525 67.555 NA [3,] 90.665 86.955 83.325 81.865 81.220 79.66 75.010 69.570 NA [4,] 91.660 87.805 84.285 82.820 81.775 80.45 76.020 71.155 NA [5,] 93.890 89.150 85.910 83.130 82.980 80.72 78.130 72.450 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 89.85313 86.3803 82.49489 81.38609 80.76617 78.88006 73.87201 67.92802 [2,] 91.47687 87.5297 84.15511 82.34391 81.67383 80.43994 76.14799 71.21198 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(89.16, 89.88, 90.665, 91.66, 93.89, 85.88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pz8h1228438628.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,] 79.61750 81.0300 80.14000 [2,] 80.31250 81.4325 80.65875 [3,] 81.05500 81.6700 81.37313 [4,] 81.87188 82.0025 82.26250 [5,] 83.04250 82.2650 83.32875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 80.34376 81.41002 80.64164 [2,] 81.76624 81.92998 82.10461 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(79.6175, 80.3125, 81.055, 81.871875, 83.0425, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dgn51228438628.ps tmp/1dgn51228438628.png") > system("convert tmp/2t2cx1228438628.ps tmp/2t2cx1228438628.png") > system("convert tmp/30v111228438628.ps tmp/30v111228438628.png") > system("convert tmp/446f71228438628.ps tmp/446f71228438628.png") > system("convert tmp/5h17j1228438628.ps tmp/5h17j1228438628.png") > system("convert tmp/6x8wn1228438628.ps tmp/6x8wn1228438628.png") > system("convert tmp/7pz8h1228438628.ps tmp/7pz8h1228438628.png") > > > proc.time() user system elapsed 2.583 1.584 2.817