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(41,39,50,40,43,38,44,35,39,35,29,49,50,59,63,32,47,53,60,57,52,70,90,74,62,55,84,94,70,108,139,120,97,126,149,158,124,140,109,114,77,120,133,110,92,97,78,99,107,112,90,98,125,155,190,236,189,174,178,136,161,171,149,184,155,276,224,213,279,268,287,238,213,257,293,212,246,353,339,308,247,257,322,298,273,312,249,286,279,309,401,309,328,353,354,327,324,285,243,241,287,355,460,364,487,452,391,500,451,375,372,302,316,398,394,431,431) > 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] 117 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 41 50 62 124 107 161 213 273 324 451 [2,] 39 59 55 140 112 171 257 312 285 375 [3,] 50 63 84 109 90 149 293 249 243 372 [4,] 40 32 94 114 98 184 212 286 241 302 [5,] 43 47 70 77 125 155 246 279 287 316 [6,] 38 53 108 120 155 276 353 309 355 398 [7,] 44 60 139 133 190 224 339 401 460 394 [8,] 35 57 120 110 236 213 308 309 364 431 [9,] 39 52 97 92 189 279 247 328 487 431 [10,] 35 70 126 97 174 268 257 353 452 NA [11,] 29 90 149 78 178 287 322 354 391 NA [12,] 49 74 158 99 136 238 298 327 500 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -2 9 -7 16 5 10 44 39 -39 -76 [2,] 11 4 29 -31 -22 -22 36 -63 -42 -3 [3,] -10 -31 10 5 8 35 -81 37 -2 -70 [4,] 3 15 -24 -37 27 -29 34 -7 46 14 [5,] -5 6 38 43 30 121 107 30 68 82 [6,] 6 7 31 13 35 -52 -14 92 105 -4 [7,] -9 -3 -19 -23 46 -11 -31 -92 -96 37 [8,] 4 -5 -23 -18 -47 66 -61 19 123 0 [9,] -4 18 29 5 -15 -11 10 25 -35 NA [10,] -6 20 23 -19 4 19 65 1 -61 NA [11,] 20 -16 9 21 -42 -49 -24 -27 109 NA [12,] 1 -12 -34 8 25 -25 -25 -3 -49 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/1fes11244025257.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/21rb01244025257.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/3658g1244025257.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/4lnm11244025257.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,] 41.0 39.0 50 32 43 38.0 44 35.0 39 35 29 49 [2,] 62.0 59.0 84 94 70 108.0 133 110.0 92 97 90 99 [3,] 142.5 155.5 129 149 140 215.5 207 224.5 218 174 178 158 [4,] 273.0 285.0 249 241 279 353.0 394 309.0 328 268 322 298 [5,] 451.0 375.0 372 302 316 398.0 460 431.0 487 452 391 500 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 37.07599 42.58139 46.55942 75.55294 35.57527 93.08823 76.594 [2,] 247.92401 268.41861 211.44058 222.44706 244.42473 337.91177 337.406 [,8] [,9] [,10] [,11] [,12] [1,] 125.0717 100.085 83.94 55.81333 53.19333 [2,] 323.9283 335.915 264.06 300.18667 262.80667 $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(41, 62, 142.5, 273, 451, 39, 59, 155.5, 285, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vgy71244025257.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,] -39 -63.0 -81.0 -37.0 -5.0 -52 -31 -61.0 -35 -19 -49 -49 [2,] -7 -31.0 -31.0 -24.0 30.0 -4 -31 -23.0 -11 -6 -27 -25 [3,] 7 -12.5 1.5 8.5 40.5 10 -15 -2.5 5 4 -16 -12 [4,] 16 11.0 10.0 27.0 82.0 35 -3 19.0 18 20 20 1 [5,] 44 36.0 37.0 46.0 121.0 92 37 66.0 29 23 21 25 $n [1] 10 10 10 10 10 10 10 10 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.491717 -33.484875 -18.98523 -16.98163 14.51873 -9.485955 -28.989916 [2,] 18.491717 8.484875 21.98523 33.98163 66.48127 29.485955 -1.010084 [,8] [,9] [,10] [,11] [,12] [1,] -23.48487 -10.27333 -9.693333 -40.753333 -25.693333 [2,] 18.48487 20.27333 17.693333 8.753333 1.693333 $out [1] -76 105 46 -92 -96 123 65 -61 109 $group [1] 1 6 7 7 7 8 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-39, -7, 7, 16, 44, -63, -31, -12.5, 11, 36, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wied1244025257.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] [1,] 29.0 32.0 55.0 77.0 90.0 149.0 212.0 249.0 241.0 302 [2,] 36.5 51.0 77.0 94.5 109.5 166.0 246.5 282.5 286.0 372 [3,] 39.5 58.0 102.5 109.5 145.5 218.5 275.0 310.5 359.5 394 [4,] 43.5 66.5 132.5 122.0 183.5 272.0 315.0 340.5 456.0 431 [5,] 50.0 74.0 158.0 140.0 236.0 287.0 353.0 401.0 500.0 451 $n [1] 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.30725 50.93035 77.18608 96.95707 111.7481 170.1527 243.7567 284.0458 [2,] 42.69275 65.06965 127.81392 122.04293 179.2519 266.8473 306.2433 336.9542 [,9] [,10] [1,] 281.9619 362.9267 [2,] 437.0381 425.0733 $out [1] 90 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(29, 36.5, 39.5, 43.5, 50, 32, 51, 58, 66.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xb3m1244025257.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,] 160.3000 129.00 164.3750 [2,] 175.3500 145.75 168.8750 [3,] 206.1111 166.00 190.5000 [4,] 217.4000 211.25 208.3125 [5,] 238.4000 224.50 257.3750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 186.9318 136.125 172.5123 [2,] 225.2904 195.875 208.4877 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(160.3, 175.35, 206.111111111111, 217.4, 238.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fes11244025257.ps tmp/1fes11244025257.png") > system("convert tmp/21rb01244025257.ps tmp/21rb01244025257.png") > system("convert tmp/3658g1244025257.ps tmp/3658g1244025257.png") > system("convert tmp/4lnm11244025257.ps tmp/4lnm11244025257.png") > system("convert tmp/5vgy71244025257.ps tmp/5vgy71244025257.png") > system("convert tmp/6wied1244025257.ps tmp/6wied1244025257.png") > system("convert tmp/7xb3m1244025257.ps tmp/7xb3m1244025257.png") > > > proc.time() user system elapsed 1.189 0.935 1.582