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(257,256,255,253,251,250,251,253,254,254,255,257,260,251,255,252,245,239,240,247,251,255,259,260,259,266,261,243,232,225,229,238,240,241,239,246,242,251,246,219,203,192,197,203,208,207,208,212,208,215,200,170,162,150,148,152,155,150,146,147,142,146,130,102,98,90,86,104,108,94,88,92,93,95,81,50,49,34,27,45,47,42,32) > 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] 83 > (np <- floor(n / par1)) [1] 6 > 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 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 257 260 259 242 208 142 93 [2,] 256 251 266 251 215 146 95 [3,] 255 255 261 246 200 130 81 [4,] 253 252 243 219 170 102 50 [5,] 251 245 232 203 162 98 49 [6,] 250 239 225 192 150 90 34 [7,] 251 240 229 197 148 86 27 [8,] 253 247 238 203 152 104 45 [9,] 254 251 240 208 155 108 47 [10,] 254 255 241 207 150 94 42 [11,] 255 259 239 208 146 88 32 [12,] 257 260 246 212 147 92 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1 -9 7 9 7 4 2 [2,] -1 4 -5 -5 -15 -16 -14 [3,] -2 -3 -18 -27 -30 -28 -31 [4,] -2 -7 -11 -16 -8 -4 -1 [5,] -1 -6 -7 -11 -12 -8 -15 [6,] 1 1 4 5 -2 -4 -7 [7,] 2 7 9 6 4 18 18 [8,] 1 4 2 5 3 4 2 [9,] 0 4 1 -1 -5 -14 -5 [10,] 1 4 -2 1 -4 -6 -10 [11,] 2 1 7 4 1 4 NA [12,] 3 -1 -4 -4 -5 1 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/1s80e1281971021.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/2l0zz1281971021.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/3l0zz1281971021.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/4l0zz1281971021.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,] 93 95.0 81 50.0 49.0 34 27.0 45.0 47.0 42.0 32 92 [2,] 175 180.5 165 136.0 130.0 120 117.0 128.0 131.5 122.0 117 147 [3,] 242 251.0 246 219.0 203.0 192 197.0 203.0 208.0 207.0 208 229 [4,] 258 253.5 255 247.5 238.5 232 234.5 242.5 245.5 247.5 247 257 [5,] 260 266.0 261 253.0 251.0 250 251.0 253.0 254.0 255.0 259 260 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 192.4337 207.4056 192.2535 152.414 138.2056 125.1154 126.8309 134.6224 [2,] 291.5663 294.5944 299.7465 285.586 267.7944 258.8846 267.1691 271.3776 [,9] [,10] [,11] [,12] [1,] 139.9210 132.0534 130.3661 158.0464 [2,] 276.0790 281.9466 285.6339 299.9536 $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(93, 175, 242, 258, 260, 95, 180.5, 251, 253.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5l0zz1281971021.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 -16.0 -31.0 -16.0 -15.0 -7.0 2.0 1 -5.0 -10 1 -5.0 [2,] 0.5 -14.5 -29.0 -9.5 -11.5 -3.0 5.0 2 -5.0 -5 1 -4.0 [3,] 4.0 -5.0 -27.0 -7.0 -8.0 1.0 7.0 3 -1.0 -2 3 -2.5 [4,] 7.0 -3.0 -10.5 -3.0 -6.5 2.5 13.5 4 0.5 1 4 1.0 [5,] 9.0 4.0 -2.0 -1.0 -1.0 5.0 18.0 5 4.0 4 7 3.0 $n [1] 7 7 7 7 7 7 7 7 7 7 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1183049 -11.867614 -38.0479 -10.881695 -10.985919 -2.284511 1.923937 [2,] 7.8816951 1.867614 -15.9521 -3.118305 -5.014081 4.284511 12.076063 [,8] [,9] [,10] [,11] [,12] [1,] 1.805632 -4.284511 -5.583103 1.064903 -5.7251615 [2,] 4.194368 2.284511 1.583103 4.935097 0.7251615 $out [1] -14 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9, 0.5, 4, 7, 9, -16, -14.5, -5, -3, 4, -31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6w9hk1281971021.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] [1,] 250.0 239.0 225.0 192.0 146.0 86 27.0 [2,] 252.0 246.0 235.0 203.0 149.0 91 38.0 [3,] 254.0 251.5 240.5 208.0 153.5 100 47.0 [4,] 255.5 257.0 252.5 230.5 185.0 119 65.5 [5,] 257.0 260.0 266.0 251.0 215.0 146 95.0 $n [1] 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 252.4036 246.4828 232.5181 195.4571 137.0802 87.22901 33.89933 [2,] 255.5964 256.5172 248.4819 220.5429 169.9198 112.77099 60.10067 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(250, 252, 254, 255.5, 257, 239, 246, 251.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w9hk1281971021.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,] 168.2857 192.0 175.750 [2,] 176.2143 203.0 183.125 [3,] 179.0000 208.0 186.875 [4,] 203.1667 235.5 209.375 [5,] 211.4286 251.0 217.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 166.7068 193.1765 174.9022 [2,] 191.2932 222.8235 198.8478 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(168.285714285714, 176.214285714286, 179, 203.166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1s80e1281971021.ps tmp/1s80e1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/2l0zz1281971021.ps tmp/2l0zz1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/3l0zz1281971021.ps tmp/3l0zz1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/4l0zz1281971021.ps tmp/4l0zz1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/5l0zz1281971021.ps tmp/5l0zz1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/6w9hk1281971021.ps tmp/6w9hk1281971021.png",intern=TRUE)) character(0) > try(system("convert tmp/7w9hk1281971021.ps tmp/7w9hk1281971021.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.142 0.908 1.578