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(0.8833,0.87,0.8758,0.8858,0.917,0.9554,0.9922,0.9778,0.9808,0.9811,1.0014,1.0183,1.0622,1.0773,1.0807,1.0848,1.1582,1.1663,1.1372,1.1139,1.1222,1.1692,1.1702,1.2286,1.2613,1.2646,1.2262,1.1985,1.2007,1.2138,1.2266,1.2176,1.2218,1.249,1.2991,1.3408,1.3119,1.3014,1.3201,1.2938,1.2694,1.2165,1.2037,1.2292,1.2256,1.2015,1.1786,1.1856,1.2103,1.1938,1.202,1.2271,1.277,1.265,1.2684,1.2811,1.2727,1.2611,1.2881,1.3213,1.2999,1.3074,1.3242,1.3516,1.3511,1.3419,1.3716,1.3622,1.3896,1.4227,1.4684,1.457,1.4718,1.4748,1.5527,1.575,1.5557,1.5553,1.577,1.4975,1.4369,1.3322,1.2732,1.3449,1.3239,1.2785,1.305,1.319,1.365,1.4016,1.4088,1.4268,1.4562,1.4816,1.4914,1.4614,1.4272) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.8833 1.0622 1.2613 1.3119 1.2103 1.2999 1.4718 1.3239 1.4272 [2,] 0.8700 1.0773 1.2646 1.3014 1.1938 1.3074 1.4748 1.2785 NA [3,] 0.8758 1.0807 1.2262 1.3201 1.2020 1.3242 1.5527 1.3050 NA [4,] 0.8858 1.0848 1.1985 1.2938 1.2271 1.3516 1.5750 1.3190 NA [5,] 0.9170 1.1582 1.2007 1.2694 1.2770 1.3511 1.5557 1.3650 NA [6,] 0.9554 1.1663 1.2138 1.2165 1.2650 1.3419 1.5553 1.4016 NA [7,] 0.9922 1.1372 1.2266 1.2037 1.2684 1.3716 1.5770 1.4088 NA [8,] 0.9778 1.1139 1.2176 1.2292 1.2811 1.3622 1.4975 1.4268 NA [9,] 0.9808 1.1222 1.2218 1.2256 1.2727 1.3896 1.4369 1.4562 NA [10,] 0.9811 1.1692 1.2490 1.2015 1.2611 1.4227 1.3322 1.4816 NA [11,] 1.0014 1.1702 1.2991 1.1786 1.2881 1.4684 1.2732 1.4914 NA [12,] 1.0183 1.2286 1.3408 1.1856 1.3213 1.4570 1.3449 1.4614 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.0133 0.0151 0.0033 -0.0105 -0.0165 0.0075 0.0030 -0.0454 NA [2,] 0.0058 0.0034 -0.0384 0.0187 0.0082 0.0168 0.0779 0.0265 NA [3,] 0.0100 0.0041 -0.0277 -0.0263 0.0251 0.0274 0.0223 0.0140 NA [4,] 0.0312 0.0734 0.0022 -0.0244 0.0499 -0.0005 -0.0193 0.0460 NA [5,] 0.0384 0.0081 0.0131 -0.0529 -0.0120 -0.0092 -0.0004 0.0366 NA [6,] 0.0368 -0.0291 0.0128 -0.0128 0.0034 0.0297 0.0217 0.0072 NA [7,] -0.0144 -0.0233 -0.0090 0.0255 0.0127 -0.0094 -0.0795 0.0180 NA [8,] 0.0030 0.0083 0.0042 -0.0036 -0.0084 0.0274 -0.0606 0.0294 NA [9,] 0.0003 0.0470 0.0272 -0.0241 -0.0116 0.0331 -0.1047 0.0254 NA [10,] 0.0203 0.0010 0.0501 -0.0229 0.0270 0.0457 -0.0590 0.0098 NA [11,] 0.0169 0.0584 0.0417 0.0070 0.0332 -0.0114 0.0717 -0.0300 NA [12,] 0.0439 0.0327 -0.0289 0.0247 -0.0214 0.0148 -0.0210 -0.0342 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/1o1541272271303.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/2o1541272271303.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/3ham71272271303.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/4ham71272271303.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.0622 1.07730 0.87580 0.88580 0.91700 0.95540 0.99220 0.97780 0.98080 [2,] 1.2103 1.13555 1.14135 1.14165 1.17945 1.19005 1.17045 1.16575 1.17200 [3,] 1.2999 1.27155 1.26560 1.26045 1.27320 1.24075 1.24750 1.25515 1.24915 [4,] 1.3239 1.30440 1.32215 1.33530 1.35805 1.37175 1.39020 1.39450 1.41325 [5,] 1.4718 1.47480 1.55270 1.57500 1.55570 1.55530 1.57700 1.49750 1.45620 [,10] [,11] [,12] [1,] 0.98110 1.00140 1.01830 [2,] 1.18535 1.17440 1.20710 [3,] 1.25505 1.28065 1.33105 [4,] 1.37745 1.38375 1.40095 [5,] 1.48160 1.49140 1.46140 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.240071 1.177228 1.164603 1.152274 1.173431 1.139250 1.124744 1.127367 [2,] 1.359729 1.365872 1.366597 1.368626 1.372969 1.342250 1.370256 1.382933 [,9] [,10] [,11] [,12] [1,] 1.114384 1.147740 1.163704 1.222763 [2,] 1.383916 1.362360 1.397596 1.439337 $out [1] 0.8833 0.8700 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.0622, 1.2103, 1.2999, 1.3239, 1.4718, 1.0773, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r13s1272271303.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] [1,] -0.01650 0.0034 -0.0277 -0.02440 -0.05290 -0.0291 -0.02330 -0.00840 [2,] -0.01490 0.0046 -0.0111 -0.00990 -0.01060 -0.0047 -0.01885 -0.00600 [3,] -0.00375 0.0125 0.0120 0.01670 0.00385 0.0100 -0.00920 0.00360 [4,] 0.00540 0.0226 0.0237 0.04795 0.02485 0.0257 0.01535 0.01785 [5,] 0.01510 0.0265 0.0274 0.07340 0.03840 0.0368 0.02550 0.02940 [,9] [,10] [,11] [,12] [1,] -0.02410 -0.05900 -0.03000 -0.03420 [2,] -0.01785 -0.01095 -0.00220 -0.02515 [3,] 0.01285 0.01505 0.02505 -0.00310 [4,] 0.03015 0.03635 0.05005 0.02870 [5,] 0.04700 0.05010 0.07170 0.04390 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.015089871 0.002444942 -0.00743978 -0.01561584 -0.01595288 -0.006981876 [2,] 0.007589871 0.022555058 0.03143978 0.04901584 0.02365288 0.026981876 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.028304611 -0.009722952 -0.01396349 -0.01137246 -0.0041376 -0.03318138 [2,] 0.009904611 0.016922952 0.03966349 0.04147246 0.0542376 0.02698138 $out [1] -0.0454 -0.0384 0.0779 -0.0795 -0.0606 -0.1047 $group [1] 1 2 2 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0165000000000000, -0.0149000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r13s1272271303.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] [1,] 0.87000 1.06220 1.19850 1.1786 1.19380 1.29990 1.27320 1.27850 1.4272 [2,] 0.88455 1.08275 1.21570 1.2026 1.21870 1.33305 1.39090 1.32145 1.4272 [3,] 0.96660 1.12970 1.22640 1.2274 1.26670 1.35690 1.48615 1.40520 1.4272 [4,] 0.98665 1.16775 1.26295 1.2976 1.27905 1.40615 1.55550 1.45880 1.4272 [5,] 1.01830 1.22860 1.29910 1.3201 1.32130 1.46840 1.57700 1.49140 1.4272 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.9200315 1.090931 1.204849 1.184070 1.239174 1.323559 1.411075 1.342554 [2,] 1.0131685 1.168469 1.247951 1.270730 1.294226 1.390241 1.561225 1.467846 [,9] [1,] 1.4272 [2,] 1.4272 $out [1] 1.3408 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.87, 0.88455, 0.9666, 0.98665, 1.0183, 1.0622, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7r13s1272271303.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.220975 1.240750 1.233787 [2,] 1.246075 1.252100 1.253788 [3,] 1.262763 1.263025 1.273225 [4,] 1.267888 1.276925 1.284500 [5,] 1.294738 1.299900 1.299162 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.252814 1.251702 1.259217 [2,] 1.272711 1.274348 1.287233 $out [1] 1.33105 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.220975, 1.246075, 1.2627625, 1.2678875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1o1541272271303.ps tmp/1o1541272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/2o1541272271303.ps tmp/2o1541272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/3ham71272271303.ps tmp/3ham71272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/4ham71272271303.ps tmp/4ham71272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/5r13s1272271303.ps tmp/5r13s1272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/6r13s1272271303.ps tmp/6r13s1272271303.png",intern=TRUE)) character(0) > try(system("convert tmp/7r13s1272271303.ps tmp/7r13s1272271303.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.196 0.938 1.851