R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(15.579,16.348,15.928,16.171,15.937,15.713,15.594,15.683,16.438,17.032,17.696,17.745,19.394,20.148,20.108,18.584,18.441,18.391,19.178,18.079,18.483,19.644,19.195,19.650,20.830,23.595,22.937,21.814,21.928,21.777,21.383,21.467,22.052,22.680,24.320,24.977,25.204,25.739,26.434,27.525,30.695,32.436,30.160,30.236,31.293,31.077,32.226,33.865,32.810,32.242,32.700,32.819,33.947,34.148,35.261,39.506,41.591,39.148,41.216,40.225) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.579 19.394 20.830 25.204 32.810 NA [2,] 16.348 20.148 23.595 25.739 32.242 NA [3,] 15.928 20.108 22.937 26.434 32.700 NA [4,] 16.171 18.584 21.814 27.525 32.819 NA [5,] 15.937 18.441 21.928 30.695 33.947 NA [6,] 15.713 18.391 21.777 32.436 34.148 NA [7,] 15.594 19.178 21.383 30.160 35.261 NA [8,] 15.683 18.079 21.467 30.236 39.506 NA [9,] 16.438 18.483 22.052 31.293 41.591 NA [10,] 17.032 19.644 22.680 31.077 39.148 NA [11,] 17.696 19.195 24.320 32.226 41.216 NA [12,] 17.745 19.650 24.977 33.865 40.225 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.769 0.754 2.765 0.535 -0.568 NA [2,] -0.420 -0.040 -0.658 0.695 0.458 NA [3,] 0.243 -1.524 -1.123 1.091 0.119 NA [4,] -0.234 -0.143 0.114 3.170 1.128 NA [5,] -0.224 -0.050 -0.151 1.741 0.201 NA [6,] -0.119 0.787 -0.394 -2.276 1.113 NA [7,] 0.089 -1.099 0.084 0.076 4.245 NA [8,] 0.755 0.404 0.585 1.057 2.085 NA [9,] 0.594 1.161 0.628 -0.216 -2.443 NA [10,] 0.664 -0.449 1.640 1.149 2.068 NA [11,] 0.049 0.455 0.657 1.639 -0.991 NA [12,] 1.649 1.180 0.227 -1.055 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/wessaorg/rcomp/tmp/16a9f1331762267.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/wessaorg/rcomp/tmp/2dfut1331762267.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/wessaorg/rcomp/tmp/36enq1331762267.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/wessaorg/rcomp/tmp/4st121331762267.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] [1,] 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 [2,] 19.394 20.148 20.108 18.584 18.441 18.391 19.178 18.079 18.483 19.644 [3,] 20.830 23.595 22.937 21.814 21.928 21.777 21.383 21.467 22.052 22.680 [4,] 25.204 25.739 26.434 27.525 30.695 32.436 30.160 30.236 31.293 31.077 [5,] 32.810 32.242 32.700 32.819 33.947 34.148 35.261 39.506 41.591 39.148 [,11] [,12] [1,] 17.696 17.745 [2,] 19.195 19.650 [3,] 24.320 24.977 [4,] 32.226 33.865 [5,] 41.216 40.225 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16.72467 19.64441 18.46706 15.49631 13.26935 11.85284 13.62315 12.87689 [2,] 24.93533 27.54559 27.40694 28.13169 30.58665 31.70116 29.14285 30.05711 [,9] [,10] [,11] [,12] [1,] 13.00049 14.60147 15.11233 14.93272 [2,] 31.10351 30.75853 33.52767 35.02128 $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(15.579, 19.394, 20.83, 25.204, 32.81, 16.348, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5g6o01331762267.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.535 -0.658 -1.524 -0.234 -0.224 -0.394 0.076 0.404 -0.216 -0.449 0.049 [2,] 0.535 -0.420 -1.123 -0.143 -0.151 -0.394 0.076 0.585 -0.216 0.664 0.049 [3,] 0.754 -0.040 0.119 0.114 -0.050 -0.119 0.084 0.755 0.594 1.149 0.455 [4,] 0.769 0.458 0.243 1.128 0.201 0.787 0.089 1.057 0.628 1.640 0.657 [5,] 0.769 0.695 1.091 1.128 0.201 1.113 0.089 1.057 1.161 2.068 0.657 [,12] [1,] -1.0550 [2,] -0.4140 [3,] 0.7035 [4,] 1.4145 [5,] 1.6490 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.5886562 -0.6603926 -0.8462122 -0.7840854 -0.2987223 -0.9534916 [2,] 0.9193438 0.5803926 1.0842122 1.0120854 0.1987223 0.7154916 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.07481423 0.421486 -0.002368274 0.4593609 0.02538873 -0.741015 [2,] 0.09318577 1.088514 1.190368274 1.8386391 0.88461127 2.148015 $out [1] 2.765 -0.568 3.170 1.741 -2.276 -1.099 4.245 2.085 -2.443 1.639 [11] -0.991 $group [1] 1 1 4 5 6 7 7 8 9 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.535, 0.535, 0.754000000000001, 0.768999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6he411331762267.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] [1,] 15.579 18.0790 20.830 25.2040 32.2420 NA [2,] 15.698 18.4620 21.622 26.9795 32.8145 NA [3,] 16.054 19.1865 21.990 30.4655 34.7045 NA [4,] 16.735 19.6470 23.266 31.7595 39.8655 NA [5,] 17.745 20.1480 24.977 33.8650 41.5910 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.58102 18.64601 21.24016 28.28531 31.48849 NA [2,] 16.52698 19.72699 22.73984 32.64569 37.92051 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15.579, 15.698, 16.054, 16.735, 17.745, 18.079, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7pbzk1331762267.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,] 22.7634 20.830 22.29900 [2,] 23.6179 21.622 23.16275 [3,] 24.4041 21.990 24.61850 [4,] 25.9438 23.266 25.38700 [5,] 27.2924 24.977 26.75750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 23.34324 21.24016 23.604 [2,] 25.46496 22.73984 25.633 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22.7634, 23.6179, 24.4041, 25.9438, 27.2924, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16a9f1331762267.ps tmp/16a9f1331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/2dfut1331762267.ps tmp/2dfut1331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/36enq1331762267.ps tmp/36enq1331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/4st121331762267.ps tmp/4st121331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/5g6o01331762267.ps tmp/5g6o01331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/6he411331762267.ps tmp/6he411331762267.png",intern=TRUE)) character(0) > try(system("convert tmp/7pbzk1331762267.ps tmp/7pbzk1331762267.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.638 0.395 2.041