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(237,236,235,233,231,230,231,233,234,234,235,237,246,245,240,239,231,224,229,231,238,240,237,239,248,239,237,232,216,209,214,217,217,227,218,220,229,224,216,208,191,190,196,196,200,204,193,194,207,209,193,175,157,150,162,157,160,167,159,161,179,180,169,152,128,125,131,135,141,154,152,147,163,165,147,130,106,107,115,114,124,141,139,129) > 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,] 237 246 248 229 207 179 163 NA [2,] 236 245 239 224 209 180 165 NA [3,] 235 240 237 216 193 169 147 NA [4,] 233 239 232 208 175 152 130 NA [5,] 231 231 216 191 157 128 106 NA [6,] 230 224 209 190 150 125 107 NA [7,] 231 229 214 196 162 131 115 NA [8,] 233 231 217 196 157 135 114 NA [9,] 234 238 217 200 160 141 124 NA [10,] 234 240 227 204 167 154 141 NA [11,] 235 237 218 193 159 152 139 NA [12,] 237 239 220 194 161 147 129 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -1 -9 -5 2 1 2 NA [2,] -1 -5 -2 -8 -16 -11 -18 NA [3,] -2 -1 -5 -8 -18 -17 -17 NA [4,] -2 -8 -16 -17 -18 -24 -24 NA [5,] -1 -7 -7 -1 -7 -3 1 NA [6,] 1 5 5 6 12 6 8 NA [7,] 2 2 3 0 -5 4 -1 NA [8,] 1 7 0 4 3 6 10 NA [9,] 0 2 10 4 7 13 17 NA [10,] 1 -3 -9 -11 -8 -2 -2 NA [11,] 2 2 2 1 2 -5 -10 NA [12,] 9 9 9 13 18 16 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/1k5w31278090380.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/2uxd71278090380.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/3uxd71278090380.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/4uxd71278090380.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,] 163.0 165.0 147 130.0 106.0 107.0 115.0 114 124.0 141.0 139.0 129.0 [2,] 193.0 194.5 181 163.5 142.5 137.5 146.5 146 150.5 160.5 155.5 154.0 [3,] 229.0 224.0 216 208.0 191.0 190.0 196.0 196 200.0 204.0 193.0 194.0 [4,] 241.5 237.5 236 232.5 223.5 216.5 221.5 224 225.5 230.5 226.5 228.5 [5,] 248.0 245.0 240 239.0 231.0 230.0 231.0 233 238.0 240.0 237.0 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,] 200.0366 198.3211 183.1549 166.7943 142.6281 142.8225 151.2112 149.4197 [2,] 257.9634 249.6789 248.8451 249.2057 239.3719 237.1775 240.7888 242.5803 [,9] [,10] [,11] [,12] [1,] 155.2112 162.1971 150.5999 149.5098 [2,] 244.7888 245.8029 235.4001 238.4902 $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(163, 193, 229, 241.5, 248, 165, 194.5, 224, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nou91278090380.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,] -9.0 -18.0 -18.0 -24 -7 5 -5.0 0.0 0.0 -11.0 -5 9 [2,] -3.0 -13.5 -17.0 -21 -7 5 -0.5 2.0 3.0 -8.5 -2 9 [3,] -1.0 -8.0 -8.0 -17 -3 6 2.0 4.0 7.0 -3.0 2 11 [4,] 1.5 -3.5 -3.5 -12 -1 7 2.5 6.5 11.5 -2.0 2 16 [5,] 2.0 -1.0 -1.0 -2 1 8 4.0 10.0 17.0 1.0 2 18 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.687327 -13.971839 -16.06198221 -22.37465 -6.5831032 4.805632 0.2084484 [2,] 1.687327 -2.028161 0.06198221 -11.62535 0.5831032 7.194368 3.7915516 [,8] [,9] [,10] [,11] [,12] [1,] 1.312673 1.923937 -6.8816951 -0.3887355 6.484774 [2,] 6.687327 12.076063 0.8816951 4.3887355 15.515226 $out [1] 1 12 -10 $group [1] 6 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9, -3, -1, 1.5, 2, -18, -13.5, -8, -3.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nou91278090380.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,] 230.0 224.0 209.0 190.0 150.0 125.0 106.0 NA [2,] 232.0 231.0 216.5 193.5 158.0 133.0 114.5 NA [3,] 234.0 238.5 219.0 198.0 161.5 149.5 129.5 NA [4,] 235.5 240.0 234.5 212.0 184.0 161.5 144.0 NA [5,] 237.0 246.0 248.0 229.0 209.0 180.0 165.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 232.4036 234.3950 210.7901 189.5620 149.6412 136.5010 116.0449 NA [2,] 235.5964 242.6050 227.2099 206.4380 173.3588 162.4990 142.9551 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(230, 232, 234, 235.5, 237, 224, 231, 238.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gxuu1278090380.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,] 176.4286 190.0 177.000 [2,] 182.9286 193.5 184.500 [3,] 190.0000 198.0 191.125 [4,] 200.4286 212.0 203.250 [5,] 215.5714 229.0 217.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 182.0181 189.5620 182.573 [2,] 197.9819 206.4380 199.677 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(176.428571428571, 182.928571428571, 190, 200.428571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1k5w31278090380.ps tmp/1k5w31278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/2uxd71278090380.ps tmp/2uxd71278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/3uxd71278090380.ps tmp/3uxd71278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/4uxd71278090380.ps tmp/4uxd71278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/5nou91278090380.ps tmp/5nou91278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/6nou91278090380.ps tmp/6nou91278090380.png",intern=TRUE)) character(0) > try(system("convert tmp/7gxuu1278090380.ps tmp/7gxuu1278090380.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.159 0.929 1.559