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(9.26,9.29,9.28,9.31,9.27,9.27,9.28,9.25,9.32,9.33,9.31,9.3,9.29,9.33,9.35,9.35,9.37,9.37,9.35,9.33,9.34,9.37,9.33,9.31,9.26,9.27,9.29,9.27,9.29,9.31,9.33,9.35,9.34,9.35,9.38,9.43,9.47,9.5,9.55,9.58,9.61,9.57,9.61,9.65,9.62,9.63,9.62,9.63,9.65,9.72,9.75,9.77,9.78,9.82,9.84,9.9,9.94,9.96,10.03,10.03,10.12,10.12,10.05,10.14,10.17,10.2,10.2,10.35,10.43,10.52,10.57,10.57,10.57,10.65,10.57,10.61,10.63,10.71,10.72,10.77,10.79,10.82,10.9,10.83,10.92,10.91,10.88,10.87,11,10.99,11.03,11.04,10.99,10.9,11,10.99,10.92,10.98,11.15,11.19,11.33,11.38,11.4,11.45,11.56,11.61,11.82,11.77,11.85,11.82,11.92,11.86,11.87,11.94,11.86,11.92,11.83,11.91,11.93,11.99,11.96,12.12,11.85,12.01,12.1,12.21,12.31,12.31,12.39,12.35,12.41,12.51) > 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,] 9.26 9.29 9.26 9.47 9.65 10.12 10.57 10.92 10.92 11.85 11.96 NA [2,] 9.29 9.33 9.27 9.50 9.72 10.12 10.65 10.91 10.98 11.82 12.12 NA [3,] 9.28 9.35 9.29 9.55 9.75 10.05 10.57 10.88 11.15 11.92 11.85 NA [4,] 9.31 9.35 9.27 9.58 9.77 10.14 10.61 10.87 11.19 11.86 12.01 NA [5,] 9.27 9.37 9.29 9.61 9.78 10.17 10.63 11.00 11.33 11.87 12.10 NA [6,] 9.27 9.37 9.31 9.57 9.82 10.20 10.71 10.99 11.38 11.94 12.21 NA [7,] 9.28 9.35 9.33 9.61 9.84 10.20 10.72 11.03 11.40 11.86 12.31 NA [8,] 9.25 9.33 9.35 9.65 9.90 10.35 10.77 11.04 11.45 11.92 12.31 NA [9,] 9.32 9.34 9.34 9.62 9.94 10.43 10.79 10.99 11.56 11.83 12.39 NA [10,] 9.33 9.37 9.35 9.63 9.96 10.52 10.82 10.90 11.61 11.91 12.35 NA [11,] 9.31 9.33 9.38 9.62 10.03 10.57 10.90 11.00 11.82 11.93 12.41 NA [12,] 9.30 9.31 9.43 9.63 10.03 10.57 10.83 10.99 11.77 11.99 12.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.03 0.04 0.01 0.03 0.07 0.00 0.08 -0.01 0.06 -0.03 0.16 NA [2,] -0.01 0.02 0.02 0.05 0.03 -0.07 -0.08 -0.03 0.17 0.10 -0.27 NA [3,] 0.03 0.00 -0.02 0.03 0.02 0.09 0.04 -0.01 0.04 -0.06 0.16 NA [4,] -0.04 0.02 0.02 0.03 0.01 0.03 0.02 0.13 0.14 0.01 0.09 NA [5,] 0.00 0.00 0.02 -0.04 0.04 0.03 0.08 -0.01 0.05 0.07 0.11 NA [6,] 0.01 -0.02 0.02 0.04 0.02 0.00 0.01 0.04 0.02 -0.08 0.10 NA [7,] -0.03 -0.02 0.02 0.04 0.06 0.15 0.05 0.01 0.05 0.06 0.00 NA [8,] 0.07 0.01 -0.01 -0.03 0.04 0.08 0.02 -0.05 0.11 -0.09 0.08 NA [9,] 0.01 0.03 0.01 0.01 0.02 0.09 0.03 -0.09 0.05 0.08 -0.04 NA [10,] -0.02 -0.04 0.03 -0.01 0.07 0.05 0.08 0.10 0.21 0.02 0.06 NA [11,] -0.01 -0.02 0.05 0.01 0.00 0.00 -0.07 -0.01 -0.05 0.06 0.10 NA [12,] -0.01 -0.05 0.04 0.02 0.09 0.00 0.09 -0.07 0.08 -0.03 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/12pdp1246609986.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/2j7ml1246609986.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/3wt6m1246609986.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/4v09s1246609986.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,] 9.26 9.270 9.280 9.270 9.270 9.270 9.280 9.250 9.320 9.330 9.31 [2,] 9.38 9.415 9.450 9.465 9.490 9.470 9.480 9.500 9.480 9.500 9.50 [3,] 10.12 10.120 10.050 10.140 10.170 10.200 10.200 10.350 10.430 10.520 10.57 [4,] 10.92 10.945 11.015 11.030 11.165 11.185 11.215 11.245 11.275 11.255 11.41 [5,] 11.96 12.120 11.920 12.010 12.100 12.210 12.310 12.310 12.390 12.350 12.41 [,12] [1,] 9.30 [2,] 9.53 [3,] 10.57 [4,] 11.38 [5,] 12.51 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.386363 9.391126 9.304453 9.394453 9.37205 9.382995 9.373467 [2,] 10.853637 10.848874 10.795547 10.885547 10.96795 11.017005 11.026533 [,8] [,9] [,10] [,11] [,12] [1,] 9.518703 9.574884 9.68394 9.6601 9.688682 [2,] 11.181297 11.285116 11.35606 11.4799 11.451318 $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(9.26, 9.38, 10.12, 10.92, 11.96, 9.27, 9.415, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5uk9a1246609986.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.08 -0.060 -0.040 -0.04 -0.020 -0.030 -0.090 0.01 -0.040 -0.070 [2,] 0.005 -0.05 -0.005 0.015 0.00 0.005 0.005 -0.020 0.01 0.005 -0.015 [3,] 0.030 0.02 0.030 0.020 0.03 0.020 0.040 0.020 0.02 0.050 0.000 [4,] 0.065 0.04 0.040 0.060 0.06 0.030 0.055 0.075 0.04 0.075 0.030 [5,] 0.080 0.17 0.090 0.090 0.11 0.040 0.060 0.110 0.08 0.100 0.060 [,12] [1,] -0.07 [2,] -0.03 [3,] 0.01 [4,] 0.08 [5,] 0.09 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.001416725 -0.02287491 0.008562543 -0.001437457 0.001416725 0.008090302 [2,] 0.058583275 0.06287491 0.051437457 0.041437457 0.058583275 0.031909698 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01618060 -0.02525685 0.005708362 0.01665285 -0.02143746 -0.04496039 [2,] 0.06381940 0.06525685 0.034291638 0.08334715 0.02143746 0.06496039 $out [1] 0.16 -0.27 0.16 0.13 0.14 -0.08 0.10 0.15 0.09 -0.09 -0.04 0.21 [13] 0.10 $group [1] 1 2 3 4 4 6 6 7 9 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0299999999999994, 0.00499999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6l4091246609986.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,] 9.250 9.290 9.26 9.470 9.65 10.050 10.570 10.870 10.920 11.820 11.850 [2,] 9.270 9.330 9.28 9.560 9.76 10.130 10.620 10.905 11.170 11.855 12.055 [3,] 9.285 9.345 9.32 9.610 9.83 10.200 10.715 10.990 11.390 11.890 12.260 [4,] 9.310 9.360 9.35 9.625 9.95 10.475 10.805 11.000 11.585 11.925 12.370 [5,] 9.330 9.370 9.43 9.650 10.03 10.570 10.900 11.040 11.820 11.990 12.510 [,12] [1,] NA [2,] NA [3,] NA [4,] NA [5,] 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,] 9.266756 9.331317 9.288073 9.580353 9.74334 10.04264 10.63062 10.94667 [2,] 9.303244 9.358683 9.351927 9.639647 9.91666 10.35736 10.79938 11.03333 [,9] [,10] [,11] [,12] [1,] 11.20072 11.85807 12.11633 NA [2,] 11.57928 11.92193 12.40367 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(9.25, 9.27, 9.285, 9.31, 9.33, 9.29, 9.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/76mwl1246609986.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,] 10.29727 10.050 10.1500 [2,] 10.34864 10.130 10.2400 [3,] 10.44091 10.200 10.3375 [4,] 10.51364 10.475 10.3775 [5,] 10.57818 10.570 10.4550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.36565 10.04264 10.27479 [2,] 10.51617 10.35736 10.40021 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10.2972727272727, 10.3486363636364, 10.4409090909091, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12pdp1246609986.ps tmp/12pdp1246609986.png") > system("convert tmp/2j7ml1246609986.ps tmp/2j7ml1246609986.png") > system("convert tmp/3wt6m1246609986.ps tmp/3wt6m1246609986.png") > system("convert tmp/4v09s1246609986.ps tmp/4v09s1246609986.png") > system("convert tmp/5uk9a1246609986.ps tmp/5uk9a1246609986.png") > system("convert tmp/6l4091246609986.ps tmp/6l4091246609986.png") > system("convert tmp/76mwl1246609986.ps tmp/76mwl1246609986.png") > > > proc.time() user system elapsed 1.198 0.938 3.350