R version 2.8.0 (2008-10-20) 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(88.32,88.32,88.32,88.24,88.32,88.94,89.26,89.34,89.49,89.49,89.73,89.65,90.20,91.62,91.85,92.01,92.48,93.27,93.58,93.58,93.82,93.82,93.98,93.74,94.13,95.63,96.10,97.28,97.83,98.07,98.15,98.15,97.99,97.91,98.22,98.22,98.77,99.32,99.48,99.48,99.72,99.88,99.80,99.95,100.43,101.13,101.13,100.90,100.97,101.04,100.87,100.74,100.84,101.07,101.35,101.51,102.20,102.01,102.24,102.15,102.17) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88.32 90.20 94.13 98.77 100.97 102.17 [2,] 88.32 91.62 95.63 99.32 101.04 NA [3,] 88.32 91.85 96.10 99.48 100.87 NA [4,] 88.24 92.01 97.28 99.48 100.74 NA [5,] 88.32 92.48 97.83 99.72 100.84 NA [6,] 88.94 93.27 98.07 99.88 101.07 NA [7,] 89.26 93.58 98.15 99.80 101.35 NA [8,] 89.34 93.58 98.15 99.95 101.51 NA [9,] 89.49 93.82 97.99 100.43 102.20 NA [10,] 89.49 93.82 97.91 101.13 102.01 NA [11,] 89.73 93.98 98.22 101.13 102.24 NA [12,] 89.65 93.74 98.22 100.90 102.15 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 1.42 1.50 0.55 0.07 NA [2,] 0.00 0.23 0.47 0.16 -0.17 NA [3,] -0.08 0.16 1.18 0.00 -0.13 NA [4,] 0.08 0.47 0.55 0.24 0.10 NA [5,] 0.62 0.79 0.24 0.16 0.23 NA [6,] 0.32 0.31 0.08 -0.08 0.28 NA [7,] 0.08 0.00 0.00 0.15 0.16 NA [8,] 0.15 0.24 -0.16 0.48 0.69 NA [9,] 0.00 0.00 -0.08 0.70 -0.19 NA [10,] 0.24 0.16 0.31 0.00 0.23 NA [11,] -0.08 -0.24 0.00 -0.23 -0.09 NA [12,] 0.55 0.39 0.55 0.07 0.02 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/freestat/rcomp/tmp/1gqet1228470432.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/freestat/rcomp/tmp/2dg4u1228470432.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/freestat/rcomp/tmp/3x65d1228470432.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/freestat/rcomp/tmp/46e1x1228470432.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,] 88.32 88.32 88.32 88.24 88.32 88.94 89.26 89.34 89.49 89.49 [2,] 90.20 91.62 91.85 92.01 92.48 93.27 93.58 93.58 93.82 93.82 [3,] 96.45 95.63 96.10 97.28 97.83 98.07 98.15 98.15 97.99 97.91 [4,] 100.97 99.32 99.48 99.48 99.72 99.88 99.80 99.95 100.43 101.13 [5,] 102.17 101.04 100.87 100.74 100.84 101.07 101.35 101.51 102.20 102.01 [,11] [,12] [1,] 89.73 89.65 [2,] 93.98 93.74 [3,] 98.22 98.22 [4,] 101.13 100.90 [5,] 102.24 102.15 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 89.503 90.1892 90.70866 92.00172 92.71423 93.39939 93.75496 [2,] 103.397 101.0708 101.49134 102.55828 102.94577 102.74061 102.54504 [,8] [,9] [,10] [,11] [,12] [1,] 93.64897 93.31939 92.74477 93.16783 93.16076 [2,] 102.65103 102.66061 103.07523 103.27217 103.27924 $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(88.32, 90.2, 96.45, 100.97, 102.17, 88.32, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5neog1228470432.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.00 -0.17 -0.13 0.08 0.16 -0.08 0.00 -0.16 -0.19 0.16 -0.24 0.02 [2,] 0.07 0.00 -0.08 0.10 0.23 0.08 0.00 0.15 -0.08 0.16 -0.23 0.07 [3,] 0.55 0.16 0.00 0.24 0.24 0.28 0.08 0.24 0.00 0.23 -0.09 0.39 [4,] 1.42 0.23 0.16 0.47 0.62 0.31 0.15 0.48 0.00 0.24 -0.08 0.55 [5,] 1.50 0.47 0.16 0.55 0.79 0.32 0.16 0.69 0.00 0.31 0.00 0.55 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.4039066 -0.002517421 -0.1695834 -0.02144107 -0.03557302 0.1174826 [2,] 1.5039066 0.322517421 0.1695834 0.50144107 0.51557302 0.4425174 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02598962 0.006822831 -0.0565278 0.1734722 -0.19598962 0.05083321 [2,] 0.18598962 0.473177169 0.0565278 0.2865278 0.01598962 0.72916679 $out [1] 1.18 0.70 0.00 $group [1] 3 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.0700000000000074, 0.549999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/697mt1228470432.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] [1,] 88.24 90.200 95.63 98.770 100.74 102.17 [2,] 88.32 91.930 96.69 99.480 100.92 102.17 [3,] 89.10 93.425 97.95 99.840 101.21 102.17 [4,] 89.49 93.780 98.15 100.665 102.08 102.17 [5,] 89.73 93.980 98.22 101.130 102.24 102.17 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88.56636 92.5812 97.28408 99.29951 100.6809 102.17 [2,] 89.63364 94.2688 98.61592 100.38049 101.7391 102.17 $out [1] 94.13 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(88.24, 88.32, 89.1, 89.49, 89.73, 90.2, 91.93, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7eql81228470432.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,] 95.186 95.630 95.47000 [2,] 95.655 96.865 95.77312 [3,] 96.337 97.950 96.63250 [4,] 96.829 98.150 97.22250 [5,] 97.060 98.220 97.55500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 95.80153 97.3639 95.97143 [2,] 96.87247 98.5361 97.29357 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(95.186, 95.655, 96.337, 96.829, 97.06, 95.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gqet1228470432.ps tmp/1gqet1228470432.png") > system("convert tmp/2dg4u1228470432.ps tmp/2dg4u1228470432.png") > system("convert tmp/3x65d1228470432.ps tmp/3x65d1228470432.png") > system("convert tmp/46e1x1228470432.ps tmp/46e1x1228470432.png") > system("convert tmp/5neog1228470432.ps tmp/5neog1228470432.png") > system("convert tmp/697mt1228470432.ps tmp/697mt1228470432.png") > system("convert tmp/7eql81228470432.ps tmp/7eql81228470432.png") > > > proc.time() user system elapsed 1.869 1.480 2.260