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(18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698,31956,29506,34506,27165,26736,23691,18157,17328,18205,20995,17382,9367,31124,26551,30651,25859,25100,25778,20418,18688,20424,24776,19814,12738,31566,30111,30019,31934,25826,26835,20205,17789,20520,22518,15572,11509,25447,24090,27786,26195,20516,22759,19028,16971,20036,22485,18730) > 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] 65 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 18004 17970 18157 20418 20205 19028 [2,] 17537 18730 17328 18688 17789 16971 [3,] 20366 19684 18205 20424 20520 20036 [4,] 22782 19785 20995 24776 22518 22485 [5,] 19169 18479 17382 19814 15572 18730 [6,] 13807 10698 9367 12738 11509 NA [7,] 29743 31956 31124 31566 25447 NA [8,] 25591 29506 26551 30111 24090 NA [9,] 29096 34506 30651 30019 27786 NA [10,] 26482 27165 25859 31934 26195 NA [11,] 22405 26736 25100 25826 20516 NA [12,] 27044 23691 25778 26835 22759 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -467 760 -829 -1730 -2416 -2057 [2,] 2829 954 877 1736 2731 3065 [3,] 2416 101 2790 4352 1998 2449 [4,] -3613 -1306 -3613 -4962 -6946 -3755 [5,] -5362 -7781 -8015 -7076 -4063 NA [6,] 15936 21258 21757 18828 13938 NA [7,] -4152 -2450 -4573 -1455 -1357 NA [8,] 3505 5000 4100 -92 3696 NA [9,] -2614 -7341 -4792 1915 -1591 NA [10,] -4077 -429 -759 -6108 -5679 NA [11,] 4639 -3045 678 1009 2243 NA [12,] -9074 -5534 -5360 -6630 -3731 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/1otiy1261327396.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/2few21261327396.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/3unt91261327396.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/43i8i1261327396.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] [1,] 17970.0 16971 19684 19785.0 15572.0 9367 29743 24090 27786 25859 20516 [2,] 18004.0 17328 19684 20995.0 17382.0 10698 29743 25591 29096 26195 22405 [3,] 18592.5 17663 20201 22501.5 18604.5 11509 31124 26551 30019 26482 25100 [4,] 20205.0 18688 20424 22782.0 19169.0 12738 31566 29506 30651 27165 25826 [5,] 20418.0 18730 20520 24776.0 19814.0 13807 31956 30111 30651 27165 26736 [,12] [1,] 22759 [2,] 23691 [3,] 25778 [4,] 26835 [5,] 27044 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17172.78 16785.76 19723.68 21348.83 17451.83 10067.54 29835.87 23784.67 [2,] 20012.22 18540.24 20678.32 23654.17 19757.17 12950.46 32412.13 29317.33 [,9] [,10] [,11] [,12] [1,] 28920.24 25796.6 22682.73 23556.46 [2,] 31117.76 27167.4 27517.27 27999.54 $out [1] 18205 25447 34506 31934 $group [1] 3 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17970, 18004, 18592.5, 20205, 20418, 16971, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/542on1261327396.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,] -2416.0 877.0 1998.0 -6946 -8015 13938 -4573 3505 -7341 -6108 678 -6630 [2,] -2057.0 954.0 1998.0 -4962 -7781 15936 -4152 3505 -4792 -5679 678 -6630 [3,] -1279.5 2233.5 2432.5 -3684 -7076 18828 -2450 3696 -2614 -4077 1009 -5534 [4,] -467.0 2829.0 2790.0 -3613 -5362 21258 -1455 4100 -1591 -759 2243 -5360 [5,] 760.0 3065.0 2790.0 -3613 -4063 21757 -1357 4100 1915 -429 2243 -3731 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2305.1014 1024.064 1921.634 -4554.149 -8785.259 15067.49 -4355.6934 [2,] -253.8986 3442.936 2943.366 -2813.851 -5366.741 22588.51 -544.3066 [,8] [,9] [,10] [,11] [,12] [1,] 3275.574 -4875.8185 -7553.4596 -96.82506 -6431.379 [2,] 4116.426 -352.1815 -600.5404 2114.82506 -4636.621 $out [1] 101 4352 -1306 5000 -92 4639 -3045 -9074 $group [1] 3 3 4 8 8 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2416, -2057, -1279.5, -467, 760, 877, 954, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6s88b1261327396.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] [1,] 13807.0 10698.0 9367.0 12738 11509.0 16971 [2,] 18586.5 18604.5 17769.5 20116 18997.0 18730 [3,] 22593.5 21738.0 23047.5 25301 21519.0 19028 [4,] 26763.0 28335.5 26205.0 30065 24768.5 20036 [5,] 29743.0 34506.0 31124.0 31934 27786.0 20036 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 18864.14 17299.63 19200.01 20763.19 18886.58 18105.18 [2,] 26322.86 26176.37 26894.99 29838.81 24151.42 19950.82 $out [1] 22485 $group [1] 6 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(13807, 18586.5, 22593.5, 26763, 29743, 10698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7k0fu1261327396.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,] 11623.80 11509.00 11718.00 [2,] 18577.33 18598.50 18667.12 [3,] 23170.05 23800.75 23078.62 [4,] 27348.40 26516.50 27114.25 [5,] 30411.60 31124.00 30654.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 19169.51 20189.30 19225.83 [2,] 27170.59 27412.20 26931.42 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11623.8, 18577.3333333333, 23170.05, 27348.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1otiy1261327396.ps tmp/1otiy1261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/2few21261327396.ps tmp/2few21261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/3unt91261327396.ps tmp/3unt91261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/43i8i1261327396.ps tmp/43i8i1261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/542on1261327396.ps tmp/542on1261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/6s88b1261327396.ps tmp/6s88b1261327396.png",intern=TRUE)) character(0) > try(system("convert tmp/7k0fu1261327396.ps tmp/7k0fu1261327396.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.208 0.945 1.489