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(1.4272,1.4614,1.4914,1.4816,1.4562,1.4268,1.4088,1.4016,1.365,1.319,1.305,1.2785,1.3239,1.3449,1.2732,1.3322,1.4369,1.4975,1.577,1.5553,1.5557,1.575,1.5527,1.4748,1.4718,1.457,1.4684,1.4227,1.3896,1.3622,1.3716,1.3419,1.3511,1.3516,1.3242,1.3074,1.2999,1.3213,1.2881,1.2611,1.2727,1.2811,1.2684,1.265,1.277,1.2271,1.202,1.1938,1.2103,1.1856,1.1786,1.2015,1.2256,1.2292,1.2037,1.2165,1.2694,1.2938,1.3201,1.3014,1.3119,1.3408,1.2991,1.249,1.2218,1.2176,1.2266,1.2138,1.2007,1.1985,1.2262,1.2646) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.4272 1.3239 1.4718 1.2999 1.2103 1.3119 NA [2,] 1.4614 1.3449 1.4570 1.3213 1.1856 1.3408 NA [3,] 1.4914 1.2732 1.4684 1.2881 1.1786 1.2991 NA [4,] 1.4816 1.3322 1.4227 1.2611 1.2015 1.2490 NA [5,] 1.4562 1.4369 1.3896 1.2727 1.2256 1.2218 NA [6,] 1.4268 1.4975 1.3622 1.2811 1.2292 1.2176 NA [7,] 1.4088 1.5770 1.3716 1.2684 1.2037 1.2266 NA [8,] 1.4016 1.5553 1.3419 1.2650 1.2165 1.2138 NA [9,] 1.3650 1.5557 1.3511 1.2770 1.2694 1.2007 NA [10,] 1.3190 1.5750 1.3516 1.2271 1.2938 1.1985 NA [11,] 1.3050 1.5527 1.3242 1.2020 1.3201 1.2262 NA [12,] 1.2785 1.4748 1.3074 1.1938 1.3014 1.2646 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0342 0.0210 -0.0148 0.0214 -0.0247 0.0289 NA [2,] 0.0300 -0.0717 0.0114 -0.0332 -0.0070 -0.0417 NA [3,] -0.0098 0.0590 -0.0457 -0.0270 0.0229 -0.0501 NA [4,] -0.0254 0.1047 -0.0331 0.0116 0.0241 -0.0272 NA [5,] -0.0294 0.0606 -0.0274 0.0084 0.0036 -0.0042 NA [6,] -0.0180 0.0795 0.0094 -0.0127 -0.0255 0.0090 NA [7,] -0.0072 -0.0217 -0.0297 -0.0034 0.0128 -0.0128 NA [8,] -0.0366 0.0004 0.0092 0.0120 0.0529 -0.0131 NA [9,] -0.0460 0.0193 0.0005 -0.0499 0.0244 -0.0022 NA [10,] -0.0140 -0.0223 -0.0274 -0.0251 0.0263 0.0277 NA [11,] -0.0265 -0.0779 -0.0168 -0.0082 -0.0187 0.0384 NA [12,] 0.0454 -0.0030 -0.0075 0.0165 0.0105 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/1kphm1272486278.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/2cgg71272486278.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/358xa1272486278.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/458xa1272486278.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] [1,] 1.2103 1.18560 1.1786 1.20150 1.22180 1.21760 1.2037 1.21380 1.20070 [2,] 1.2999 1.32130 1.2732 1.24900 1.22560 1.22920 1.2266 1.21650 1.26940 [3,] 1.3179 1.34285 1.2936 1.29665 1.33115 1.32165 1.3200 1.30345 1.31405 [4,] 1.4272 1.45700 1.4684 1.42270 1.43690 1.42680 1.4088 1.40160 1.36500 [5,] 1.4718 1.46140 1.4914 1.48160 1.45620 1.49750 1.5770 1.55530 1.36500 [,10] [,11] [,12] [1,] 1.1985 1.20200 1.26460 [2,] 1.2271 1.22620 1.26460 [3,] 1.3064 1.31255 1.28995 [4,] 1.3516 1.32420 1.30740 [5,] 1.3516 1.32420 1.30740 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.235787 1.255319 1.167690 1.184608 1.194855 1.194192 1.202475 1.184055 [2,] 1.400013 1.430381 1.419510 1.408692 1.467445 1.449108 1.437525 1.422845 [,9] [,10] [,11] [,12] [1,] 1.252385 1.226093 1.249337 1.262343 [2,] 1.375715 1.386707 1.375763 1.317557 $out [1] 1.5557 1.5750 1.5527 1.4748 1.1938 $group [1] 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(1.2103, 1.2999, 1.3179, 1.4272, 1.4718, 1.1856, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/558xa1272486278.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] [1,] -0.0247 -0.0717 -0.0501 -0.0331 -0.0294 -0.02550 -0.0297 -0.0366 -0.04990 [2,] -0.0148 -0.0417 -0.0457 -0.0272 -0.0274 -0.01800 -0.0217 -0.0131 -0.04600 [3,] 0.0212 -0.0201 -0.0184 -0.0069 -0.0003 -0.00185 -0.0100 0.0048 -0.00085 [4,] 0.0289 0.0114 0.0229 0.0241 0.0084 0.00940 -0.0034 0.0120 0.01930 [5,] 0.0342 0.0300 0.0590 0.0241 0.0606 0.00940 0.0128 0.0120 0.02440 [,10] [,11] [,12] [1,] -0.02740 -0.02650 -0.0075 [2,] -0.02510 -0.02650 -0.0030 [3,] -0.01815 -0.01775 0.0105 [4,] 0.02630 -0.00820 0.0165 [5,] 0.02770 -0.00820 0.0454 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.006987911 -0.05435122 -0.06264922 -0.03999016 -0.02339216 -0.01952388 [2,] 0.049387911 0.01415122 0.02584922 0.02619016 0.02279216 0.01582388 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.021804091 -0.01139031 -0.04297061 -0.05130466 -0.029554091 -0.003278651 [2,] 0.001804091 0.02099031 0.04127061 0.01500466 -0.005945909 0.024278651 $out [1] 0.1047 0.0795 0.0529 -0.0779 0.0384 $group [1] 4 6 8 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0246999999999999, -0.0147999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yzev1272486278.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] [1,] 1.2785 1.27320 1.30740 1.19380 1.17860 1.19850 NA [2,] 1.3420 1.33855 1.34650 1.24410 1.20260 1.21570 NA [3,] 1.4178 1.48615 1.36690 1.27055 1.22105 1.22640 NA [4,] 1.4588 1.55550 1.43985 1.28460 1.28160 1.28185 NA [5,] 1.4914 1.57700 1.47180 1.32130 1.32010 1.34080 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.364527 1.387198 1.324322 1.252078 1.185018 1.196229 NA [2,] 1.471073 1.585102 1.409478 1.289022 1.257082 1.256571 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.2785, 1.342, 1.4178, 1.4588, 1.4914, 1.2732, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yzev1272486278.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,] 1.321700 1.289950 1.284537 [2,] 1.326092 1.300050 1.300631 [3,] 1.333467 1.313300 1.322163 [4,] 1.338658 1.320825 1.341363 [5,] 1.351833 1.342850 1.377575 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.327735 1.303824 1.303585 [2,] 1.339198 1.322776 1.340740 $out [1] 1.303417 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.3217, 1.32609166666667, 1.33346666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kphm1272486278.ps tmp/1kphm1272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/2cgg71272486278.ps tmp/2cgg71272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/358xa1272486278.ps tmp/358xa1272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/458xa1272486278.ps tmp/458xa1272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/558xa1272486278.ps tmp/558xa1272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/6yzev1272486278.ps tmp/6yzev1272486278.png",intern=TRUE)) character(0) > try(system("convert tmp/7yzev1272486278.ps tmp/7yzev1272486278.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.202 0.942 1.521