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(62.027,56.493,65.566,62.653,53.470,59.600,42.542,42.018,44.038,44.988,43.309,26.843,69.770,64.886,79.354,63.025,54.003,55.926,45.629,40.361,43.039,44.570,43.269,25.563,68.707,60.223,74.283,61.232,61.531,65.305,51.699,44.599,35.221,55.066,45.335,28.702,69.517,69.240,71.525,77.740,62.107,65.450,51.493,43.067,49.172,54.483,38.158,27.898,58.648,56.000,62.381,59.849,48.345,55.376,45.400,38.389,44.098,48.290,41.267,31.238) > 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,] 62.027 69.770 68.707 69.517 58.648 NA [2,] 56.493 64.886 60.223 69.240 56.000 NA [3,] 65.566 79.354 74.283 71.525 62.381 NA [4,] 62.653 63.025 61.232 77.740 59.849 NA [5,] 53.470 54.003 61.531 62.107 48.345 NA [6,] 59.600 55.926 65.305 65.450 55.376 NA [7,] 42.542 45.629 51.699 51.493 45.400 NA [8,] 42.018 40.361 44.599 43.067 38.389 NA [9,] 44.038 43.039 35.221 49.172 44.098 NA [10,] 44.988 44.570 55.066 54.483 48.290 NA [11,] 43.309 43.269 45.335 38.158 41.267 NA [12,] 26.843 25.563 28.702 27.898 31.238 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -5.534 -4.884 -8.484 -0.277 -2.648 NA [2,] 9.073 14.468 14.060 2.285 6.381 NA [3,] -2.913 -16.329 -13.051 6.215 -2.532 NA [4,] -9.183 -9.022 0.299 -15.633 -11.504 NA [5,] 6.130 1.923 3.774 3.343 7.031 NA [6,] -17.058 -10.297 -13.606 -13.957 -9.976 NA [7,] -0.524 -5.268 -7.100 -8.426 -7.011 NA [8,] 2.020 2.678 -9.378 6.105 5.709 NA [9,] 0.950 1.531 19.845 5.311 4.192 NA [10,] -1.679 -1.301 -9.731 -16.325 -7.023 NA [11,] -16.466 -17.706 -16.633 -10.260 -10.029 NA [12,] 42.927 43.144 40.815 30.750 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/1a8661292668176.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/html/rcomp/tmp/2a8661292668176.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/html/rcomp/tmp/33hn91292668176.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/html/rcomp/tmp/43hn91292668176.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,] 58.648 56.000 62.381 59.849 48.345 55.376 42.542 38.389 43.039 44.570 [2,] 62.027 56.493 65.566 61.232 53.470 55.926 45.400 40.361 43.039 44.988 [3,] 68.707 60.223 71.525 62.653 54.003 59.600 45.629 42.018 44.038 48.290 [4,] 69.517 64.886 74.283 63.025 61.531 65.305 51.493 43.067 44.098 54.483 [5,] 69.770 69.240 79.354 63.025 62.107 65.450 51.699 44.599 44.098 55.066 [,11] [,12] [1,] 41.267 25.563 [2,] 41.267 26.843 [3,] 43.269 27.898 [4,] 43.309 28.702 [5,] 45.335 31.238 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 63.41458 54.29253 65.36559 61.38607 48.30712 52.97282 41.3237 40.10595 [2,] 73.99942 66.15347 77.68441 63.91993 59.69888 66.22718 49.9343 43.93005 [,9] [,10] [,11] [,12] [1,] 43.28971 41.58086 41.82613 26.58444 [2,] 44.78629 54.99914 44.71187 29.21156 $out [1] 77.740 35.221 49.172 38.158 $group [1] 4 9 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(58.648, 62.027, 68.707, 69.517, 69.77, 56, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5d95c1292668176.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] [1,] -8.484 2.285 -16.329 -11.504 1.923 -17.058 -8.426 2.020 0.950 -16.325 [2,] -5.534 6.381 -13.051 -11.504 3.343 -13.957 -7.100 2.020 1.531 -9.731 [3,] -4.884 9.073 -2.913 -9.183 3.774 -13.606 -7.011 2.678 4.192 -7.023 [4,] -2.648 14.060 -2.532 -9.022 6.130 -10.297 -5.268 5.709 5.311 -1.679 [5,] -0.277 14.468 6.215 -9.022 7.031 -9.976 -5.268 6.105 5.311 -1.301 [,11] [,12] [1,] -17.706 30.7500 [2,] -16.633 35.7825 [3,] -16.466 41.8710 [4,] -10.260 43.0355 [5,] -10.029 43.1440 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6.923240 3.647038 -10.345699 -10.936775 1.804713 -16.19215 -8.305487 [2,] -2.844760 14.498962 4.519699 -7.429225 5.743287 -11.01985 -5.716513 [,8] [,9] [,10] [,11] [,12] [1,] 0.0713619 1.521062 -12.712523 -20.96915 36.14113 [2,] 5.2846381 6.862938 -1.333477 -11.96285 47.60087 $out [1] 0.299 -15.633 -0.524 -9.378 19.845 $group [1] 4 4 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.484, -5.534, -4.884, -2.64800000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6d95c1292668176.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,] 26.8430 25.5630 28.7020 27.8980 31.2380 NA [2,] 42.9255 43.1540 44.9670 46.1195 42.6825 NA [3,] 49.2290 49.8160 57.6445 58.2950 48.3175 NA [4,] 60.8135 63.9555 63.4180 69.3785 57.3240 NA [5,] 65.5660 79.3540 74.2830 77.7400 62.3810 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 41.07016 40.3283 49.22888 47.68641 41.63941 NA [2,] 57.38784 59.3037 66.06012 68.90359 54.99559 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(26.843, 42.9255, 49.229, 60.8135, 65.566, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7d95c1292668176.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,] 28.0488 27.8980 27.77250 [2,] 42.6906 43.6535 42.92825 [3,] 52.6853 51.1465 53.61800 [4,] 63.1341 61.4380 61.40900 [5,] 70.6218 71.5250 69.92450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 43.36088 43.03487 45.18881 [2,] 62.00972 59.25813 62.04719 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(28.0488, 42.6906, 52.6853, 63.1341, 70.6218, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1a8661292668176.ps tmp/1a8661292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/2a8661292668176.ps tmp/2a8661292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/33hn91292668176.ps tmp/33hn91292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/43hn91292668176.ps tmp/43hn91292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/5d95c1292668176.ps tmp/5d95c1292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/6d95c1292668176.ps tmp/6d95c1292668176.png",intern=TRUE)) character(0) > try(system("convert tmp/7d95c1292668176.ps tmp/7d95c1292668176.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.216 0.954 3.151