R version 2.6.2 (2008-02-08) 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(20.18,20.19,20.3,20.47,20.47,20.46,20.46,20.46,20.52,20.64,20.65,20.66,20.66,20.66,20.67,20.71,20.73,20.73,20.74,20.74,20.75,20.75,20.77,20.78,20.78,20.8,20.84,20.85,20.86,20.86,20.86,20.86,20.9,20.92,20.95,20.95,20.95,20.96,21.1,21.18,21.19,21.19,21.19,21.19,21.19,21.21,21.22,21.22,21.22,21.23,21.41,21.42,21.43,21.44,21.44,21.44,21.48,21.53,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.57,21.6,21.61,21.6,21.6,21.71,21.75,21.84,21.85,21.92,21.92,21.93,22,22,21.99,22.01,22.01,22.06,22.03,22.05,22.05,22.06,22.06,22.13,22.06,22.25,22.28,22.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] 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,] 20.18 20.66 20.78 20.95 21.22 21.54 21.60 22.01 NA [2,] 20.19 20.66 20.80 20.96 21.23 21.54 21.71 22.06 NA [3,] 20.30 20.67 20.84 21.10 21.41 21.54 21.75 22.03 NA [4,] 20.47 20.71 20.85 21.18 21.42 21.54 21.84 22.05 NA [5,] 20.47 20.73 20.86 21.19 21.43 21.54 21.85 22.05 NA [6,] 20.46 20.73 20.86 21.19 21.44 21.54 21.92 22.06 NA [7,] 20.46 20.74 20.86 21.19 21.44 21.54 21.92 22.06 NA [8,] 20.46 20.74 20.86 21.19 21.44 21.54 21.93 22.13 NA [9,] 20.52 20.75 20.90 21.19 21.48 21.57 22.00 22.06 NA [10,] 20.64 20.75 20.92 21.21 21.53 21.60 22.00 22.25 NA [11,] 20.65 20.77 20.95 21.22 21.54 21.61 21.99 22.28 NA [12,] 20.66 20.78 20.95 21.22 21.54 21.60 22.01 22.18 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.01 0.00 0.02 0.01 0.01 0.00 0.11 0.05 NA [2,] 0.11 0.01 0.04 0.14 0.18 0.00 0.04 -0.03 NA [3,] 0.17 0.04 0.01 0.08 0.01 0.00 0.09 0.02 NA [4,] 0.00 0.02 0.01 0.01 0.01 0.00 0.01 0.00 NA [5,] -0.01 0.00 0.00 0.00 0.01 0.00 0.07 0.01 NA [6,] 0.00 0.01 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.07 NA [8,] 0.06 0.01 0.04 0.00 0.04 0.03 0.07 -0.07 NA [9,] 0.12 0.00 0.02 0.02 0.05 0.03 0.00 0.19 NA [10,] 0.01 0.02 0.03 0.01 0.01 0.01 -0.01 0.03 NA [11,] 0.01 0.01 0.00 0.00 0.00 -0.01 0.02 -0.10 NA [12,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 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/148q11209375380.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/2kdwa1209375380.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/3rk9g1209375380.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/4l17s1209375380.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,] 20.180 20.190 20.300 20.47 20.470 20.460 20.460 20.460 20.520 20.640 20.65 [2,] 20.720 20.730 20.755 20.78 20.795 20.795 20.800 20.800 20.825 20.835 20.86 [3,] 21.085 21.095 21.255 21.30 21.310 21.315 21.315 21.315 21.335 21.370 21.38 [4,] 21.570 21.625 21.645 21.69 21.695 21.730 21.730 21.735 21.785 21.800 21.80 [5,] 22.010 22.060 22.030 22.05 22.050 22.060 22.060 22.130 22.060 22.250 22.28 [,12] [1,] 20.660 [2,] 20.865 [3,] 21.380 [4,] 21.805 [5,] 22.180 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20.61018 20.59504 20.75783 20.79166 20.80725 20.79270 20.79549 20.79270 [2,] 21.55982 21.59496 21.75217 21.80834 21.81275 21.83730 21.83451 21.83730 [,9] [,10] [,11] [,12] [1,] 20.79873 20.83094 20.85490 20.85490 [2,] 21.87127 21.90906 21.90510 21.90510 $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(20.18, 20.72, 21.085, 21.57, 22.01, 20.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5dwo01209375380.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,] 0.000 -0.030 0.000 0.00 -0.01 0 0.000 0.000 0.000 -0.010 -0.010 0 [2,] 0.005 0.005 0.010 0.00 0.00 0 0.000 0.005 0.010 0.010 -0.005 0 [3,] 0.010 0.040 0.030 0.01 0.00 0 0.000 0.035 0.025 0.010 0.000 0 [4,] 0.035 0.125 0.085 0.01 0.01 0 0.005 0.050 0.085 0.025 0.010 0 [5,] 0.050 0.180 0.170 0.02 0.01 0 0.010 0.070 0.190 0.030 0.020 0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.006758431 -0.02703372 -0.01189608 0.004413856 -0.005586144 0 [2,] 0.026758431 0.10703372 0.07189608 0.015586144 0.005586144 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.002793072 0.009862354 -0.01689608 0.001620785 -0.008379215 0 [2,] 0.002793072 0.060137646 0.06689608 0.018379215 0.008379215 0 $out [1] 0.11 0.07 0.01 0.07 -0.07 -0.10 $group [1] 1 5 6 7 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.00500000000000078, 0.0100000000000016, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67ma21209375380.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,] 20.180 20.660 20.780 21.10 21.410 21.540 21.600 22.010 NA [2,] 20.380 20.690 20.845 21.14 21.415 21.540 21.795 22.050 NA [3,] 20.465 20.735 20.860 21.19 21.440 21.540 21.920 22.060 NA [4,] 20.580 20.750 20.910 21.20 21.505 21.585 21.995 22.155 NA [5,] 20.660 20.780 20.950 21.22 21.540 21.610 22.010 22.280 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20.37378 20.70763 20.83035 21.16263 21.39895 21.51948 21.82878 22.01211 [2,] 20.55622 20.76237 20.88965 21.21737 21.48105 21.56052 22.01122 22.10789 [,9] [1,] NA [2,] NA $out [1] 20.95 20.96 21.22 21.23 $group [1] 4 4 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(20.18, 20.38, 20.465, 20.58, 20.66, 20.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7abkh1209375380.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,] 21.11750 21.2550 21.15250 [2,] 21.23125 21.2775 21.20500 [3,] 21.27562 21.3150 21.23188 [4,] 21.33563 21.3525 21.27938 [5,] 21.37625 21.3800 21.30500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 21.22802 21.28079 21.19795 [2,] 21.32323 21.34921 21.26580 $out [1] 21.085 21.095 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(21.1175, 21.23125, 21.275625, 21.335625, 21.37625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/148q11209375380.ps tmp/148q11209375380.png") > system("convert tmp/2kdwa1209375380.ps tmp/2kdwa1209375380.png") > system("convert tmp/3rk9g1209375380.ps tmp/3rk9g1209375380.png") > system("convert tmp/4l17s1209375380.ps tmp/4l17s1209375380.png") > system("convert tmp/5dwo01209375380.ps tmp/5dwo01209375380.png") > system("convert tmp/67ma21209375380.ps tmp/67ma21209375380.png") > system("convert tmp/7abkh1209375380.ps tmp/7abkh1209375380.png") > > > proc.time() user system elapsed 1.464 0.969 4.328