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(12.11,11.42,11.71,12.04,12.21,12,12.36,12.32,12.96,12.79,13.19,12.34,13.25,12.54,12.77,12.96,13,13.61,13.8,14.16,14.27,14.69,15.01,15.09,15.14,14.2,13.83,14.31,14.04,14.9,14.92,15.36,15.5,15.65,16.18,15.44,15.58,15.24,15.33,16.07,15.82,15.87,15.72,17.07,16.83,17.52,17.76,17.36,17.95,16.71,17.14,16.72,17.26,17.24,17.69,18.13,18.08,18.18,18.18,17.64,17.89,16.82,16.61,16.66,17.02,16.91,17.18,18.06,17.58,17.48,17.54,17.44,17.79,16.79,16.19,16.62,16.39,16.54,17.26,18,17.29,18.16,17.82,17.48,18.31,17.04,17.03,16.97,17.11,17.12,17.69,18.5,18.27,18.45,18.35,18.03,18.49,18.07,17.8,17.88,18.12,18.68,18.8,19.64,19.56,19.3,20.07,19.82,20.29,19.36,18.74,18.87,18.87,18.91,19.31,20.06,20.72,20.42,20.58,20.58,21.18,19.87,19.83,19.48,19.49,19.4,19.89,20.44,20.07,19.75,19.54,19.07) > 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] 132 > (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] 11 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,] 12.11 13.25 15.14 15.58 17.95 17.89 17.79 18.31 18.49 20.29 21.18 NA [2,] 11.42 12.54 14.20 15.24 16.71 16.82 16.79 17.04 18.07 19.36 19.87 NA [3,] 11.71 12.77 13.83 15.33 17.14 16.61 16.19 17.03 17.80 18.74 19.83 NA [4,] 12.04 12.96 14.31 16.07 16.72 16.66 16.62 16.97 17.88 18.87 19.48 NA [5,] 12.21 13.00 14.04 15.82 17.26 17.02 16.39 17.11 18.12 18.87 19.49 NA [6,] 12.00 13.61 14.90 15.87 17.24 16.91 16.54 17.12 18.68 18.91 19.40 NA [7,] 12.36 13.80 14.92 15.72 17.69 17.18 17.26 17.69 18.80 19.31 19.89 NA [8,] 12.32 14.16 15.36 17.07 18.13 18.06 18.00 18.50 19.64 20.06 20.44 NA [9,] 12.96 14.27 15.50 16.83 18.08 17.58 17.29 18.27 19.56 20.72 20.07 NA [10,] 12.79 14.69 15.65 17.52 18.18 17.48 18.16 18.45 19.30 20.42 19.75 NA [11,] 13.19 15.01 16.18 17.76 18.18 17.54 17.82 18.35 20.07 20.58 19.54 NA [12,] 12.34 15.09 15.44 17.36 17.64 17.44 17.48 18.03 19.82 20.58 19.07 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.69 -0.71 -0.94 -0.34 -1.24 -1.07 -1.00 -1.27 -0.42 -0.93 -1.31 NA [2,] 0.29 0.23 -0.37 0.09 0.43 -0.21 -0.60 -0.01 -0.27 -0.62 -0.04 NA [3,] 0.33 0.19 0.48 0.74 -0.42 0.05 0.43 -0.06 0.08 0.13 -0.35 NA [4,] 0.17 0.04 -0.27 -0.25 0.54 0.36 -0.23 0.14 0.24 0.00 0.01 NA [5,] -0.21 0.61 0.86 0.05 -0.02 -0.11 0.15 0.01 0.56 0.04 -0.09 NA [6,] 0.36 0.19 0.02 -0.15 0.45 0.27 0.72 0.57 0.12 0.40 0.49 NA [7,] -0.04 0.36 0.44 1.35 0.44 0.88 0.74 0.81 0.84 0.75 0.55 NA [8,] 0.64 0.11 0.14 -0.24 -0.05 -0.48 -0.71 -0.23 -0.08 0.66 -0.37 NA [9,] -0.17 0.42 0.15 0.69 0.10 -0.10 0.87 0.18 -0.26 -0.30 -0.32 NA [10,] 0.40 0.32 0.53 0.24 0.00 0.06 -0.34 -0.10 0.77 0.16 -0.21 NA [11,] -0.85 0.08 -0.74 -0.40 -0.54 -0.10 -0.34 -0.32 -0.25 0.00 -0.47 NA [12,] 0.91 0.05 0.14 0.59 0.25 0.35 0.83 0.46 0.47 0.60 NA 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/1cnzz1250514542.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/2vnmj1250514542.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/3b22l1250514542.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/4752a1250514542.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] [1,] 12.11 11.420 11.71 12.040 12.21 12.000 12.360 12.320 12.960 14.690 15.010 [2,] 15.36 14.720 14.58 15.190 14.93 15.385 15.320 16.215 16.165 16.565 16.860 [3,] 17.89 16.790 16.61 16.660 17.02 16.910 17.260 18.060 17.580 18.160 17.820 [4,] 18.40 17.555 17.47 17.425 17.69 17.960 18.245 19.070 18.915 18.875 18.945 [5,] 21.18 19.870 19.83 19.480 19.49 19.400 19.890 20.440 20.720 20.420 20.580 [,12] [1,] 15.09 [2,] 16.40 [3,] 17.48 [4,] 18.55 [5,] 20.58 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16.44178 15.43944 15.23324 15.59527 15.70517 15.6833 15.86657 16.69991 [2,] 19.33822 18.14056 17.98676 17.72473 18.33483 18.1367 18.65343 19.42009 [,9] [,10] [,11] [,12] [1,] 16.26993 17.05954 16.82673 16.45577 [2,] 18.89007 19.26046 18.81327 18.50423 $out [1] 12.79 13.19 12.34 $group [1] 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(12.11, 15.36, 17.89, 18.4, 21.18, 11.42, 14.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5664y1250514542.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,] -1.310 -0.62 -0.420 -0.270 -0.210 -0.150 -0.040 -0.710 -0.320 -0.34 -0.850 [2,] -1.155 -0.32 -0.005 -0.115 -0.055 0.155 0.440 -0.305 -0.215 -0.05 -0.505 [3,] -0.940 -0.04 0.130 0.040 0.040 0.360 0.740 -0.080 0.100 0.16 -0.340 [4,] -0.700 0.16 0.380 0.205 0.355 0.470 0.825 0.125 0.300 0.36 -0.175 [5,] -0.340 0.43 0.740 0.540 0.860 0.720 1.350 0.660 0.870 0.77 0.080 [,12] [1,] 0.050 [2,] 0.250 [3,] 0.465 [4,] 0.600 [5,] 0.910 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.1567565 -0.2686662 -0.05340935 -0.1124441 -0.1553190 0.2099378 [2,] -0.7232435 0.1886662 0.31340935 0.1924441 0.2353190 0.5100622 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.5565906 -0.2848468 -0.1453398 -0.03531905 -0.497208 0.2901260 [2,] 0.9234094 0.1248468 0.3453398 0.35531905 -0.182792 0.6398740 $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(-1.31, -1.155, -0.940000000000001, -0.7, -0.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/652821250514542.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] [1,] 11.420 12.540 13.830 15.240 16.710 16.610 16.190 16.970 17.800 18.74 [2,] 12.020 12.980 14.255 15.650 17.190 16.865 16.580 17.075 18.095 18.89 [3,] 12.265 13.705 15.030 15.970 17.665 17.310 17.275 17.860 18.740 19.71 [4,] 12.575 14.480 15.470 17.215 18.105 17.560 17.805 18.330 19.600 20.50 [5,] 13.190 15.090 16.180 17.760 18.180 18.060 18.160 18.500 20.070 20.72 [,11] [,12] [1,] 19.070 NA [2,] 19.485 NA [3,] 19.790 NA [4,] 19.980 NA [5,] 20.440 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12.01186 13.02084 14.47583 15.25619 17.24766 16.99301 16.71627 17.28759 [2,] 12.51814 14.38916 15.58417 16.68381 18.08234 17.62699 17.83373 18.43241 [,9] [,10] [,11] [,12] [1,] 18.05356 18.97567 19.56423 NA [2,] 19.42644 20.44433 20.01577 NA $out [1] 21.18 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(11.42, 12.02, 12.265, 12.575, 13.19, 12.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wrp51250514542.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,] 16.08909 16.610 16.02500 [2,] 16.26864 16.850 16.30875 [3,] 16.93636 17.370 16.83125 [4,] 17.40318 17.855 17.59125 [5,] 17.65636 18.160 17.90250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16.41889 16.91161 16.24629 [2,] 17.45384 17.82839 17.41621 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.0890909090909, 16.2686363636364, 16.9363636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1cnzz1250514542.ps tmp/1cnzz1250514542.png") > system("convert tmp/2vnmj1250514542.ps tmp/2vnmj1250514542.png") > system("convert tmp/3b22l1250514542.ps tmp/3b22l1250514542.png") > system("convert tmp/4752a1250514542.ps tmp/4752a1250514542.png") > system("convert tmp/5664y1250514542.ps tmp/5664y1250514542.png") > system("convert tmp/652821250514542.ps tmp/652821250514542.png") > system("convert tmp/7wrp51250514542.ps tmp/7wrp51250514542.png") > > > proc.time() user system elapsed 1.221 0.954 2.067