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(4.26,4.26,4.07,4.26,4.4,4.46,4.34,4.18,4.11,3.98,3.85,3.66,3.59,3.57,3.76,3.6,3.43,3.26,3.3,3.31,3.14,3.3,3.49,3.39,3.37,3.54,3.7,3.96,4.03,4.02,4.04,3.92,3.79,3.83,3.76,3.82,4.06,4.11,4.01,4.22,4.34,4.64,4.62,4.44,4.39,4.42,4.28,4.41,4.25,4.23,4.23,4.37,4.51,4.84,4.85,4.58,4.56,4.46,4.26,3.87,4.13,4.24,4.03,3.93,4.03,4.12,3.92,3.77) > 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] 68 > (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 6 6 6 6 6 6 6 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4.26 3.59 3.37 4.06 4.25 4.13 [2,] 4.26 3.57 3.54 4.11 4.23 4.24 [3,] 4.07 3.76 3.70 4.01 4.23 4.03 [4,] 4.26 3.60 3.96 4.22 4.37 3.93 [5,] 4.40 3.43 4.03 4.34 4.51 4.03 [6,] 4.46 3.26 4.02 4.64 4.84 4.12 [7,] 4.34 3.30 4.04 4.62 4.85 3.92 [8,] 4.18 3.31 3.92 4.44 4.58 3.77 [9,] 4.11 3.14 3.79 4.39 4.56 NA [10,] 3.98 3.30 3.83 4.42 4.46 NA [11,] 3.85 3.49 3.76 4.28 4.26 NA [12,] 3.66 3.39 3.82 4.41 3.87 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 -0.02 0.17 0.05 -0.02 0.11 [2,] -0.19 0.19 0.16 -0.10 0.00 -0.21 [3,] 0.19 -0.16 0.26 0.21 0.14 -0.10 [4,] 0.14 -0.17 0.07 0.12 0.14 0.10 [5,] 0.06 -0.17 -0.01 0.30 0.33 0.09 [6,] -0.12 0.04 0.02 -0.02 0.01 -0.20 [7,] -0.16 0.01 -0.12 -0.18 -0.27 -0.15 [8,] -0.07 -0.17 -0.13 -0.05 -0.02 NA [9,] -0.13 0.16 0.04 0.03 -0.10 NA [10,] -0.13 0.19 -0.07 -0.14 -0.20 NA [11,] -0.19 -0.10 0.06 0.13 -0.39 NA [12,] -0.07 -0.02 0.24 -0.16 0.26 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/16a6p1259793735.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/2q35g1259793735.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/35uzd1259793735.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/4vs611259793735.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.370 3.54 3.70 3.60 4.030 3.26 3.30 3.31 3.14 3.30 3.49 3.39 [2,] 3.590 3.57 3.76 3.93 4.030 4.02 3.92 3.77 3.79 3.83 3.76 3.66 [3,] 4.095 4.17 4.02 4.09 4.185 4.29 4.19 4.05 4.11 3.98 3.85 3.82 [4,] 4.250 4.24 4.07 4.26 4.400 4.64 4.62 4.44 4.39 4.42 4.26 3.87 [5,] 4.260 4.26 4.23 4.37 4.510 4.84 4.85 4.58 4.56 4.46 4.28 3.87 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.669279 3.737828 3.82004 3.877139 3.946338 3.89008 3.738477 3.617828 [2,] 4.520721 4.602172 4.21996 4.302861 4.423662 4.68992 4.641523 4.482172 [,9] [,10] [,11] [,12] [1,] 3.686042 3.563107 3.496701 3.671615 [2,] 4.533958 4.396893 4.203299 3.968385 $out [1] 3.43 4.41 $group [1] 5 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3.37, 3.59, 4.095, 4.25, 4.26, 3.54, 3.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56wcp1259793735.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.020 -0.21 -0.160 0.07 -0.170 -0.200 -0.180 -0.17 -0.13 -0.20 -0.39 [2,] -0.020 -0.19 -0.100 0.07 -0.010 -0.120 -0.180 -0.13 -0.10 -0.14 -0.19 [3,] 0.025 -0.05 0.165 0.11 0.075 -0.005 -0.155 -0.07 0.03 -0.13 -0.10 [4,] 0.110 0.16 0.210 0.14 0.300 0.020 -0.120 -0.05 0.04 -0.07 0.06 [5,] 0.170 0.19 0.260 0.14 0.330 0.040 -0.120 -0.02 0.16 -0.07 0.13 [,12] [1,] -0.16 [2,] -0.07 [3,] -0.02 [4,] 0.24 [5,] 0.26 $n [1] 6 6 6 6 6 6 6 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.0588542 -0.2757613 -0.03496001 0.06484774 -0.1249600 -0.09530452 [2,] 0.1088542 0.1757613 0.36496001 0.15515226 0.2749600 0.08530452 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1937019 -0.12652780 -0.06892365 -0.17946182 -0.27664937 -0.2390452 [2,] -0.1162981 -0.01347220 0.12892365 -0.08053818 0.07664937 0.1990452 $out [1] -0.17 0.01 -0.27 0.19 $group [1] 4 7 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.02, -0.0199999999999996, 0.0250000000000004, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z0ne1259793735.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,] 3.660 3.14 3.370 4.010 3.870 3.770 [2,] 4.025 3.30 3.730 4.165 4.240 3.925 [3,] 4.220 3.41 3.825 4.365 4.415 4.030 [4,] 4.300 3.58 3.990 4.430 4.570 4.125 [5,] 4.460 3.76 4.040 4.640 4.850 4.240 $n [1] 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4.094571 3.28229 3.706412 4.244132 4.264485 3.918277 [2,] 4.345429 3.53771 3.943588 4.485868 4.565515 4.141723 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(3.66, 4.025, 4.22, 4.3, 4.46, 3.14, 3.3, 3.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7k4l11259793735.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,] 3.830000 3.8200 3.765000 [2,] 3.955000 4.0000 3.967500 [3,] 3.998000 4.0925 4.090625 [4,] 4.090000 4.1775 4.166250 [5,] 4.223333 4.2900 4.320000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.936426 4.011541 3.999974 [2,] 4.059574 4.173459 4.181276 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.83, 3.955, 3.998, 4.09, 4.22333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16a6p1259793735.ps tmp/16a6p1259793735.png") > system("convert tmp/2q35g1259793735.ps tmp/2q35g1259793735.png") > system("convert tmp/35uzd1259793735.ps tmp/35uzd1259793735.png") > system("convert tmp/4vs611259793735.ps tmp/4vs611259793735.png") > system("convert tmp/56wcp1259793735.ps tmp/56wcp1259793735.png") > system("convert tmp/6z0ne1259793735.ps tmp/6z0ne1259793735.png") > system("convert tmp/7k4l11259793735.ps tmp/7k4l11259793735.png") > > > proc.time() user system elapsed 1.228 0.981 2.386