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(252,251,250,248,268,267,252,242,243,243,244,246,236,241,240,239,253,249,232,229,221,222,224,224,215,225,225,221,238,234,228,227,216,219,225,227,205,215,214,209,222,216,206,199,189,198,203,211,199,211,210,203,214,202,193,193,176,192,200,195,180,197,194,194,212,202,195,198,170,187,190,189,176,188,195,194,211,203,194,194,163,183,181,184,171,178,179,186,205,204,195,186,156,167,164,165,153,160,154,169,186,188,187,169,131,146,145,137,119,118,113,123,142,141,138,124,83,100,96,98) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 252 236 215 205 199 180 176 171 153 119 NA [2,] 251 241 225 215 211 197 188 178 160 118 NA [3,] 250 240 225 214 210 194 195 179 154 113 NA [4,] 248 239 221 209 203 194 194 186 169 123 NA [5,] 268 253 238 222 214 212 211 205 186 142 NA [6,] 267 249 234 216 202 202 203 204 188 141 NA [7,] 252 232 228 206 193 195 194 195 187 138 NA [8,] 242 229 227 199 193 198 194 186 169 124 NA [9,] 243 221 216 189 176 170 163 156 131 83 NA [10,] 243 222 219 198 192 187 183 167 146 100 NA [11,] 244 224 225 203 200 190 181 164 145 96 NA [12,] 246 224 227 211 195 189 184 165 137 98 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 5 10 10 12 17 12 7 7 -1 NA [2,] -1 -1 0 -1 -1 -3 7 1 -6 -5 NA [3,] -2 -1 -4 -5 -7 0 -1 7 15 10 NA [4,] 20 14 17 13 11 18 17 19 17 19 NA [5,] -1 -4 -4 -6 -12 -10 -8 -1 2 -1 NA [6,] -15 -17 -6 -10 -9 -7 -9 -9 -1 -3 NA [7,] -10 -3 -1 -7 0 3 0 -9 -18 -14 NA [8,] 1 -8 -11 -10 -17 -28 -31 -30 -38 -41 NA [9,] 0 1 3 9 16 17 20 11 15 17 NA [10,] 1 2 6 5 8 3 -2 -3 -1 -4 NA [11,] 2 0 2 8 -5 -1 3 1 -8 2 NA [12,] -10 -9 -22 -12 -15 -13 -13 -12 -18 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/1zqej1281897366.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/2shdm1281897366.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/3shdm1281897366.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/4lqc71281897366.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,] 119.0 118 113.0 169.0 186 188.0 187 169 83 100.0 96 98 [2,] 171.0 178 179.0 186.0 205 202.0 193 186 156 167.0 164 165 [3,] 189.5 204 202.5 198.5 213 203.5 195 196 173 189.5 195 192 [4,] 215.0 225 225.0 221.0 238 234.0 228 227 216 219.0 224 224 [5,] 252.0 251 250.0 248.0 268 267.0 252 242 243 243.0 244 246 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 167.5158 180.5169 179.5166 181.0126 196.5119 187.5115 177.5126 175.5148 [2,] 211.4842 227.4831 225.4834 215.9874 229.4881 219.4885 212.4874 216.4852 [,9] [,10] [,11] [,12] [1,] 143.0216 163.5187 165.0216 162.5212 [2,] 202.9784 215.4813 224.9784 221.4788 $out [1] 123 142 141 138 124 $group [1] 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(119, 171, 189.5, 215, 252, 118, 178, 204, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lqc71281897366.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 -6 -7 11 -12 -15 -18 -41.0 0 -4.0 -5.0 -18 [2,] 5.0 -3 -4 14 -8 -10 -10 -31.0 3 -2.0 -1.0 -15 [3,] 8.5 -1 -1 17 -4 -9 -5 -22.5 13 1.5 1.5 -13 [4,] 12.0 0 7 19 -1 -6 0 -10.0 17 5.0 2.0 -12 [5,] 17.0 1 15 20 2 -1 3 1.0 20 8.0 3.0 -9 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.002521 -2.4989196 -6.496039 14.5018 -7.4974791 -10.99856 -9.996398703 [2,] 11.997479 0.4989196 4.496039 19.4982 -0.5025209 -7.00144 -0.003601297 [,8] [,9] [,10] [,11] [,12] [1,] -32.99244 6.005042 -1.997479 0.001080389 -14.58 [2,] -12.00756 19.994958 4.997479 2.998919611 -11.42 $out [1] 7 -17 8 -8 -22 $group [1] 2 6 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 5, 8.5, 12, 17, -6, -3, -1, 0, 1, -7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lqc71281897366.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] [,9] [,10] [,11] [1,] 242.0 221.0 215.0 189.0 176.0 180.0 176.0 156.0 131.0 83.0 NA [2,] 243.5 224.0 220.0 201.0 193.0 188.0 182.0 166.0 145.5 99.0 NA [3,] 249.0 234.0 225.0 207.5 199.5 194.0 191.0 178.5 157.0 118.5 NA [4,] 252.0 240.5 227.5 214.5 206.5 197.5 194.5 190.5 177.5 131.0 NA [5,] 252.0 253.0 238.0 222.0 214.0 202.0 211.0 205.0 188.0 142.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 245.1231 226.4742 221.5792 201.3426 193.3426 189.667 185.2987 167.3254 [2,] 252.8769 241.5258 228.4208 213.6574 205.6574 198.333 196.7013 189.6746 [,9] [,10] [,11] [1,] 142.4046 103.9046 NA [2,] 171.5954 133.0954 NA $out [1] 268 267 212 170 163 $group [1] 1 1 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(242, 243.5, 249, 252, 252, 221, 224, 234, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7viu91281897366.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,] 174.80 173.00 183.5000 [2,] 187.40 190.75 192.9375 [3,] 196.75 195.50 202.0000 [4,] 200.30 203.00 205.8750 [5,] 215.10 213.00 220.2500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 190.8662 189.9127 196.0991 [2,] 202.6338 201.0873 207.9009 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(174.8, 187.4, 196.75, 200.3, 215.1, 173, 190.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zqej1281897366.ps tmp/1zqej1281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/2shdm1281897366.ps tmp/2shdm1281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/3shdm1281897366.ps tmp/3shdm1281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/4lqc71281897366.ps tmp/4lqc71281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/5lqc71281897366.ps tmp/5lqc71281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/6lqc71281897366.ps tmp/6lqc71281897366.png",intern=TRUE)) character(0) > try(system("convert tmp/7viu91281897366.ps tmp/7viu91281897366.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.194 0.932 1.612