R version 2.8.0 (2008-10-20) Copyright (C) 2008 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.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,1.2613,1.2286) > 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] 49 > (np <- floor(n / par1)) [1] 4 > 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] 5 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 1.4570 1.3213 1.1856 1.3408 1.2286 [2,] 1.4684 1.2881 1.1786 1.2991 NA [3,] 1.4227 1.2611 1.2015 1.2490 NA [4,] 1.3896 1.2727 1.2256 1.2218 NA [5,] 1.3622 1.2811 1.2292 1.2176 NA [6,] 1.3716 1.2684 1.2037 1.2266 NA [7,] 1.3419 1.2650 1.2165 1.2138 NA [8,] 1.3511 1.2770 1.2694 1.2007 NA [9,] 1.3516 1.2271 1.2938 1.1985 NA [10,] 1.3242 1.2020 1.3201 1.2262 NA [11,] 1.3074 1.1938 1.3014 1.2646 NA [12,] 1.2999 1.2103 1.3119 1.2613 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.0114 -0.0332 -0.0070 -0.0417 NA [2,] -0.0457 -0.0270 0.0229 -0.0501 NA [3,] -0.0331 0.0116 0.0241 -0.0272 NA [4,] -0.0274 0.0084 0.0036 -0.0042 NA [5,] 0.0094 -0.0127 -0.0255 0.0090 NA [6,] -0.0297 -0.0034 0.0128 -0.0128 NA [7,] 0.0092 0.0120 0.0529 -0.0131 NA [8,] 0.0005 -0.0499 0.0244 -0.0022 NA [9,] -0.0274 -0.0251 0.0263 0.0277 NA [10,] -0.0168 -0.0082 -0.0187 0.0384 NA [11,] -0.0075 0.0165 0.0105 -0.0033 NA [12,] 0.0214 -0.0247 0.0289 -0.0327 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/1tzbr1229420898.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/2osm01229420898.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/3zjj21229420898.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/4i3um1229420898.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.1856 1.17860 1.20150 1.22180 1.21760 1.20370 1.21380 1.20070 1.19850 [2,] 1.2286 1.23335 1.22525 1.22370 1.22340 1.21515 1.21515 1.23505 1.21280 [3,] 1.3213 1.29360 1.25505 1.24915 1.25515 1.24750 1.24075 1.27320 1.26045 [4,] 1.3408 1.38375 1.34190 1.33115 1.32165 1.32000 1.30345 1.31405 1.32270 [5,] 1.4570 1.46840 1.42270 1.38960 1.36220 1.37160 1.34190 1.35110 1.35160 [,10] [,11] [,12] [1,] 1.20200 1.1938 1.2103 [2,] 1.21410 1.2292 1.2358 [3,] 1.27315 1.2830 1.2806 [4,] 1.32215 1.3044 1.3059 [5,] 1.32420 1.3074 1.3119 $n [1] 5 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.242020 1.174784 1.162896 1.164265 1.177533 1.164669 1.170993 1.21079 [2,] 1.400580 1.412416 1.347204 1.334035 1.332767 1.330332 1.310507 1.33561 [,9] [,10] [,11] [,12] [1,] 1.173629 1.187790 1.223592 1.225221 [2,] 1.347271 1.358510 1.342408 1.335979 $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(1.1856, 1.2286, 1.3213, 1.3408, 1.457, 1.1786, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59pov1229420898.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.04170 -0.05010 -0.03310 -0.0274 -0.02550 -0.02970 -0.01310 -0.04990 [2,] -0.03745 -0.04790 -0.03015 -0.0158 -0.01910 -0.02125 -0.00195 -0.02605 [3,] -0.02010 -0.03635 -0.00780 -0.0003 -0.00185 -0.00810 0.01060 -0.00085 [4,] 0.00220 -0.00205 0.01785 0.0060 0.00920 0.00470 0.03245 0.01245 [5,] 0.01140 0.02290 0.02410 0.0084 0.00940 0.01280 0.05290 0.02440 [,9] [,10] [,11] [,12] [1,] -0.02740 -0.01870 -0.0075 -0.03270 [2,] -0.02625 -0.01775 -0.0054 -0.02870 [3,] 0.00060 -0.01250 0.0036 -0.00165 [4,] 0.02700 0.01510 0.0135 0.02515 [5,] 0.02770 0.03840 0.0165 0.02890 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.0514235 -0.0725715 -0.04572 -0.017522 -0.024207 -0.0286005 -0.016576 [2,] 0.0112235 -0.0001285 0.03012 0.016922 0.020507 0.0124005 0.037776 [,8] [,9] [,10] [,11] [,12] [1,] -0.031265 -0.0414675 -0.0384515 -0.011331 -0.0441915 [2,] 0.029565 0.0426675 0.0134515 0.018531 0.0408915 $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(-0.0417000000000001, -0.03745, -0.0200999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jdgl1229420898.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] [1,] 1.29990 1.19380 1.1786 1.19850 1.2286 [2,] 1.33305 1.21870 1.2026 1.21570 1.2286 [3,] 1.35690 1.26670 1.2274 1.22640 1.2286 [4,] 1.40615 1.27905 1.2976 1.26295 1.2286 [5,] 1.46840 1.32130 1.3201 1.29910 1.2286 $n [1] 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [1,] 1.323559 1.239174 1.184070 1.204849 1.2286 [2,] 1.390241 1.294226 1.270730 1.247951 1.2286 $out [1] 1.3408 $group [1] 4 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(1.2999, 1.33305, 1.3569, 1.40615, 1.4684, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ga5x1229420898.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.259300 1.24075 1.250025 [2,] 1.267662 1.25210 1.263563 [3,] 1.271688 1.26680 1.269975 [4,] 1.280500 1.28180 1.275313 [5,] 1.283575 1.32130 1.284700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.265832 1.253254 1.264616 [2,] 1.277543 1.280346 1.275334 $out [1] 1.306660 1.308550 1.301075 $group [1] 1 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.2593, 1.2676625, 1.2716875, 1.2805, 1.283575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1tzbr1229420898.ps tmp/1tzbr1229420898.png") > system("convert tmp/2osm01229420898.ps tmp/2osm01229420898.png") > system("convert tmp/3zjj21229420898.ps tmp/3zjj21229420898.png") > system("convert tmp/4i3um1229420898.ps tmp/4i3um1229420898.png") > system("convert tmp/59pov1229420898.ps tmp/59pov1229420898.png") > system("convert tmp/6jdgl1229420898.ps tmp/6jdgl1229420898.png") > system("convert tmp/7ga5x1229420898.ps tmp/7ga5x1229420898.png") > > > proc.time() user system elapsed 1.201 0.949 1.598