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(356,355,354,352,372,371,356,346,347,347,348,350,353,351,348,351,370,370,351,335,330,328,332,334,343,334,336,343,365,364,351,326,320,312,315,316,319,311,315,322,336,339,317,295,291,283,285,289,296,283,285,289,306,306,283,258,255,248,244,249,258,252,246,249,267,284,261,235,229,218,218,229,237,231,229,233,245,256,224,194,192,178,170,187,192,182,178,186,204,224,194,173,178,168,152,163,172,170,156,155,178,194,164,135,139,135,109,121,131,135,119,121,151,169,135,105,112,105,82,81) > 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,] 356 353 343 319 296 258 237 192 172 131 NA [2,] 355 351 334 311 283 252 231 182 170 135 NA [3,] 354 348 336 315 285 246 229 178 156 119 NA [4,] 352 351 343 322 289 249 233 186 155 121 NA [5,] 372 370 365 336 306 267 245 204 178 151 NA [6,] 371 370 364 339 306 284 256 224 194 169 NA [7,] 356 351 351 317 283 261 224 194 164 135 NA [8,] 346 335 326 295 258 235 194 173 135 105 NA [9,] 347 330 320 291 255 229 192 178 139 112 NA [10,] 347 328 312 283 248 218 178 168 135 105 NA [11,] 348 332 315 285 244 218 170 152 109 82 NA [12,] 350 334 316 289 249 229 187 163 121 81 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -2 -9 -8 -13 -6 -6 -10 -2 4 NA [2,] -1 -3 2 4 2 -6 -2 -4 -14 -16 NA [3,] -2 3 7 7 4 3 4 8 -1 2 NA [4,] 20 19 22 14 17 18 12 18 23 30 NA [5,] -1 0 -1 3 0 17 11 20 16 18 NA [6,] -15 -19 -13 -22 -23 -23 -32 -30 -30 -34 NA [7,] -10 -16 -25 -22 -25 -26 -30 -21 -29 -30 NA [8,] 1 -5 -6 -4 -3 -6 -2 5 4 7 NA [9,] 0 -2 -8 -8 -7 -11 -14 -10 -4 -7 NA [10,] 1 4 3 2 -4 0 -8 -16 -26 -23 NA [11,] 2 2 1 4 5 11 17 11 12 -1 NA [12,] 3 9 3 7 9 8 5 9 10 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/1j95i1282041621.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/2j95i1282041621.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/3j95i1282041621.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/4ujn31282041621.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,] 131 135.0 119.0 121 151.0 169 135 105.0 112 105 82 81 [2,] 192 182.0 178.0 186 204.0 224 194 173.0 178 168 152 163 [3,] 277 267.5 265.5 269 286.5 295 272 246.5 242 233 231 239 [4,] 343 334.0 336.0 343 365.0 364 351 326.0 320 312 315 316 [5,] 356 355.0 354.0 352 372.0 371 356 346.0 347 347 348 350 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 201.5544 191.5547 186.5569 190.5565 206.058 225.0504 193.5565 170.0551 [2,] 352.4456 343.4453 344.4431 347.4435 366.942 364.9496 350.4435 322.9449 [,9] [,10] [,11] [,12] [1,] 171.0511 161.0519 149.5587 162.5551 [2,] 312.9489 304.9481 312.4413 315.4449 $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(131, 192, 277, 343, 356, 135, 182, 267.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ujn31282041621.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,] -13 -16.0 -2.0 12.0 -1 -34 -30 -6.0 -14.0 -26 -1.0 3 [2,] -9 -6.0 2.0 17.0 0 -30 -29 -5.0 -10.0 -16 2.0 5 [3,] -6 -2.5 3.5 18.5 7 -23 -25 -2.5 -7.5 -2 4.5 8 [4,] -2 2.0 7.0 22.0 17 -19 -21 4.0 -4.0 2 11.0 9 [5,] 4 4.0 8.0 23.0 20 -13 -10 7.0 0.0 4 17.0 10 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.497479 -6.497119 1.001801 16.0018 -1.493878 -28.49604 -28.99712 [2,] -2.502521 1.497119 5.998199 20.9982 15.493878 -17.50396 -21.00288 [,8] [,9] [,10] [,11] [,12] [1,] -6.996759 -10.497839 -10.993518 0.003241167 5.893333 [2,] 1.996759 -4.502161 6.993518 8.996758833 10.106667 $out [1] 30 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-13, -9, -6, -2, 4, -16, -6, -2.5, 2, 4, -2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65am61282041621.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,] 346.0 328.0 312 283.0 244.0 218.0 170.0 152.0 109.0 81 NA [2,] 347.5 333.0 318 290.0 252.0 229.0 189.5 170.5 135.0 105 NA [3,] 353.0 349.5 335 313.0 283.0 247.5 226.5 180.0 155.5 120 NA [4,] 356.0 352.0 347 320.5 292.5 259.5 235.0 193.0 171.0 135 NA [5,] 356.0 370.0 365 339.0 306.0 284.0 256.0 224.0 194.0 169 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 349.1231 340.834 321.7729 299.0887 264.5277 233.5887 205.7471 169.7376 [2,] 356.8769 358.166 348.2271 326.9113 301.4723 261.4113 247.2529 190.2624 [,9] [,10] [,11] [1,] 139.0802 106.3168 NA [2,] 171.9198 133.6832 NA $out [1] 372 371 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(346, 347.5, 353, 356, 356, 328, 333, 349.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75am61282041621.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,] 225.50 231.0 232.0000 [2,] 235.75 240.5 243.1250 [3,] 258.35 266.5 261.0000 [4,] 264.65 274.5 271.0625 [5,] 287.70 295.0 294.8750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 245.1685 250.9924 248.2575 [2,] 271.5315 282.0076 273.7425 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(225.5, 235.75, 258.35, 264.65, 287.7, 231, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1j95i1282041621.ps tmp/1j95i1282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/2j95i1282041621.ps tmp/2j95i1282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/3j95i1282041621.ps tmp/3j95i1282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/4ujn31282041621.ps tmp/4ujn31282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/5ujn31282041621.ps tmp/5ujn31282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/65am61282041621.ps tmp/65am61282041621.png",intern=TRUE)) character(0) > try(system("convert tmp/75am61282041621.ps tmp/75am61282041621.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.222 0.956 2.117