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(125,124,123,121,141,140,125,115,116,116,117,119,114,110,108,111,124,125,118,108,107,103,113,116,113,105,102,107,119,116,113,102,96,95,101,110,103,88,79,96,118,116,114,102,98,98,101,117,109,98,93,98,114,115,112,112,103,107,104,117,123,113,97,90,109,104,92,102,90,97,99,108,106,86,72,71,96,88,83,90,85,100,108,118,124,99,92,86,112,104,93,104,96,109,113,123,127,96,100,95,133,130,117,129,122,134,141,152,161,122,126,119,160,162,145,161,151,166,169,185) > 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,] 125 114 113 103 109 123 106 124 127 161 NA [2,] 124 110 105 88 98 113 86 99 96 122 NA [3,] 123 108 102 79 93 97 72 92 100 126 NA [4,] 121 111 107 96 98 90 71 86 95 119 NA [5,] 141 124 119 118 114 109 96 112 133 160 NA [6,] 140 125 116 116 115 104 88 104 130 162 NA [7,] 125 118 113 114 112 92 83 93 117 145 NA [8,] 115 108 102 102 112 102 90 104 129 161 NA [9,] 116 107 96 98 103 90 85 96 122 151 NA [10,] 116 103 95 98 107 97 100 109 134 166 NA [11,] 117 113 101 101 104 99 108 113 141 169 NA [12,] 119 116 110 117 117 108 118 123 152 185 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -4 -8 -15 -11 -10 -20 -25 -31 -39 NA [2,] -1 -2 -3 -9 -5 -16 -14 -7 4 4 NA [3,] -2 3 5 17 5 -7 -1 -6 -5 -7 NA [4,] 20 13 12 22 16 19 25 26 38 41 NA [5,] -1 1 -3 -2 1 -5 -8 -8 -3 2 NA [6,] -15 -7 -3 -2 -3 -12 -5 -11 -13 -17 NA [7,] -10 -10 -11 -12 0 10 7 11 12 16 NA [8,] 1 -1 -6 -4 -9 -12 -5 -8 -7 -10 NA [9,] 0 -4 -1 0 4 7 15 13 12 15 NA [10,] 1 10 6 3 -3 2 8 4 7 3 NA [11,] 2 3 9 16 13 9 10 10 11 16 NA [12,] -5 -3 -7 -8 6 -2 6 4 9 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/1p62l1281192360.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/2p62l1281192360.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/3p62l1281192360.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/40x1n1281192360.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,] 103.0 86 72.0 71 96.0 88 83.0 90 85.0 95 99.0 108.0 [2,] 109.0 96 92.0 90 112.0 104 93.0 102 96.0 98 101.0 116.0 [3,] 118.5 102 98.5 97 118.5 116 113.5 106 100.5 105 110.5 117.5 [4,] 125.0 113 108.0 111 133.0 130 118.0 115 116.0 116 117.0 123.0 [5,] 127.0 124 126.0 121 160.0 162 145.0 129 122.0 134 141.0 123.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 110.5058 93.50612 90.50576 86.50756 108.0076 103.0094 101.009 99.50468 [2,] 126.4942 110.49388 106.49424 107.49244 128.9924 128.9906 125.991 112.49532 [,9] [,10] [,11] [,12] [1,] 90.5072 96.00648 102.5058 114.0025 [2,] 110.4928 113.99352 118.4942 120.9975 $out [1] 161 161 151 166 169 152 185 $group [1] 1 8 9 10 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(103, 109, 118.5, 125, 127, 86, 96, 102, 113, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50x1n1281192360.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 -16 -7.0 12 -8.0 -17 -12.0 -12.0 -4.0 -3.0 3 -8 [2,] -25 -9 -6.0 16 -5.0 -13 -10.0 -9.0 0.0 2.0 9 -5 [3,] -13 -4 -1.5 21 -2.5 -9 3.5 -6.5 5.5 3.5 10 -2 [4,] -8 -1 5.0 26 1.0 -3 11.0 -4.0 13.0 7.0 13 6 [5,] -1 4 17.0 41 2.0 -2 16.0 1.0 15.0 10.0 16 9 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -21.493878 -7.997118962 -6.996039 16.0036 -5.4978392 -13.996399 -6.992437 [2,] -4.506122 -0.002881038 3.996039 25.9964 0.4978392 -4.003601 13.992437 [,8] [,9] [,10] [,11] [,12] [1,] -8.998199 -0.9953183 1.001801 8.00144 -7.793333 [2,] -4.001801 11.9953183 5.998199 11.99856 3.793333 $out [1] 2 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-39, -25, -13, -8, -1, -16, -9, -4, -1, 4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60x1n1281192360.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,] 115.0 103 95.0 79.0 93.0 90.0 71 86.0 95.0 119.0 NA [2,] 116.5 108 101.5 97.0 100.5 94.5 84 94.5 108.5 135.5 NA [3,] 122.0 112 106.0 101.5 108.0 100.5 89 104.0 128.0 160.5 NA [4,] 125.0 117 113.0 115.0 113.0 108.5 103 112.5 133.5 164.0 NA [5,] 125.0 125 119.0 118.0 117.0 123.0 118 124.0 152.0 185.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,] 118.1231 107.8950 100.7548 93.29008 102.2987 94.1145 80.33397 95.79008 [2,] 125.8769 116.1050 111.2452 109.70992 113.7013 106.8855 97.66603 112.20992 [,9] [,10] [,11] [1,] 116.5973 147.5010 NA [2,] 139.4027 173.4990 NA $out [1] 141 140 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(115, 116.5, 122, 125, 125, 103, 108, 112, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7aoiq1281192360.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,] 99.20 97.00 99.3750 [2,] 105.25 101.25 104.6250 [3,] 112.50 108.25 107.9375 [4,] 120.25 116.75 117.5625 [5,] 126.50 118.50 121.6250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 105.6584 101.1803 102.0366 [2,] 119.3416 115.3197 113.8384 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(99.2, 105.25, 112.5, 120.25, 126.5, 97, 101.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1p62l1281192360.ps tmp/1p62l1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/2p62l1281192360.ps tmp/2p62l1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/3p62l1281192360.ps tmp/3p62l1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/40x1n1281192360.ps tmp/40x1n1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/50x1n1281192360.ps tmp/50x1n1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/60x1n1281192360.ps tmp/60x1n1281192360.png",intern=TRUE)) character(0) > try(system("convert tmp/7aoiq1281192360.ps tmp/7aoiq1281192360.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.182 0.938 1.742