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(2.46,2.46,2.45,2.45,2.46,2.43,2.44,2.44,2.43,2.43,2.42,2.43,2.43,2.42,2.41,2.42,2.39,2.4,2.39,2.4,2.41,2.41,2.41,2.41,2.42,2.43,2.43,2.43,2.44,2.42,2.44,2.42,2.42,2.42,2.43,2.44,2.43,2.44,2.44,2.45,2.45,2.43,2.44,2.45,2.46,2.44,2.43,2.42,2.41,2.43,2.41,2.43,2.43,2.44,2.43,2.44,2.43,2.44,2.44,2.43,2.43,2.43,2.43,2.44,2.47,2.48,2.49,2.5,2.51,2.49,2.49,2.48,2.48,2.48,2.5,2.5,2.5,2.5,2.5,2.48,2.49,2.48,2.5,2.5,2.49,2.48,2.47,2.46,2.43,2.42,2.43,2.45,2.45,2.46,2.44,2.45,2.45,2.42,2.41,2.39,2.39,2.38,2.37,2.37,2.38,2.39,2.41,2.42,2.48,2.53,2.56,2.56,2.53,2.57,2.56,2.57,2.58,2.57,2.6,2.63,2.72,2.83,2.9,2.92,2.94,2.95,2.98,3.02,3.16,3.2,3.18,3.17,3.19) > 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] 133 > (np <- floor(n / par1)) [1] 11 > 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] 12 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 2.46 2.43 2.42 2.43 2.41 2.43 2.48 2.49 2.45 2.48 2.72 3.19 [2,] 2.46 2.42 2.43 2.44 2.43 2.43 2.48 2.48 2.42 2.53 2.83 NA [3,] 2.45 2.41 2.43 2.44 2.41 2.43 2.50 2.47 2.41 2.56 2.90 NA [4,] 2.45 2.42 2.43 2.45 2.43 2.44 2.50 2.46 2.39 2.56 2.92 NA [5,] 2.46 2.39 2.44 2.45 2.43 2.47 2.50 2.43 2.39 2.53 2.94 NA [6,] 2.43 2.40 2.42 2.43 2.44 2.48 2.50 2.42 2.38 2.57 2.95 NA [7,] 2.44 2.39 2.44 2.44 2.43 2.49 2.50 2.43 2.37 2.56 2.98 NA [8,] 2.44 2.40 2.42 2.45 2.44 2.50 2.48 2.45 2.37 2.57 3.02 NA [9,] 2.43 2.41 2.42 2.46 2.43 2.51 2.49 2.45 2.38 2.58 3.16 NA [10,] 2.43 2.41 2.42 2.44 2.44 2.49 2.48 2.46 2.39 2.57 3.20 NA [11,] 2.42 2.41 2.43 2.43 2.44 2.49 2.50 2.44 2.41 2.60 3.18 NA [12,] 2.43 2.41 2.44 2.42 2.43 2.48 2.50 2.45 2.42 2.63 3.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00 -0.01 0.01 0.01 0.02 0.00 0.00 -0.01 -0.03 0.05 0.11 NA [2,] -0.01 -0.01 0.00 0.00 -0.02 0.00 0.02 -0.01 -0.01 0.03 0.07 NA [3,] 0.00 0.01 0.00 0.01 0.02 0.01 0.00 -0.01 -0.02 0.00 0.02 NA [4,] 0.01 -0.03 0.01 0.00 0.00 0.03 0.00 -0.03 0.00 -0.03 0.02 NA [5,] -0.03 0.01 -0.02 -0.02 0.01 0.01 0.00 -0.01 -0.01 0.04 0.01 NA [6,] 0.01 -0.01 0.02 0.01 -0.01 0.01 0.00 0.01 -0.01 -0.01 0.03 NA [7,] 0.00 0.01 -0.02 0.01 0.01 0.01 -0.02 0.02 0.00 0.01 0.04 NA [8,] -0.01 0.01 0.00 0.01 -0.01 0.01 0.01 0.00 0.01 0.01 0.14 NA [9,] 0.00 0.00 0.00 -0.02 0.01 -0.02 -0.01 0.01 0.01 -0.01 0.04 NA [10,] -0.01 0.00 0.01 -0.01 0.00 0.00 0.02 -0.02 0.02 0.03 -0.02 NA [11,] 0.01 0.00 0.01 -0.01 -0.01 -0.01 0.00 0.01 0.01 0.03 -0.01 NA [12,] 0.00 0.01 -0.01 -0.01 0.00 0.00 -0.01 0.00 0.06 0.09 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/rcomp/tmp/1uicu1259681112.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/2x5ut1259681112.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/3o2zh1259681112.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/4im111259681112.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,] 2.410 2.42 2.410 2.39 2.390 2.38 2.370 2.37 2.380 2.390 2.410 2.410 [2,] 2.430 2.43 2.420 2.43 2.430 2.42 2.430 2.43 2.425 2.425 2.425 2.425 [3,] 2.455 2.44 2.440 2.45 2.450 2.43 2.440 2.45 2.450 2.440 2.440 2.440 [4,] 2.485 2.48 2.485 2.48 2.485 2.49 2.495 2.49 2.500 2.485 2.495 2.490 [5,] 2.490 2.53 2.560 2.50 2.530 2.57 2.560 2.57 2.580 2.570 2.600 2.500 $n [1] 12 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.429914 2.416181 2.409035 2.426181 2.423799 2.396653 2.409035 2.421417 [2,] 2.480086 2.463819 2.470965 2.473819 2.476201 2.463347 2.470965 2.478583 [,9] [,10] [,11] [,12] [1,] 2.414271 2.411417 2.406653 2.409035 [2,] 2.485729 2.468583 2.473347 2.470965 $out [1] 2.72 3.19 2.83 2.90 2.56 2.92 2.94 2.95 2.98 3.02 3.16 3.20 3.18 2.63 3.17 $group [1] 1 1 2 3 4 4 5 6 7 8 9 10 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.41, 2.43, 2.455, 2.485, 2.49, 2.42, 2.43, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tlzq1259681112.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,] -0.030 -0.02 -0.01 -0.030 -0.030 -0.01 0.00 -0.01 -0.02 -0.020 -0.01 [2,] -0.005 -0.01 0.00 -0.015 -0.015 -0.01 0.00 0.00 -0.01 -0.010 -0.01 [3,] 0.000 0.00 0.00 0.000 0.000 0.01 0.01 0.01 0.00 0.000 0.00 [4,] 0.015 0.01 0.01 0.010 0.010 0.01 0.01 0.01 0.01 0.015 0.01 [5,] 0.020 0.03 0.02 0.030 0.040 0.03 0.02 0.01 0.01 0.030 0.03 [,12] [1,] -0.010 [2,] -0.005 [3,] 0.000 [4,] 0.015 [5,] 0.020 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.009527758 -0.009527758 -0.004763879 -0.01190970 -0.01190970 [2,] 0.009527758 0.009527758 0.004763879 0.01190970 0.01190970 [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0.0004722415 0.005236121 0.005236121 -0.009527758 -0.01190970 -0.009527758 [2,] 0.0195277585 0.014763879 0.014763879 0.009527758 0.01190970 0.009527758 [,12] [1,] -0.009527758 [2,] 0.009527758 $out [1] 0.05 0.11 0.07 -0.02 -0.02 -0.02 0.04 0.14 0.04 0.06 0.09 $group [1] 1 1 2 3 7 7 7 8 9 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0300000000000002, -0.00500000000000012, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6189i1259681112.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] [,10] [,11] [,12] [1,] 2.420 2.390 2.420 2.42 2.43 2.430 2.48 2.420 2.370 2.530 2.720 3.19 [2,] 2.430 2.400 2.420 2.43 2.43 2.435 2.48 2.435 2.380 2.545 2.910 3.19 [3,] 2.440 2.410 2.430 2.44 2.43 2.480 2.50 2.450 2.390 2.565 2.965 3.19 [4,] 2.455 2.415 2.435 2.45 2.44 2.490 2.50 2.465 2.415 2.575 3.165 3.19 [5,] 2.460 2.430 2.440 2.46 2.44 2.510 2.50 2.490 2.450 2.600 3.200 3.19 $n [1] 12 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.428597 2.403158 2.423158 2.430878 2.425439 2.454914 2.490878 2.436317 [2,] 2.451403 2.416842 2.436842 2.449122 2.434561 2.505086 2.509122 2.463683 [,9] [,10] [,11] [,12] [1,] 2.374036 2.551317 2.848693 3.19 [2,] 2.405964 2.578683 3.081307 3.19 $out [1] 2.41 2.41 2.48 2.63 $group [1] 5 5 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(2.42, 2.43, 2.44, 2.455, 2.46, 2.39, 2.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qd2a1259681112.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,] 2.486364 2.430 2.452500 [2,] 2.493182 2.440 2.455000 [3,] 2.500455 2.440 2.456875 [4,] 2.521818 2.450 2.460000 [5,] 2.532500 2.455 2.462500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.487393 2.435439 2.454594 [2,] 2.513516 2.444561 2.459156 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.48636363636364, 2.49318181818182, 2.50045454545455, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uicu1259681112.ps tmp/1uicu1259681112.png") > system("convert tmp/2x5ut1259681112.ps tmp/2x5ut1259681112.png") > system("convert tmp/3o2zh1259681112.ps tmp/3o2zh1259681112.png") > system("convert tmp/4im111259681112.ps tmp/4im111259681112.png") > system("convert tmp/5tlzq1259681112.ps tmp/5tlzq1259681112.png") > system("convert tmp/6189i1259681112.ps tmp/6189i1259681112.png") > system("convert tmp/7qd2a1259681112.ps tmp/7qd2a1259681112.png") > > > proc.time() user system elapsed 1.198 0.935 2.289