R version 2.12.2 (2011-02-25) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) 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,39,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] 118 > (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 10 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 41 50 74 158 99 136 238 298 327 500 [2,] 39 59 62 124 107 161 213 273 324 451 [3,] 50 63 55 140 112 171 257 312 285 375 [4,] 40 32 84 109 90 149 293 249 243 372 [5,] 43 39 94 114 98 184 212 286 241 302 [6,] 38 47 70 77 125 155 246 279 287 316 [7,] 44 53 108 120 155 276 353 309 355 398 [8,] 35 60 139 133 190 224 339 401 460 394 [9,] 39 57 120 110 236 213 308 309 364 431 [10,] 35 52 97 92 189 279 247 328 487 431 [11,] 29 70 126 97 174 268 257 353 452 NA [12,] 49 90 149 78 178 287 322 354 391 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -2 9 -12 -34 8 25 -25 -25 -3 -49 [2,] 11 4 -7 16 5 10 44 39 -39 -76 [3,] -10 -31 29 -31 -22 -22 36 -63 -42 -3 [4,] 3 7 10 5 8 35 -81 37 -2 -70 [5,] -5 8 -24 -37 27 -29 34 -7 46 14 [6,] 6 6 38 43 30 121 107 30 68 82 [7,] -9 7 31 13 35 -52 -14 92 105 -4 [8,] 4 -3 -19 -23 46 -11 -31 -92 -96 37 [9,] -4 -5 -23 -18 -47 66 -61 19 123 0 [10,] -6 18 29 5 -15 -11 10 25 -35 NA [11,] 20 20 23 -19 4 19 65 1 -61 NA [12,] 1 -16 9 21 -42 -49 -24 -27 109 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/wessaorg/rcomp/tmp/1kcll1302090039.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/273531302090039.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3k8941302090039.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4euoh1302090039.ps",horizontal=F,onefile=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 39.0 50.0 32 39 38 44.0 35 39.0 35 29 49 [2,] 74 62.0 63.0 84 94 70 108.0 133 110.0 92 97 90 [3,] 147 142.5 155.5 129 149 140 215.5 207 224.5 218 174 178 [4,] 298 273.0 285.0 249 241 279 353.0 394 309.0 328 268 322 [5,] 500 451.0 375.0 372 302 316 398.0 460 431.0 487 452 391 $n [1] 10 10 10 10 10 10 10 10 10 10 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 35.08067 37.07599 44.57995 46.55942 75.55294 35.57527 93.08823 [2,] 258.91933 247.92401 266.42005 211.44058 222.44706 244.42473 337.91177 [,8] [,9] [,10] [,11] [,12] [1,] 76.594 125.0717 100.085 83.94 55.81333 [2,] 337.406 323.9283 335.915 264.06 300.18667 $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, 74, 147, 298, 500, 39, 62, 142.5, 273, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/58gxj1302090039.ps",horizontal=F,onefile=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,] -49.0 -39.0 -63 -2 -37.0 6.0 -52 -31 -61.0 -35 -19 -49 [2,] -25.0 -7.0 -31 -2 -24.0 30.0 -9 -31 -23.0 -11 1 -27 [3,] -7.5 7.5 -22 6 1.5 40.5 10 -15 -4.5 5 19 -16 [4,] 8.0 16.0 -3 10 27.0 82.0 35 4 19.0 18 20 9 [5,] 25.0 44.0 36 10 46.0 121.0 92 46 66.0 29 23 21 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -23.988116 -3.991717 -35.989916 0.004321556 -23.98163 14.51873 -11.98415 [2,] 8.988116 18.991717 -8.010084 11.995678444 26.98163 66.48127 31.98415 [,8] [,9] [,10] [,11] [,12] [1,] -32.487395 -25.48487 -10.27333 8.993333 -34.96 [2,] 2.487395 16.48487 20.27333 29.006667 2.96 $out [1] -76 35 -81 37 -70 105 -92 -96 123 65 -61 109 $group [1] 2 4 4 4 4 7 8 8 9 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-49, -25, -7.5, 8, 25, -39, -7, 7.5, 16, 44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/6t5dj1302090040.ps",horizontal=F,onefile=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 136.0 212 249.0 241.0 302 [2,] 36.5 48.5 72.0 94.5 103.0 158.0 242 282.5 286.0 372 [3,] 39.5 55.0 95.5 112.0 140.0 198.5 257 309.0 341.0 396 [4,] 43.5 61.5 123.0 128.5 183.5 272.0 315 340.5 421.5 431 [5,] 50.0 70.0 149.0 158.0 236.0 287.0 353 401.0 487.0 500 $n [1] 12 12 12 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.30725 49.07061 72.23856 96.49237 103.2834 146.5038 223.7042 282.5458 [2,] 42.69275 60.92939 118.76144 127.50763 176.7166 250.4962 290.2958 335.4542 [,9] [,10] [1,] 279.1975 366.5212 [2,] 402.8025 425.4788 $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, 48.5, 55, 61.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/7005k1302090040.ps",horizontal=F,onefile=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,] 161.3000 129.00 164.3750 [2,] 173.7000 144.75 168.8750 [3,] 197.4944 164.75 182.0625 [4,] 217.9000 211.25 208.3125 [5,] 237.5000 224.50 257.3750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 177.3345 134.4189 164.0748 [2,] 217.6544 195.0811 200.0502 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(161.3, 173.7, 197.494444444444, 217.9, 237.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kcll1302090039.ps tmp/1kcll1302090039.png",intern=TRUE)) character(0) > try(system("convert tmp/273531302090039.ps tmp/273531302090039.png",intern=TRUE)) character(0) > try(system("convert tmp/3k8941302090039.ps tmp/3k8941302090039.png",intern=TRUE)) character(0) > try(system("convert tmp/4euoh1302090039.ps tmp/4euoh1302090039.png",intern=TRUE)) character(0) > try(system("convert tmp/58gxj1302090039.ps tmp/58gxj1302090039.png",intern=TRUE)) character(0) > try(system("convert tmp/6t5dj1302090040.ps tmp/6t5dj1302090040.png",intern=TRUE)) character(0) > try(system("convert tmp/7005k1302090040.ps tmp/7005k1302090040.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.480 0.250 1.823