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(162,161,160,158,156,155,156,158,159,159,160,162,152,157,149,150,144,146,151,148,151,151,145,140,139,144,140,134,130,132,136,137,146,139,132,131,137,145,142,142,137,139,139,139,150,146,138,134,137,143,136,138,129,132,124,132,154,145,136,132,135,148,142,139,126,124,115,126,147,136,127,123,132,156,153,147,129,119,108,121,138,128,123,125) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 162 152 139 137 137 135 132 NA [2,] 161 157 144 145 143 148 156 NA [3,] 160 149 140 142 136 142 153 NA [4,] 158 150 134 142 138 139 147 NA [5,] 156 144 130 137 129 126 129 NA [6,] 155 146 132 139 132 124 119 NA [7,] 156 151 136 139 124 115 108 NA [8,] 158 148 137 139 132 126 121 NA [9,] 159 151 146 150 154 147 138 NA [10,] 159 151 139 146 145 136 128 NA [11,] 160 145 132 138 136 127 123 NA [12,] 162 140 131 134 132 123 125 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 5 5 8 6 13 24 NA [2,] -1 -8 -4 -3 -7 -6 -3 NA [3,] -2 1 -6 0 2 -3 -6 NA [4,] -2 -6 -4 -5 -9 -13 -18 NA [5,] -1 2 2 2 3 -2 -10 NA [6,] 1 5 4 0 -8 -9 -11 NA [7,] 2 -3 1 0 8 11 13 NA [8,] 1 3 9 11 22 21 17 NA [9,] 0 0 -7 -4 -9 -11 -10 NA [10,] 1 -6 -7 -8 -9 -9 -5 NA [11,] 2 -5 -1 -4 -4 -4 2 NA [12,] -10 -1 6 3 3 9 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/164yn1280856825.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/24z5w1280856825.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/34z5w1280856825.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/44z5w1280856825.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,] 132.0 143.0 136 134.0 126.0 119.0 108.0 121.0 138.0 128.0 123.0 123 [2,] 136.0 144.5 141 138.5 129.0 128.0 119.5 129.0 146.5 137.5 129.5 128 [3,] 137.0 148.0 142 142.0 130.0 132.0 136.0 137.0 150.0 145.0 136.0 132 [4,] 145.5 156.5 151 148.5 140.5 142.5 145.0 143.5 152.5 148.5 141.5 137 [5,] 152.0 161.0 160 158.0 156.0 155.0 156.0 158.0 159.0 159.0 145.0 140 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 131.3268 140.8338 136.0282 136.0282 123.1324 123.3408 120.7718 128.3408 [2,] 142.6732 155.1662 147.9718 147.9718 136.8676 140.6592 151.2282 145.6592 [,9] [,10] [,11] [,12] [1,] 146.4169 138.4310 128.8338 126.6253 [2,] 153.5831 151.5690 143.1662 137.3747 $out [1] 162 160 162 $group [1] 1 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(132, 136, 137, 145.5, 152, 143, 144.5, 148, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wq4h1280856825.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,] -1.0 -8.0 -6.0 -18.0 -2.0 -11.0 -3.0 1 -11.0 -9.0 -5.0 -10 [2,] 5.0 -6.5 -4.5 -11.0 -1.5 -8.5 0.5 6 -9.5 -8.5 -4.0 -1 [3,] 6.0 -4.0 -2.0 -6.0 2.0 0.0 2.0 11 -7.0 -7.0 -4.0 3 [4,] 10.5 -3.0 0.5 -4.5 2.0 2.5 9.5 19 -2.0 -5.5 0.5 6 [5,] 13.0 -1.0 2.0 -2.0 3.0 5.0 13.0 22 0.0 -5.0 2.0 9 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.715489 -6.090144 -4.9859193 -9.881695 -0.09014354 -6.569023 -3.374655 [2,] 9.284511 -1.909856 0.9859193 -2.118305 4.09014354 6.569023 7.374655 [,8] [,9] [,10] [,11] [,12] [1,] 3.23661 -11.478879 -8.791552 -6.687327 -1.515226 [2,] 18.76339 -2.521121 -5.208448 -1.312673 7.515226 $out [1] 24 -10 1 $group [1] 1 5 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 5, 6, 10.5, 13, -8, -6.5, -4, -3, -1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wq4h1280856825.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] [1,] 155.0 140.0 130.0 134.0 124.0 115.0 108.0 NA [2,] 157.0 145.5 132.0 137.5 132.0 125.0 122.0 NA [3,] 159.0 149.5 136.5 139.0 136.0 131.0 128.5 NA [4,] 160.5 151.0 139.5 143.5 140.5 140.5 142.5 NA [5,] 162.0 157.0 146.0 150.0 145.0 148.0 156.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 157.4036 146.9914 133.0792 136.2634 132.1231 123.9303 119.1498 NA [2,] 160.5964 152.0086 139.9208 141.7366 139.8769 138.0697 137.8502 NA $out [1] 154 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(155, 157, 159, 160.5, 162, 140, 145.5, 149.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77z321280856825.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,] 132.7143 130.0 132.25 [2,] 135.5714 134.0 135.00 [3,] 139.6429 137.0 138.50 [4,] 145.0000 143.5 144.75 [5,] 150.5714 150.0 150.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 135.3424 132.6670 134.0530 [2,] 143.9433 141.3330 142.9470 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(132.714285714286, 135.571428571429, 139.642857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/164yn1280856825.ps tmp/164yn1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/24z5w1280856825.ps tmp/24z5w1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/34z5w1280856825.ps tmp/34z5w1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/44z5w1280856825.ps tmp/44z5w1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/5wq4h1280856825.ps tmp/5wq4h1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/6wq4h1280856825.ps tmp/6wq4h1280856825.png",intern=TRUE)) character(0) > try(system("convert tmp/77z321280856825.ps tmp/77z321280856825.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.187 0.930 2.010