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(155,154,153,151,171,170,155,145,146,146,147,149,146,155,149,140,155,152,137,127,134,125,132,141,133,143,141,132,144,140,130,122,124,119,128,131,121,123,116,109,116,109,103,98,95,83,92,94,76,75,77,68,80,66,69,67,68,64,72,70,55,55,54,55,67,54,57,53,49,47,64,58,38,41,38,41,60,49,53,55,56,52,68,68,41,46,41,47,62,48,53,61,59,46,69,69,42,42,42,50,64,47,51,66,64,49,71,68,39,30,22,33,46,24,27,45,38,18,36,31) > 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,] 155 146 133 121 76 55 38 41 42 39 NA [2,] 154 155 143 123 75 55 41 46 42 30 NA [3,] 153 149 141 116 77 54 38 41 42 22 NA [4,] 151 140 132 109 68 55 41 47 50 33 NA [5,] 171 155 144 116 80 67 60 62 64 46 NA [6,] 170 152 140 109 66 54 49 48 47 24 NA [7,] 155 137 130 103 69 57 53 53 51 27 NA [8,] 145 127 122 98 67 53 55 61 66 45 NA [9,] 146 134 124 95 68 49 56 59 64 38 NA [10,] 146 125 119 83 64 47 52 46 49 18 NA [11,] 147 132 128 92 72 64 68 69 71 36 NA [12,] 149 141 131 94 70 58 68 69 68 31 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 9 10 2 -1 0 3 5 0 -9 NA [2,] -1 -6 -2 -7 2 -1 -3 -5 0 -8 NA [3,] -2 -9 -9 -7 -9 1 3 6 8 11 NA [4,] 20 15 12 7 12 12 19 15 14 13 NA [5,] -1 -3 -4 -7 -14 -13 -11 -14 -17 -22 NA [6,] -15 -15 -10 -6 3 3 4 5 4 3 NA [7,] -10 -10 -8 -5 -2 -4 2 8 15 18 NA [8,] 1 7 2 -3 1 -4 1 -2 -2 -7 NA [9,] 0 -9 -5 -12 -4 -2 -4 -13 -15 -20 NA [10,] 1 7 9 9 8 17 16 23 22 18 NA [11,] 2 9 3 2 -2 -6 0 0 -3 -5 NA [12,] -3 -8 -10 -18 -15 -20 -27 -27 -29 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/1klf01281091991.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/2vuw31281091991.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/3vuw31281091991.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/4vuw31281091991.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,] 38.0 30 22.0 33.0 46.0 24 27 45.0 38 18 36.0 31.0 [2,] 41.0 42 41.0 47.0 62.0 48 53 55.0 56 47 68.0 68.0 [3,] 65.5 65 65.5 61.5 73.5 60 63 66.5 66 58 71.5 69.5 [4,] 133.0 143 141.0 132.0 144.0 140 130 122.0 124 119 128.0 131.0 [5,] 155.0 155 153.0 151.0 171.0 170 155 145.0 146 146 147.0 149.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 19.53313 14.53637 15.53601 19.03061 32.52953 14.03313 24.52773 [2,] 111.46687 115.46363 115.46399 103.96939 114.47047 105.96687 101.47227 [,8] [,9] [,10] [,11] [,12] [1,] 33.02413 32.02449 22.02593 41.52161 38.02269 [2,] 99.97587 99.97551 93.97407 101.47839 100.97731 $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(38, 41, 65.5, 133, 155, 30, 42, 65, 143, 155, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56lvo1281091991.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 -8.0 -9.0 12.0 -22 -15 -10 -7.0 -20 1.0 -6 -29 [2,] -1 -6.0 -9.0 12.0 -14 -10 -8 -3.0 -13 8.0 -3 -27 [3,] 1 -2.5 -0.5 13.5 -12 3 -3 -0.5 -7 12.5 0 -18 [4,] 5 -1.0 6.0 15.0 -4 4 8 1.0 -4 18.0 2 -10 [5,] 10 2.0 11.0 19.0 -1 5 18 7.0 0 23.0 9 -3 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.997839 -4.998199352 -7.994598 12.00108 -16.996399 -3.994958 -10.994238 [2,] 3.997839 -0.001800648 6.994598 14.99892 -7.003601 9.994958 4.994238 [,8] [,9] [,10] [,11] [,12] [1,] -2.498559 -11.496759 7.503601 -2.498199 -26.953333 [2,] 1.498559 -2.503241 17.496399 2.498199 -9.046667 $out [1] 20 7 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9, -1, 1, 5, 10, -8, -6, -2.5, -1, 2, -9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66lvo1281091991.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,] 145.0 125.0 119.0 83.0 64.0 49.0 38.0 41.0 42.0 18.0 NA [2,] 146.5 133.0 126.0 94.5 67.5 53.5 41.0 46.0 44.5 25.5 NA [3,] 152.0 140.5 131.5 106.0 69.5 55.0 52.5 50.5 50.5 32.0 NA [4,] 155.0 150.5 140.5 116.0 75.5 57.5 58.0 61.5 65.0 38.5 NA [5,] 155.0 155.0 144.0 123.0 80.0 58.0 68.0 69.0 71.0 46.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,] 148.1231 132.5181 124.8865 96.1937 65.85115 53.17557 44.74619 43.43035 [2,] 155.8769 148.4819 138.1135 115.8063 73.14885 56.82443 60.25381 57.56965 [,9] [,10] [,11] [1,] 41.14981 26.07061 NA [2,] 59.85019 37.92939 NA $out [1] 171 170 67 47 64 $group [1] 1 1 6 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(145, 146.5, 152, 155, 155, 125, 133, 140.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yuc91281091991.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,] 82.60 58.00 78.7500 [2,] 83.30 62.25 86.5000 [3,] 84.25 65.50 88.0625 [4,] 87.15 68.00 92.0625 [5,] 87.90 73.50 99.7500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 82.49399 62.87739 85.5254 [2,] 86.00601 68.12261 90.5996 $out [1] 96.5 74.9 $group [1] 1 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(82.6, 83.3, 84.25, 87.15, 87.9, 58, 62.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1klf01281091991.ps tmp/1klf01281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/2vuw31281091991.ps tmp/2vuw31281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/3vuw31281091991.ps tmp/3vuw31281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/4vuw31281091991.ps tmp/4vuw31281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/56lvo1281091991.ps tmp/56lvo1281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/66lvo1281091991.ps tmp/66lvo1281091991.png",intern=TRUE)) character(0) > try(system("convert tmp/7yuc91281091991.ps tmp/7yuc91281091991.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.205 0.940 1.567