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(166,165,164,162,160,159,160,162,163,163,164,166,163,166,170,171,176,172,169,180,172,170,161,167,158,163,165,169,168,165,156,157,146,150,146,159,146,151,156,152,152,143,127,126,122,122,114,127,125,123,124,123,127,117,104,110,106,107,100,115,117,123,130,129,125,112,90,96,99,108,101,113,113,120,131,135,137,120,102,114,121,134,122,131) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 166 163 158 146 125 117 113 NA [2,] 165 166 163 151 123 123 120 NA [3,] 164 170 165 156 124 130 131 NA [4,] 162 171 169 152 123 129 135 NA [5,] 160 176 168 152 127 125 137 NA [6,] 159 172 165 143 117 112 120 NA [7,] 160 169 156 127 104 90 102 NA [8,] 162 180 157 126 110 96 114 NA [9,] 163 172 146 122 106 99 121 NA [10,] 163 170 150 122 107 108 134 NA [11,] 164 161 146 114 100 101 122 NA [12,] 166 167 159 127 115 113 131 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 3 5 5 -2 6 7 NA [2,] -1 4 2 5 1 7 11 NA [3,] -2 1 4 -4 -1 -1 4 NA [4,] -2 5 -1 0 4 -4 2 NA [5,] -1 -4 -3 -9 -10 -13 -17 NA [6,] 1 -3 -9 -16 -13 -22 -18 NA [7,] 2 11 1 -1 6 6 12 NA [8,] 1 -8 -11 -4 -4 3 7 NA [9,] 0 -2 4 0 1 9 13 NA [10,] 1 -9 -4 -8 -7 -7 -12 NA [11,] 2 6 13 13 15 12 9 NA [12,] -3 -9 -13 -2 2 0 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/1u3b21281183400.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/25ca51281183400.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/35ca51281183400.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/45ca51281183400.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,] 113.0 120 124.0 123.0 125 112.0 90 96.0 99.0 107.0 100.0 113.0 [2,] 121.0 123 130.5 132.0 132 118.5 103 112.0 113.5 115.0 107.5 121.0 [3,] 146.0 151 156.0 152.0 152 143.0 127 126.0 122.0 134.0 122.0 131.0 [4,] 160.5 164 164.5 165.5 164 162.0 158 159.5 154.5 156.5 153.5 162.5 [5,] 166.0 166 170.0 171.0 176 172.0 169 180.0 172.0 170.0 164.0 167.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 122.4112 126.5155 135.6957 131.9943 132.8901 117.0225 94.15489 97.63377 [2,] 169.5888 175.4845 176.3043 172.0057 171.1099 168.9775 159.84511 154.36623 [,9] [,10] [,11] [,12] [1,] 97.51546 109.2169 94.52954 106.2169 [2,] 146.48454 158.7831 149.47046 155.7831 $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(113, 121, 146, 160.5, 166, 120, 123, 151, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5x4s81281183400.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,] -2.0 -1.0 -4.0 -4.0 -17.0 -22 -1.0 -11 -2.0 -12.0 2.0 -13.0 [2,] 1.0 1.5 -1.5 -1.5 -11.5 -17 1.5 -6 0.0 -8.5 7.5 -9.0 [3,] 5.0 4.0 -1.0 0.0 -9.0 -13 6.0 -4 1.0 -7.0 12.0 -2.5 [4,] 5.5 6.0 2.5 3.0 -3.5 -6 8.5 2 6.5 -5.5 13.0 0.0 [5,] 7.0 11.0 4.0 5.0 -1.0 1 12.0 7 13.0 -4.0 15.0 2.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.312673 1.312673 -3.388735 -2.687327 -13.777471 -19.569023 1.819713 [2,] 7.687327 6.687327 1.388735 2.687327 -4.222529 -6.430977 10.180287 [,8] [,9] [,10] [,11] [,12] [1,] -8.777471 -2.881695 -8.791552 8.715489 -8.305291 [2,] 0.777471 4.881695 -5.208448 15.284511 3.305291 $out [1] 1 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2, 1, 5, 5.5, 7, -1, 1.5, 4, 6, 11, -4, -1.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x4s81281183400.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] [1,] 159.0 161.0 146.0 114.0 100.0 90.0 102.0 NA [2,] 161.0 166.5 153.0 124.0 106.5 100.0 117.0 NA [3,] 163.0 170.0 158.5 135.0 116.0 112.5 121.5 NA [4,] 164.5 172.0 165.0 151.5 123.5 124.0 132.5 NA [5,] 166.0 180.0 169.0 156.0 127.0 130.0 137.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 161.4036 167.4914 153.0267 122.4571 108.2462 101.5534 114.4303 NA [2,] 164.5964 172.5086 163.9733 147.5429 123.7538 123.4466 128.5697 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(159, 161, 163, 164.5, 166, 161, 166.5, 170, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78vrs1281183400.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,] 129.7143 122.0 130.500 [2,] 133.8571 126.5 134.875 [3,] 140.4286 138.5 140.500 [4,] 146.5000 151.5 145.500 [5,] 149.2857 156.0 148.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 134.6621 127.0973 135.6539 [2,] 146.1951 149.9027 145.3461 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/1u3b21281183400.ps tmp/1u3b21281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/25ca51281183400.ps tmp/25ca51281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/35ca51281183400.ps tmp/35ca51281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/45ca51281183400.ps tmp/45ca51281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/5x4s81281183400.ps tmp/5x4s81281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/6x4s81281183400.ps tmp/6x4s81281183400.png",intern=TRUE)) character(0) > try(system("convert tmp/78vrs1281183400.ps tmp/78vrs1281183400.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.184 0.936 3.793