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.2413,1.2758,1.2729,1.2695,1.2858,1.2741,1.2823,1.2588,1.2856,1.2619,1.2590,1.2865,1.2667,1.2505,1.2205,1.2220,1.1990,1.1583,1.1931,1.2028,1.1802,1.2084,1.1996,1.1870,1.2013,1.2120,1.2133,1.1866,1.2067,1.2240,1.2566,1.2608,1.3005,1.2955,1.2500,1.3158,1.3358,1.2817,1.2707,1.2595,1.3182,1.2665,1.2715,1.3041,1.3106,1.2911,1.2233,1.1438,0.9895,1.9903,0.9967,0.9708,0.9946,1.0441,1.0757,1.1461,1.1749,1.1926,1.2109) > 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] 59 > (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 5 5 5 5 5 5 5 5 5 5 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 1.2413 1.2667 1.2013 1.3358 0.9895 [2,] 1.2758 1.2505 1.2120 1.2817 1.9903 [3,] 1.2729 1.2205 1.2133 1.2707 0.9967 [4,] 1.2695 1.2220 1.1866 1.2595 0.9708 [5,] 1.2858 1.1990 1.2067 1.3182 0.9946 [6,] 1.2741 1.1583 1.2240 1.2665 1.0441 [7,] 1.2823 1.1931 1.2566 1.2715 1.0757 [8,] 1.2588 1.2028 1.2608 1.3041 1.1461 [9,] 1.2856 1.1802 1.3005 1.3106 1.1749 [10,] 1.2619 1.2084 1.2955 1.2911 1.1926 [11,] 1.2590 1.1996 1.2500 1.2233 1.2109 [12,] 1.2865 1.1870 1.3158 1.1438 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.0345 -0.0162 0.0107 -0.0541 1.0008 [2,] -0.0029 -0.0300 0.0013 -0.0110 -0.9936 [3,] -0.0034 0.0015 -0.0267 -0.0112 -0.0259 [4,] 0.0163 -0.0230 0.0201 0.0587 0.0238 [5,] -0.0117 -0.0407 0.0173 -0.0517 0.0495 [6,] 0.0082 0.0348 0.0326 0.0050 0.0316 [7,] -0.0235 0.0097 0.0042 0.0326 0.0704 [8,] 0.0268 -0.0226 0.0397 0.0065 0.0288 [9,] -0.0237 0.0282 -0.0050 -0.0195 0.0177 [10,] -0.0029 -0.0088 -0.0455 -0.0678 0.0183 [11,] 0.0275 -0.0126 0.0658 -0.0795 NA [12,] -0.0198 0.0143 0.0200 -0.1543 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/11e3a1257507600.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/2e8da1257507600.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/3abgt1257507600.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/4g2av1257507600.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] [1,] 1.2013 1.2120 1.2133 1.1866 1.1990 1.0441 1.0757 1.1461 1.1749 1.1926 [2,] 1.2013 1.2505 1.2133 1.1866 1.1990 1.1583 1.1931 1.2028 1.1802 1.2084 [3,] 1.2413 1.2758 1.2205 1.2220 1.2067 1.2240 1.2566 1.2588 1.2856 1.2619 [4,] 1.2667 1.2817 1.2707 1.2595 1.2858 1.2665 1.2715 1.2608 1.3005 1.2911 [5,] 1.3358 1.2817 1.2729 1.2695 1.3182 1.2741 1.2823 1.3041 1.3106 1.2955 [,11] [,12] [1,] 1.1996 1.14380 [2,] 1.2109 1.16540 [3,] 1.2233 1.23675 [4,] 1.2500 1.30115 [5,] 1.2590 1.31580 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.195089 1.253754 1.179941 1.170489 1.145367 1.147546 1.201203 1.217817 [2,] 1.287511 1.297846 1.261059 1.273511 1.268033 1.300454 1.311997 1.299783 [,9] [,10] [,11] [,12] [1,] 1.200596 1.203464 1.195672 1.129507 [2,] 1.370604 1.320336 1.250928 1.343993 $out [1] 0.9895 1.9903 0.9967 0.9708 0.9946 $group [1] 1 2 3 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.2013, 1.2013, 1.2413, 1.2667, 1.3358, 1.212, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tosd1257507600.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.0541 -0.0300 -0.0267 0.0163 -0.0517 0.0050 -0.0235 -0.0226 -0.0237 [2,] -0.0162 -0.0300 -0.0259 0.0163 -0.0407 0.0082 0.0042 0.0065 -0.0195 [3,] 0.0107 -0.0110 -0.0112 0.0201 -0.0117 0.0316 0.0097 0.0268 -0.0050 [4,] 0.0345 -0.0029 -0.0034 0.0238 0.0173 0.0326 0.0326 0.0288 0.0177 [5,] 0.0345 0.0013 0.0015 0.0238 0.0495 0.0348 0.0704 0.0397 0.0282 [,10] [,11] [,12] [1,] -0.0678 -0.07950 -0.15430 [2,] -0.0455 -0.04605 -0.08705 [3,] -0.0088 0.00745 -0.00275 [4,] -0.0029 0.04665 0.01715 [5,] 0.0183 0.06580 0.02000 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.02512449 -0.030148792 -0.027098443 0.01480052 -0.05268265 0.01435902 [2,] 0.04652449 0.008148792 0.004698443 0.02539948 0.02928265 0.04884098 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01036737 0.01104288 -0.03128543 -0.03890105 -0.065783 -0.085068 [2,] 0.02976737 0.04255712 0.02128543 0.02130105 0.080683 0.079568 $out [1] 1.0008 -0.9936 -0.0230 0.0587 $group [1] 1 2 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0541, -0.0162, 0.0106999999999999, 0.0345, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nnek1257507600.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.24130 1.15830 1.18660 1.22330 0.97080 [2,] 1.26045 1.19005 1.20935 1.26300 0.99565 [3,] 1.27350 1.20120 1.23700 1.27660 1.07570 [4,] 1.28395 1.22125 1.27815 1.30735 1.18375 [5,] 1.28650 1.26670 1.31580 1.33580 1.21090 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 1.262781 1.186969 1.205620 1.256372 0.9860914 [2,] 1.284219 1.215431 1.268380 1.296828 1.1653086 $out [1] 1.1438 1.9903 $group [1] 4 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(1.2413, 1.26045, 1.2735, 1.28395, 1.2865, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7audx1257507600.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.18168 1.206700 1.223050 [2,] 1.19784 1.222650 1.231125 [3,] 1.22220 1.239025 1.234506 [4,] 1.24221 1.260350 1.242200 [5,] 1.25036 1.285600 1.249750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.201963 1.221830 1.229455 [2,] 1.242437 1.256220 1.239558 $out [1] 1.40206 1.26610 1.21240 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.18168, 1.19784, 1.2222, 1.24221, 1.25036, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11e3a1257507600.ps tmp/11e3a1257507600.png") > system("convert tmp/2e8da1257507600.ps tmp/2e8da1257507600.png") > system("convert tmp/3abgt1257507600.ps tmp/3abgt1257507600.png") > system("convert tmp/4g2av1257507600.ps tmp/4g2av1257507600.png") > system("convert tmp/5tosd1257507600.ps tmp/5tosd1257507600.png") > system("convert tmp/6nnek1257507600.ps tmp/6nnek1257507600.png") > system("convert tmp/7audx1257507600.ps tmp/7audx1257507600.png") > > > proc.time() user system elapsed 1.230 0.978 12.682