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(136,135,134,132,152,151,136,126,127,127,128,130,125,118,111,104,126,131,122,116,115,115,113,122,114,106,93,89,114,122,115,116,120,120,120,121,118,112,99,96,120,135,128,134,134,132,130,125,124,114,101,101,123,143,133,136,137,135,141,136,133,124,110,104,130,160,142,142,137,135,139,135,134,120,103,101,127,159,141,140,135,127,130,128,126,110,101,102,129,169,146,145,138,123,124,137,132,112,105,106,137,175,151,142,140,122,127,135,128,117,107,108,134,171,154,146,148,122,124,135) > 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,] 136 125 114 118 124 133 134 126 132 128 NA [2,] 135 118 106 112 114 124 120 110 112 117 NA [3,] 134 111 93 99 101 110 103 101 105 107 NA [4,] 132 104 89 96 101 104 101 102 106 108 NA [5,] 152 126 114 120 123 130 127 129 137 134 NA [6,] 151 131 122 135 143 160 159 169 175 171 NA [7,] 136 122 115 128 133 142 141 146 151 154 NA [8,] 126 116 116 134 136 142 140 145 142 146 NA [9,] 127 115 120 134 137 137 135 138 140 148 NA [10,] 127 115 120 132 135 135 127 123 122 122 NA [11,] 128 113 120 130 141 139 130 124 127 124 NA [12,] 130 122 121 125 136 135 128 137 135 135 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -7 -8 -6 -10 -9 -14 -16 -20 -11 NA [2,] -1 -7 -13 -13 -13 -14 -17 -9 -7 -10 NA [3,] -2 -7 -4 -3 0 -6 -2 1 1 1 NA [4,] 20 22 25 24 22 26 26 27 31 26 NA [5,] -1 5 8 15 20 30 32 40 38 37 NA [6,] -15 -9 -7 -7 -10 -18 -18 -23 -24 -17 NA [7,] -10 -6 1 6 3 0 -1 -1 -9 -8 NA [8,] 1 -1 4 0 1 -5 -5 -7 -2 2 NA [9,] 0 0 0 -2 -2 -2 -8 -15 -18 -26 NA [10,] 1 -2 0 -2 6 4 3 1 5 2 NA [11,] 2 9 1 -5 -5 -4 -2 13 8 11 NA [12,] -5 -8 -3 -1 -3 -1 -2 -5 -7 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/1qoul1280220336.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/2qoul1280220336.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/3jxbo1280220336.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/4jxbo1280220336.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,] 114 106.0 93 96 114 122 115.0 116 115 115 120.0 121.0 [2,] 124 112.0 101 101 123 135 128.0 126 127 122 124.0 125.0 [3,] 127 115.5 104 103 128 155 138.5 138 136 125 127.5 132.5 [4,] 133 120.0 110 106 134 169 146.0 142 138 132 130.0 135.0 [5,] 136 124.0 111 108 137 175 154.0 146 148 135 139.0 137.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,] 122.5032 111.5029 99.50324 100.5018 122.5040 138.0122 129.5065 130.0058 [2,] 131.4968 119.4971 108.49676 105.4982 133.4960 171.9878 147.4935 145.9942 [,9] [,10] [,11] [,12] [1,] 130.5040 120.0036 124.5022 127.5036 [2,] 141.4960 129.9964 130.4978 137.4964 $out [1] 135 134 132 89 152 113 141 $group [1] 2 3 4 4 5 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(114, 124, 127, 133, 136, 106, 112, 115.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5c6s91280220336.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,] -20.0 -17.0 -7 20.0 -1 -24 -10 -7.0 -26 -2.0 -5.0 -8 [2,] -14.0 -13.0 -4 22.0 8 -18 -8 -5.0 -15 0.0 -4.0 -5 [3,] -9.5 -11.5 -2 25.5 25 -16 -1 -0.5 -2 1.5 1.5 -3 [4,] -7.0 -7.0 1 26.0 37 -9 1 1.0 0 4.0 9.0 -2 [5,] -1.0 -1.0 1 31.0 40 -7 6 4.0 0 6.0 13.0 -1 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12.997479 -14.49784 -4.4981994 23.50144 10.51044 -20.49676 -5.496759 [2,] -6.002521 -8.50216 0.4981994 27.49856 39.48956 -11.50324 3.496759 [,8] [,9] [,10] [,11] [,12] [1,] -3.497839 -9.494598 -0.4985595 -4.995318 -4.58 [2,] 2.497839 5.494598 3.4985595 7.995318 -1.42 $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(-20, -14, -9.5, -7, -1, -17, -13, -11.5, -7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6c6s91280220336.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,] 126.0 104.0 106.0 96.0 101.0 110.0 103.0 101.0 105.0 107.0 NA [2,] 127.5 114.0 110.0 115.0 118.5 127.0 123.5 116.5 117.0 119.5 NA [3,] 133.0 117.0 115.5 126.5 134.0 135.0 129.0 127.5 133.5 131.0 NA [4,] 136.0 123.5 120.0 133.0 136.5 140.5 137.5 141.5 141.0 147.0 NA [5,] 136.0 131.0 122.0 135.0 143.0 160.0 141.0 169.0 175.0 171.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,] 129.1231 112.6670 110.9389 118.2901 125.7901 128.8426 122.6145 116.0973 [2,] 136.8769 121.3330 120.0611 134.7099 142.2099 141.1574 135.3855 138.9027 [,9] [,10] [,11] [1,] 122.5534 118.4571 NA [2,] 144.4466 143.5429 NA $out [1] 152 151 93 89 104 101 159 $group [1] 1 1 3 3 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(126, 127.5, 133, 136, 136, 104, 114, 117, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7c6s91280220336.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,] 104.3 103.00 103.2500 [2,] 121.3 120.25 121.0625 [3,] 128.4 127.75 128.4375 [4,] 133.7 137.00 134.1250 [5,] 151.6 155.00 151.8750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 122.7443 120.1102 122.4796 [2,] 134.0557 135.3898 134.3954 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(104.3, 121.3, 128.4, 133.7, 151.6, 103, 120.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qoul1280220336.ps tmp/1qoul1280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/2qoul1280220336.ps tmp/2qoul1280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/3jxbo1280220336.ps tmp/3jxbo1280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/4jxbo1280220336.ps tmp/4jxbo1280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/5c6s91280220336.ps tmp/5c6s91280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/6c6s91280220336.ps tmp/6c6s91280220336.png",intern=TRUE)) character(0) > try(system("convert tmp/7c6s91280220336.ps tmp/7c6s91280220336.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.204 0.951 1.562