R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(239,238,237,235,233,232,233,235,236,236,237,239,238,237,244,230,237,244,239,240,230,228,231,228,225,227,238,214,222,233,228,218,203,209,207,203,195,199,207,182,181,189,186,174,153,158,153,147,143,156,168,142,146,150,145,133,111,115,109,105,96,112,127,107,116,125,120,107,86,87,79,83,75,89,104,86,98,98,85,74,49,54,47,56) > 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,] 239 238 225 195 143 96 75 NA [2,] 238 237 227 199 156 112 89 NA [3,] 237 244 238 207 168 127 104 NA [4,] 235 230 214 182 142 107 86 NA [5,] 233 237 222 181 146 116 98 NA [6,] 232 244 233 189 150 125 98 NA [7,] 233 239 228 186 145 120 85 NA [8,] 235 240 218 174 133 107 74 NA [9,] 236 230 203 153 111 86 49 NA [10,] 236 228 209 158 115 87 54 NA [11,] 237 231 207 153 109 79 47 NA [12,] 239 228 203 147 105 83 56 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -1 2 4 13 16 14 NA [2,] -1 7 11 8 12 15 15 NA [3,] -2 -14 -24 -25 -26 -20 -18 NA [4,] -2 7 8 -1 4 9 12 NA [5,] -1 7 11 8 4 9 0 NA [6,] 1 -5 -5 -3 -5 -5 -13 NA [7,] 2 1 -10 -12 -12 -13 -11 NA [8,] 1 -10 -15 -21 -22 -21 -25 NA [9,] 0 -2 6 5 4 1 5 NA [10,] 1 3 -2 -5 -6 -8 -7 NA [11,] 2 -3 -4 -6 -4 4 9 NA [12,] -1 -3 -8 -4 -9 -8 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/rcomp/tmp/1y3v31281078566.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/rcomp/tmp/2y3v31281078566.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/rcomp/tmp/3qud61281078566.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/rcomp/tmp/4qud61281078566.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,] 75.0 89 104.0 86.0 98.0 98.0 85.0 74.0 49.0 54.0 47 56.0 [2,] 119.5 134 147.5 124.5 131.0 137.5 132.5 120.0 98.5 101.0 94 94.0 [3,] 195.0 199 207.0 182.0 181.0 189.0 186.0 174.0 153.0 158.0 153 147.0 [4,] 231.5 232 237.5 222.0 227.5 232.5 230.5 226.5 216.5 218.5 219 215.5 [5,] 239.0 238 244.0 235.0 237.0 244.0 239.0 240.0 236.0 236.0 237 239.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 128.1154 140.4760 153.2535 123.7746 123.3718 132.2675 127.4760 110.3999 [2,] 261.8846 257.5240 260.7465 240.2254 238.6282 245.7325 244.5240 237.6001 [,9] [,10] [,11] [,12] [1,] 82.5323 87.8309 78.35202 74.44216 [2,] 223.4677 228.1691 227.64798 219.55784 $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(75, 119.5, 195, 231.5, 239, 89, 134, 199, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5qud61281078566.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 -1.0 -26.0 -2.0 -1.0 -5 -13.0 -25.0 -2.0 -8.0 -6 -9 [2,] 0.5 7.5 -24.5 1.5 2.0 -5 -12.0 -21.5 0.5 -6.5 -4 -8 [3,] 4.0 11.0 -20.0 7.0 7.0 -5 -11.0 -21.0 4.0 -5.0 -3 -6 [4,] 13.5 13.5 -16.0 8.5 8.5 -4 -4.5 -12.5 5.0 -0.5 3 -3 [5,] 16.0 15.0 -14.0 12.0 11.0 -3 2.0 1.0 6.0 3.0 9 -1 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.76339 7.416897 -25.07606 2.819713 3.118305 -5.597184 -15.478879 [2,] 11.76339 14.583103 -14.92394 11.180287 10.881695 -4.402816 -6.521121 [,8] [,9] [,10] [,11] [,12] [1,] -26.37465 1.312673 -8.583103 -7.180287 -9.225161 [2,] -15.62535 6.687327 -1.416897 1.180287 -2.774839 $out [1] -2 1 -13 $group [1] 3 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 0.5, 4, 13.5, 16, -1, 7.5, 11, 13.5, 15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6j4cr1281078566.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,] 232.0 228.0 203.0 147.0 105.0 79.0 47.0 NA [2,] 234.0 230.0 208.0 155.5 113.0 86.5 55.0 NA [3,] 236.0 237.0 220.0 181.5 142.5 107.0 80.0 NA [4,] 237.5 239.5 227.5 192.0 148.0 118.0 93.5 NA [5,] 239.0 244.0 238.0 207.0 168.0 127.0 104.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 234.4036 232.667 211.1059 164.8521 126.5363 92.63264 62.43989 NA [2,] 237.5964 241.333 228.8941 198.1479 158.4637 121.36736 97.56011 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(232, 234, 236, 237.5, 239, 228, 230, 237, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7j4cr1281078566.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,] 151.5714 147.0 154.750 [2,] 153.9286 155.5 158.625 [3,] 171.9286 181.5 174.375 [4,] 178.1429 192.0 182.250 [5,] 189.2857 207.0 192.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 160.8843 164.8521 163.5995 [2,] 182.9729 198.1479 185.1505 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(151.571428571429, 153.928571428571, 171.928571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1y3v31281078566.ps tmp/1y3v31281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/2y3v31281078566.ps tmp/2y3v31281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/3qud61281078566.ps tmp/3qud61281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/4qud61281078566.ps tmp/4qud61281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/5qud61281078566.ps tmp/5qud61281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/6j4cr1281078566.ps tmp/6j4cr1281078566.png",intern=TRUE)) character(0) > try(system("convert tmp/7j4cr1281078566.ps tmp/7j4cr1281078566.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.940 0.610 2.546