R version 2.8.1 (2008-12-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(3.27,3.27,3.27,3.27,3.27,3.28,3.32,3.34,3.34,3.35,3.35,3.35,3.35,3.35,3.4,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.43,3.47,3.51,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.58,3.6,3.61,3.61,3.61,3.63,3.68,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.78,3.79,3.79,3.8,3.8,3.8,3.8,3.81,3.95,3.99,4,4.06,4.16,4.19,4.2,4.2,4.2,4.2,4.2,4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68,4.69,4.69,4.69,4.69,4.69,4.69,4.69,4.73,4.78,4.79,4.79,4.8,4.8,4.81,5.16,5.26,5.29,5.29,5.29,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.35,5.44,5.47,5.47,5.48,5.48,5.48,5.48) > 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] 131 > (np <- floor(n / par1)) [1] 10 > 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] 11 11 11 11 11 11 11 11 11 11 11 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 3.27 3.35 3.42 3.52 3.69 3.81 4.23 4.45 4.69 4.80 5.30 [2,] 3.27 3.35 3.42 3.52 3.69 3.95 4.38 4.45 4.69 4.81 5.30 [3,] 3.27 3.40 3.43 3.58 3.69 3.99 4.43 4.45 4.69 5.16 5.30 [4,] 3.27 3.42 3.47 3.60 3.69 4.00 4.44 4.45 4.69 5.26 5.35 [5,] 3.27 3.42 3.51 3.61 3.69 4.06 4.44 4.46 4.69 5.29 5.44 [6,] 3.28 3.42 3.52 3.61 3.78 4.16 4.44 4.46 4.69 5.29 5.47 [7,] 3.32 3.42 3.52 3.61 3.79 4.19 4.44 4.46 4.69 5.29 5.47 [8,] 3.34 3.42 3.52 3.63 3.79 4.20 4.44 4.48 4.73 5.30 5.48 [9,] 3.34 3.42 3.52 3.68 3.80 4.20 4.45 4.58 4.78 5.30 5.48 [10,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.67 4.79 5.30 5.48 [11,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.68 4.79 5.30 5.48 [12,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.68 4.80 5.30 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0.00 0.00 0.00 0.00 0.00 0.14 0.15 0.00 0.00 0.01 0.00 [2,] 0.00 0.05 0.01 0.06 0.00 0.04 0.05 0.00 0.00 0.35 0.00 [3,] 0.00 0.02 0.04 0.02 0.00 0.01 0.01 0.00 0.00 0.10 0.05 [4,] 0.00 0.00 0.04 0.01 0.00 0.06 0.00 0.01 0.00 0.03 0.09 [5,] 0.01 0.00 0.01 0.00 0.09 0.10 0.00 0.00 0.00 0.00 0.03 [6,] 0.04 0.00 0.00 0.00 0.01 0.03 0.00 0.00 0.00 0.00 0.00 [7,] 0.02 0.00 0.00 0.02 0.00 0.01 0.00 0.02 0.04 0.01 0.01 [8,] 0.00 0.00 0.00 0.05 0.01 0.00 0.01 0.10 0.05 0.00 0.00 [9,] 0.01 0.00 0.00 0.01 0.00 0.00 0.00 0.09 0.01 0.00 0.00 [10,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 [11,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 NA [12,] 0.00 0.00 0.00 0.00 0.01 0.03 0.00 0.01 0.00 0.00 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/1r8jm1241683903.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/2xy1s1241683903.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/33nsa1241683903.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/4x1dd1241683903.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,] 3.27 3.27 3.270 3.270 3.270 3.280 3.320 3.340 3.34 3.350 3.350 3.35 [2,] 3.47 3.47 3.505 3.535 3.560 3.565 3.565 3.575 3.60 3.605 3.605 3.52 [3,] 3.81 3.95 3.990 4.000 4.060 4.160 4.190 4.200 4.20 4.200 4.200 4.00 [4,] 4.57 4.57 4.570 4.570 4.575 4.575 4.575 4.605 4.68 4.730 4.735 4.68 [5,] 5.30 5.30 5.300 5.350 5.440 5.470 5.470 5.480 5.48 5.480 5.480 5.30 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.285973 3.425973 3.482647 3.506938 3.576466 3.678848 3.708848 3.709320 [2,] 4.334027 4.474027 4.497353 4.493062 4.543534 4.641152 4.671152 4.690680 [,9] [,10] [,11] [,12] [1,] 3.685501 3.664064 3.661682 3.420418 [2,] 4.714499 4.735936 4.738318 4.579582 $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(3.27, 3.47, 3.81, 4.57, 5.3, 3.27, 3.47, 3.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r72e1241683903.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.00 0.00 0.000 0.00 0.000 0.00 0.00 0.00 0 0 0.00 [2,] 0.000 0.00 0.00 0.000 0.00 0.000 0.00 0.00 0.00 0 0 0.00 [3,] 0.000 0.01 0.01 0.010 0.00 0.000 0.01 0.00 0.00 0 0 0.00 [4,] 0.005 0.05 0.03 0.035 0.02 0.005 0.02 0.03 0.01 0 0 0.01 [5,] 0.010 0.06 0.05 0.060 0.03 0.010 0.04 0.05 0.01 0 0 0.01 $n [1] 11 11 11 11 11 11 11 11 11 11 10 10 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.002381940 -0.01381940 -0.004291638 -0.006673577 -0.009527758 [2,] 0.002381940 0.03381940 0.024291638 0.026673577 0.009527758 [,6] [,7] [,8] [,9] [,10] [,11] [1,] -0.002381940 0.0004722415 -0.01429164 -0.004763879 0 0 [2,] 0.002381940 0.0195277585 0.01429164 0.004763879 0 0 [,12] [1,] -0.004996399 [2,] 0.004996399 $out [1] 0.14 0.15 0.35 0.10 0.09 0.09 0.10 0.04 0.03 0.10 0.09 0.01 0.01 0.03 $group [1] 1 1 2 3 4 5 5 6 6 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.00499999999999989, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6u51i1241683903.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] [1,] 3.270 3.40 3.42 3.520 3.690 3.810 4.430 4.450 4.690 5.16 5.300 [2,] 3.270 3.41 3.45 3.590 3.690 3.995 4.435 4.450 4.690 5.21 5.325 [3,] 3.300 3.42 3.52 3.610 3.785 4.175 4.440 4.460 4.690 5.29 5.470 [4,] 3.345 3.42 3.52 3.685 3.800 4.200 4.450 4.625 4.785 5.30 5.480 [5,] 3.350 3.42 3.52 3.690 3.800 4.200 4.450 4.680 4.800 5.30 5.480 $n [1] 12 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.265792 3.415439 3.488073 3.56667 3.734828 4.081498 4.433158 4.380181 [2,] 3.334208 3.424561 3.551927 3.65333 3.835172 4.268502 4.446842 4.539819 [,9] [,10] [,11] [1,] 4.64667 5.24895 5.39616 [2,] 4.73333 5.33105 5.54384 $out [1] 3.35 3.35 4.23 4.38 4.80 4.81 $group [1] 2 2 7 7 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(3.27, 3.27, 3.3, 3.345, 3.35, 3.4, 3.41, 3.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dkd71241683903.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,] 4.048182 3.810 4.02000 [2,] 4.123682 3.995 4.04500 [3,] 4.181818 4.110 4.07000 [4,] 4.221818 4.200 4.11625 [5,] 4.243636 4.200 4.17000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.137058 4.016498 4.037502 [2,] 4.226579 4.203502 4.102498 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(4.04818181818182, 4.12368181818182, 4.18181818181818, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1r8jm1241683903.ps tmp/1r8jm1241683903.png") > system("convert tmp/2xy1s1241683903.ps tmp/2xy1s1241683903.png") > system("convert tmp/33nsa1241683903.ps tmp/33nsa1241683903.png") > system("convert tmp/4x1dd1241683903.ps tmp/4x1dd1241683903.png") > system("convert tmp/5r72e1241683903.ps tmp/5r72e1241683903.png") > system("convert tmp/6u51i1241683903.ps tmp/6u51i1241683903.png") > system("convert tmp/7dkd71241683903.ps tmp/7dkd71241683903.png") > > > proc.time() user system elapsed 1.248 1.011 1.893