R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(5.81,5.76,5.99,6.12,6.03,6.25,5.80,5.67,5.89,5.91,5.86,6.07,6.27,6.68,6.77,6.71,6.62,6.50,5.89,6.05,6.43,6.47,6.62,6.77,6.70,6.95,6.73,7.07,7.28,7.32,6.76,6.93,6.99,7.16,7.28,7.08,7.34,7.87,6.28,6.30,6.36,6.28,5.89,6.04,5.96,6.10,6.26,6.02,6.25,6.41,6.22,6.57,6.18,6.26,6.10,6.02,6.06,6.35,6.21,6.48,6.74,6.53,6.80,6.75,6.56,6.66,6.18,6.40,6.43,6.54,6.44,6.64,6.82,6.97,7.00,6.91,6.74,6.98,6.37,6.56,6.63,6.87,6.68,6.75,6.84,7.15,7.09,6.97,7.15) > 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] 89 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.81 6.27 6.70 7.34 6.25 6.74 6.82 6.84 [2,] 5.76 6.68 6.95 7.87 6.41 6.53 6.97 7.15 [3,] 5.99 6.77 6.73 6.28 6.22 6.80 7.00 7.09 [4,] 6.12 6.71 7.07 6.30 6.57 6.75 6.91 6.97 [5,] 6.03 6.62 7.28 6.36 6.18 6.56 6.74 7.15 [6,] 6.25 6.50 7.32 6.28 6.26 6.66 6.98 NA [7,] 5.80 5.89 6.76 5.89 6.10 6.18 6.37 NA [8,] 5.67 6.05 6.93 6.04 6.02 6.40 6.56 NA [9,] 5.89 6.43 6.99 5.96 6.06 6.43 6.63 NA [10,] 5.91 6.47 7.16 6.10 6.35 6.54 6.87 NA [11,] 5.86 6.62 7.28 6.26 6.21 6.44 6.68 NA [12,] 6.07 6.77 7.08 6.02 6.48 6.64 6.75 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.05 0.41 0.25 0.53 0.16 -0.21 0.15 0.31 [2,] 0.23 0.09 -0.22 -1.59 -0.19 0.27 0.03 -0.06 [3,] 0.13 -0.06 0.34 0.02 0.35 -0.05 -0.09 -0.12 [4,] -0.09 -0.09 0.21 0.06 -0.39 -0.19 -0.17 0.18 [5,] 0.22 -0.12 0.04 -0.08 0.08 0.10 0.24 NA [6,] -0.45 -0.61 -0.56 -0.39 -0.16 -0.48 -0.61 NA [7,] -0.13 0.16 0.17 0.15 -0.08 0.22 0.19 NA [8,] 0.22 0.38 0.06 -0.08 0.04 0.03 0.07 NA [9,] 0.02 0.04 0.17 0.14 0.29 0.11 0.24 NA [10,] -0.05 0.15 0.12 0.16 -0.14 -0.10 -0.19 NA [11,] 0.21 0.15 -0.20 -0.24 0.27 0.20 0.07 NA [12,] 0.20 -0.07 0.26 0.23 0.26 0.18 0.09 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/rcomp/tmp/1kh3m1304347158.ps",horizontal=F,onefile=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/rcomp/tmp/2zdfd1304347158.ps",horizontal=F,onefile=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/rcomp/tmp/3hmck1304347158.ps",horizontal=F,onefile=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/rcomp/tmp/4hoa11304347158.ps",horizontal=F,onefile=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,] 5.81 5.760 5.99 6.120 6.030 6.25 5.800 5.67 5.89 5.910 5.860 6.020 [2,] 6.26 6.470 6.25 6.435 6.270 6.27 5.890 6.03 6.01 6.225 6.235 6.275 [3,] 6.72 6.815 6.75 6.730 6.590 6.50 6.100 6.05 6.43 6.470 6.440 6.640 [4,] 6.83 7.060 6.90 6.940 6.945 6.82 6.275 6.48 6.53 6.705 6.650 6.760 [5,] 7.34 7.870 7.09 7.070 7.280 7.32 6.760 6.93 6.99 7.160 6.680 7.080 $n [1] 8 8 8 8 8 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.40159 6.485418 6.386901 6.4479 6.212935 6.171549 5.870084 5.781267 [2,] 7.03841 7.144582 7.113099 7.0121 6.967065 6.828451 6.329916 6.318733 [,9] [,10] [,11] [,12] [1,] 6.119464 6.183352 6.192169 6.350366 [2,] 6.740536 6.756648 6.687831 6.929634 $out [1] 7.28 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(5.81, 6.26, 6.72, 6.83, 7.34, 5.76, 6.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/52mr41304347158.ps",horizontal=F,onefile=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.210 -0.220 -0.120 -0.39 -0.12 -0.610 -0.130 -0.080 0.020 -0.190 -0.240 [2,] 0.050 -0.205 -0.075 -0.18 -0.02 -0.585 0.035 0.035 0.075 -0.120 -0.065 [3,] 0.205 -0.015 -0.015 -0.09 0.08 -0.480 0.160 0.060 0.140 -0.050 0.150 [4,] 0.360 0.160 0.235 0.12 0.16 -0.420 0.180 0.145 0.205 0.135 0.205 [5,] 0.530 0.270 0.350 0.21 0.24 -0.390 0.220 0.220 0.290 0.160 0.270 [,12] [1,] 0.090 [2,] 0.135 [3,] 0.200 [4,] 0.245 [5,] 0.260 $n [1] 8 8 8 8 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.03182955 -0.2188942 -0.1881705 -0.2575843 -0.02749310 -0.5785353 [2,] 0.37817045 0.1888942 0.1581705 0.0775843 0.18749310 -0.3814647 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.07340834 -0.005690225 0.0623661 -0.2022819 -0.01123964 0.1343098 [2,] 0.24659166 0.125690225 0.2176339 0.1022819 0.31123964 0.2656902 $out [1] -1.59 -0.16 0.38 -0.07 $group [1] 2 6 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.21, 0.0499999999999998, 0.205, 0.36, 0.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6x5cc1304347158.ps",horizontal=F,onefile=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] [1,] 5.670 5.890 6.700 5.89 6.020 6.180 6.370 6.84 [2,] 5.805 6.350 6.845 6.03 6.140 6.435 6.655 6.97 [3,] 5.900 6.560 7.030 6.27 6.235 6.550 6.785 7.09 [4,] 6.050 6.695 7.220 6.33 6.380 6.700 6.940 7.15 [5,] 6.250 6.770 7.320 6.36 6.570 6.800 7.000 7.15 $n [1] 12 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.788254 6.402643 6.85896 6.133168 6.125534 6.429132 6.65501 6.962812 [2,] 6.011746 6.717357 7.20104 6.406832 6.344466 6.670868 6.91499 7.217188 $out [1] 7.34 7.87 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5.67, 5.805, 5.9, 6.05, 6.25, 5.89, 6.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7pngq1304347158.ps",horizontal=F,onefile=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,] 6.141429 6.050 6.082500 [2,] 6.410000 6.435 6.356250 [3,] 6.570268 6.545 6.531250 [4,] 6.612500 6.725 6.568125 [5,] 6.790000 6.815 6.757500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.477906 6.412729 6.434612 [2,] 6.662629 6.677271 6.627888 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.14142857142857, 6.41, 6.57026785714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kh3m1304347158.ps tmp/1kh3m1304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/2zdfd1304347158.ps tmp/2zdfd1304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/3hmck1304347158.ps tmp/3hmck1304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/4hoa11304347158.ps tmp/4hoa11304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/52mr41304347158.ps tmp/52mr41304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/6x5cc1304347158.ps tmp/6x5cc1304347158.png",intern=TRUE)) character(0) > try(system("convert tmp/7pngq1304347158.ps tmp/7pngq1304347158.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.040 0.528 2.559