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(120,119,118,116,114,113,114,116,117,117,118,120,123,125,120,116,111,108,113,112,126,124,124,118,119,122,114,108,104,101,107,104,123,125,134,131,127,124,123,117,112,118,123,124,144,148,152,154,146,132,136,128,120,124,126,121,140,142,142,139,131,117,122,112,98,103,108,102,126,129,126,126,112,99,106,104,90,98,99,91,118,115,119,123) > 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,] 120 123 119 127 146 131 112 NA [2,] 119 125 122 124 132 117 99 NA [3,] 118 120 114 123 136 122 106 NA [4,] 116 116 108 117 128 112 104 NA [5,] 114 111 104 112 120 98 90 NA [6,] 113 108 101 118 124 103 98 NA [7,] 114 113 107 123 126 108 99 NA [8,] 116 112 104 124 121 102 91 NA [9,] 117 126 123 144 140 126 118 NA [10,] 117 124 125 148 142 129 115 NA [11,] 118 124 134 152 142 126 119 NA [12,] 120 118 131 154 139 126 123 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 2 3 -3 -14 -14 -13 NA [2,] -1 -5 -8 -1 4 5 7 NA [3,] -2 -4 -6 -6 -8 -10 -2 NA [4,] -2 -5 -4 -5 -8 -14 -14 NA [5,] -1 -3 -3 6 4 5 8 NA [6,] 1 5 6 5 2 5 1 NA [7,] 2 -1 -3 1 -5 -6 -8 NA [8,] 1 14 19 20 19 24 27 NA [9,] 0 -2 2 4 2 3 -3 NA [10,] 1 0 9 4 0 -3 4 NA [11,] 2 -6 -3 2 -3 0 4 NA [12,] 3 1 -4 -8 -8 -14 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/1subm1282051473.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/2subm1282051473.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/32lsp1282051473.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/42lsp1282051473.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,] 112.0 117.0 114.0 104.0 90 98.0 99.0 91.0 117.0 115.0 118.0 118.0 [2,] 119.5 118.0 116.0 110.0 101 102.0 107.5 103.0 120.5 120.5 121.5 121.5 [3,] 123.0 122.0 120.0 116.0 111 108.0 113.0 112.0 126.0 125.0 126.0 126.0 [4,] 129.0 124.5 122.5 116.5 113 115.5 118.5 118.5 133.0 135.5 138.0 135.0 [5,] 131.0 132.0 123.0 117.0 120 124.0 126.0 124.0 144.0 148.0 152.0 154.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,] 117.3268 118.1183 116.1183 112.1183 103.8338 99.93802 106.4310 102.7437 [2,] 128.6732 125.8817 123.8817 119.8817 118.1662 116.06198 119.5690 121.2563 [,9] [,10] [,11] [,12] [1,] 118.5352 116.0422 116.1465 117.9380 [2,] 133.4648 133.9578 135.8535 134.0620 $out [1] 146 99 136 106 128 $group [1] 1 2 3 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(112, 119.5, 123, 129, 131, 117, 118, 122, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ddss1282051473.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,] -14.0 -8.0 -10 -14.0 -3.0 1.0 -8.0 14.0 -3.0 -3 -6 -14 [2,] -13.5 -3.0 -7 -11.0 -2.0 1.5 -5.5 16.5 -1.0 0 -3 -8 [3,] -3.0 -1.0 -6 -5.0 4.0 5.0 -3.0 19.0 2.0 1 0 -6 [4,] 0.5 4.5 -3 -4.5 5.5 5.0 0.0 22.0 2.5 4 2 1 [5,] 3.0 7.0 -2 -2.0 8.0 6.0 2.0 27.0 4.0 9 4 3 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.360574 -5.478879 -8.388735 -8.881695 -0.478879 2.909856 -6.2845113 [2,] 5.360574 3.478879 -3.611265 -1.118305 8.478879 7.090144 0.2845113 [,8] [,9] [,10] [,11] [,12] [1,] 15.71549 -0.09014354 -1.388735 -2.985919 -11.8052907 [2,] 22.28451 4.09014354 3.388735 2.985919 -0.1947093 $out [1] 1 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-14, -13.5, -3, 0.5, 3, -8, -3, -1, 4.5, 7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ddss1282051473.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,] 113.0 108.0 101.0 112.0 120 98.0 90.0 NA [2,] 115.0 112.5 105.5 120.5 125 105.5 98.5 NA [3,] 117.0 119.0 116.5 124.0 134 119.5 105.0 NA [4,] 118.5 124.0 124.0 146.0 141 126.0 116.5 NA [5,] 120.0 126.0 134.0 154.0 146 131.0 123.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 115.4036 113.7548 108.0620 112.3693 126.7023 110.1498 96.79008 NA [2,] 118.5964 124.2452 124.9380 135.6307 141.2977 128.8502 113.20992 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(113, 115, 117, 118.5, 120, 108, 112.5, 119, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ddss1282051473.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,] 107.0000 108.0 107.000 [2,] 111.4286 112.5 111.875 [3,] 119.7857 121.0 120.250 [4,] 128.1429 125.5 127.375 [5,] 130.7143 126.0 129.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 112.1622 115.0706 113.1803 [2,] 127.4092 126.9294 127.3197 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(107, 111.428571428571, 119.785714285714, 128.142857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1subm1282051473.ps tmp/1subm1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/2subm1282051473.ps tmp/2subm1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/32lsp1282051473.ps tmp/32lsp1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/42lsp1282051473.ps tmp/42lsp1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/5ddss1282051473.ps tmp/5ddss1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/6ddss1282051473.ps tmp/6ddss1282051473.png",intern=TRUE)) character(0) > try(system("convert tmp/7ddss1282051473.ps tmp/7ddss1282051473.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 0.964 1.863