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(93.2,96,95.2,77.1,70.9,64.8,70.1,77.3,79.5,100.6,100.7,107.1,95.9,82.8,83.3,80,80.4,67.5,75.7,71.1,89.3,101.1,105.2,114.1,96.3,84.4,91.2,81.9,80.5,70.4,74.8,75.9,86.3,98.7,100.9,113.8,89.8,84.4,87.2,85.6,72,69.2,77.5,78.1,94.3,97.7,100.2,116.4,97.1,93,96,80.5,76.1,69.9,73.6,92.6,94.2,93.5,108.5,109.4,105.1,92.5,97.1) > 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] 63 > (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] 6 6 6 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 93.2 95.9 96.3 89.8 97.1 105.1 [2,] 96.0 82.8 84.4 84.4 93.0 92.5 [3,] 95.2 83.3 91.2 87.2 96.0 97.1 [4,] 77.1 80.0 81.9 85.6 80.5 NA [5,] 70.9 80.4 80.5 72.0 76.1 NA [6,] 64.8 67.5 70.4 69.2 69.9 NA [7,] 70.1 75.7 74.8 77.5 73.6 NA [8,] 77.3 71.1 75.9 78.1 92.6 NA [9,] 79.5 89.3 86.3 94.3 94.2 NA [10,] 100.6 101.1 98.7 97.7 93.5 NA [11,] 100.7 105.2 100.9 100.2 108.5 NA [12,] 107.1 114.1 113.8 116.4 109.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.8 -13.1 -11.9 -5.4 -4.1 -12.6 [2,] -0.8 0.5 6.8 2.8 3.0 4.6 [3,] -18.1 -3.3 -9.3 -1.6 -15.5 NA [4,] -6.2 0.4 -1.4 -13.6 -4.4 NA [5,] -6.1 -12.9 -10.1 -2.8 -6.2 NA [6,] 5.3 8.2 4.4 8.3 3.7 NA [7,] 7.2 -4.6 1.1 0.6 19.0 NA [8,] 2.2 18.2 10.4 16.2 1.6 NA [9,] 21.1 11.8 12.4 3.4 -0.7 NA [10,] 0.1 4.1 2.2 2.5 15.0 NA [11,] 6.4 8.9 12.9 16.2 0.9 NA [12,] -11.2 -17.8 -24.0 -19.3 -4.3 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/1r8id1272289427.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/2k0hy1272289427.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/3k0hy1272289427.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/4vry11272289427.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] [,12] [1,] 89.8 82.80 83.3 80.0 70.9 64.8 73.6 75.9 79.5 93.5 100.2 107.1 [2,] 93.2 84.40 87.2 80.0 72.0 67.5 73.6 75.9 86.3 97.7 100.7 109.4 [3,] 96.1 88.45 93.2 80.5 76.1 69.2 74.8 77.3 89.3 98.7 100.9 113.8 [4,] 97.1 93.00 96.0 81.9 80.4 69.9 75.7 78.1 94.2 100.6 105.2 114.1 [5,] 97.1 96.00 97.1 81.9 80.5 70.4 77.5 78.1 94.3 101.1 108.5 116.4 $n [1] 6 6 6 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93.58437 82.90272 87.52372 79.15746 70.16458 67.50417 73.31615 75.74549 [2,] 98.61563 93.99728 98.87628 81.84254 82.03542 70.89583 76.28385 78.85451 [,9] [,10] [,11] [,12] [1,] 83.71788 96.65087 97.72031 110.479 [2,] 94.88212 100.74913 104.07969 117.121 $out [1] 105.1 77.1 85.6 70.1 71.1 92.6 $group [1] 1 4 4 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.8, 93.2, 96.1, 97.1, 97.1, 82.8, 84.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vry11272289427.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] [,12] [1,] -13.10 -0.8 -18.1 -6.2 -12.9 3.7 -4.6 1.6 -0.7 0.1 0.9 -24.0 [2,] -12.60 0.5 -15.5 -6.2 -10.1 4.4 0.6 2.2 3.4 2.2 6.4 -19.3 [3,] -8.65 2.9 -9.3 -4.4 -6.2 5.3 1.1 10.4 11.8 2.5 8.9 -17.8 [4,] -4.10 4.6 -3.3 -1.4 -6.1 8.2 7.2 16.2 12.4 4.1 12.9 -11.2 [5,] 2.80 6.8 -1.6 0.4 -2.8 8.3 7.2 18.2 21.1 4.1 16.2 -4.3 $n [1] 6 6 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -14.132775 0.2553676 -17.9204893 -7.791668 -9.02639 2.614930 -3.563543 [2,] -3.167225 5.5446324 -0.6795107 -1.008332 -3.37361 7.985070 5.763543 [,8] [,9] [,10] [,11] [,12] [1,] 0.5076353 5.440623 1.157465 4.307116 -23.52344 [2,] 20.2923647 18.159377 3.842535 13.492884 -12.07656 $out [1] -13.6 19.0 15.0 $group [1] 4 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-13.1, -12.6, -8.64999999999999, -4.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vry11272289427.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] [1,] 64.80 67.50 70.40 69.2 69.90 92.5 [2,] 74.00 77.85 78.20 77.8 78.30 94.8 [3,] 86.35 83.05 85.35 86.4 93.25 97.1 [4,] 98.30 98.50 97.50 96.0 96.55 101.1 [5,] 107.10 114.10 113.80 116.4 109.40 105.1 $n [1] 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 75.2666 73.6314 76.54714 78.09886 84.92605 91.35306 [2,] 97.4334 92.4686 94.15286 94.70114 101.57395 102.84694 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(64.8, 74, 86.35, 98.3, 107.1, 67.5, 77.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7nixm1272289427.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,] 68.36000 69.200 68.70000 [2,] 77.49000 76.700 76.60000 [3,] 88.78500 88.875 89.44375 [4,] 97.27667 97.400 97.26875 [5,] 112.16000 113.800 111.75000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 79.76017 79.43359 80.0166 [2,] 97.80983 98.31641 98.8709 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(68.36, 77.49, 88.785, 97.2766666666667, 112.16, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1r8id1272289427.ps tmp/1r8id1272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/2k0hy1272289427.ps tmp/2k0hy1272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/3k0hy1272289427.ps tmp/3k0hy1272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/4vry11272289427.ps tmp/4vry11272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/5vry11272289427.ps tmp/5vry11272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/6vry11272289427.ps tmp/6vry11272289427.png",intern=TRUE)) character(0) > try(system("convert tmp/7nixm1272289427.ps tmp/7nixm1272289427.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.197 0.941 1.530