R version 2.7.2 (2008-08-25) 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(97.3,101,113.2,101,105.7,113.9,86.4,96.5,103.3,114.9,105.8,94.2,98.4,99.4,108.8,112.6,104.4,112.2,81.1,97.1,112.6,113.8,107.8,103.2,103.3,101.2,107.7,110.4,101.9,115.9,89.9,88.6,117.2,123.9,100,103.6,94.1,98.7,119.5,112.7,104.4,124.7,89.1,97,121.6,118.8,114,111.5,97.2,102.5,113.4,109.8,104.9,126.1,80,96.8,117.2,112.3,117.3,111.1,102.2,104.3,122.9,107.6,121.3,131.5,89,104.4,128.9,135.9,133.3,121.3) > 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,] 97.3 98.4 103.3 94.1 97.2 102.2 NA [2,] 101.0 99.4 101.2 98.7 102.5 104.3 NA [3,] 113.2 108.8 107.7 119.5 113.4 122.9 NA [4,] 101.0 112.6 110.4 112.7 109.8 107.6 NA [5,] 105.7 104.4 101.9 104.4 104.9 121.3 NA [6,] 113.9 112.2 115.9 124.7 126.1 131.5 NA [7,] 86.4 81.1 89.9 89.1 80.0 89.0 NA [8,] 96.5 97.1 88.6 97.0 96.8 104.4 NA [9,] 103.3 112.6 117.2 121.6 117.2 128.9 NA [10,] 114.9 113.8 123.9 118.8 112.3 135.9 NA [11,] 105.8 107.8 100.0 114.0 117.3 133.3 NA [12,] 94.2 103.2 103.6 111.5 111.1 121.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.7 1.0 -2.1 4.6 5.3 2.1 NA [2,] 12.2 9.4 6.5 20.8 10.9 18.6 NA [3,] -12.2 3.8 2.7 -6.8 -3.6 -15.3 NA [4,] 4.7 -8.2 -8.5 -8.3 -4.9 13.7 NA [5,] 8.2 7.8 14.0 20.3 21.2 10.2 NA [6,] -27.5 -31.1 -26.0 -35.6 -46.1 -42.5 NA [7,] 10.1 16.0 -1.3 7.9 16.8 15.4 NA [8,] 6.8 15.5 28.6 24.6 20.4 24.5 NA [9,] 11.6 1.2 6.7 -2.8 -4.9 7.0 NA [10,] -9.1 -6.0 -23.9 -4.8 5.0 -2.6 NA [11,] -11.6 -4.6 3.6 -2.5 -6.2 -12.0 NA [12,] 4.2 0.1 -9.5 -14.3 -8.9 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/1xcck1225747290.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/20akb1225747290.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/3u2tl1225747290.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/46vqj1225747291.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] [,12] [1,] 94.10 98.7 107.7 101.0 104.40 112.2 80.0 96.5 103.3 112.30 100.0 94.20 [2,] 97.20 99.4 108.8 107.6 104.40 113.9 81.1 96.5 112.6 113.80 105.8 103.20 [3,] 97.85 101.1 113.3 110.1 104.65 120.3 87.7 96.9 117.2 116.85 110.9 107.35 [4,] 102.20 102.5 119.5 112.6 105.70 126.1 89.1 97.1 121.6 123.90 117.3 111.50 [5,] 103.30 104.3 122.9 112.7 105.70 131.5 89.9 97.1 128.9 135.90 133.3 121.30 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94.62484 99.1004 106.3982 106.8748 103.8115 112.4306 82.53974 96.51298 [2,] 101.07516 103.0996 120.2018 113.3252 105.4885 128.1694 92.86026 97.28702 [,9] [,10] [,11] [,12] [1,] 111.3947 110.3352 103.4821 101.9962 [2,] 123.0053 123.3648 118.3179 112.7038 $out [1] 101.9 121.3 88.6 104.4 $group [1] 5 5 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94.1, 97.2, 97.85, 102.2, 103.3, 98.7, 99.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5x4bd1225747291.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,] -2.1 6.50 -15.3 -8.50 7.8 -46.10 -1.30 6.80 -4.90 -9.1 -12.0 -14.3 [2,] 1.0 9.40 -12.2 -8.30 8.2 -42.50 7.90 15.50 -2.80 -9.1 -11.6 -9.5 [3,] 2.9 11.55 -5.2 -6.55 12.1 -33.35 12.75 22.45 3.95 -5.4 -5.4 -8.9 [4,] 4.6 18.60 2.7 4.70 20.3 -27.50 16.00 24.60 7.00 -2.6 -2.5 0.1 [5,] 5.3 20.80 3.8 13.70 21.2 -26.00 16.80 28.60 11.60 5.0 3.6 4.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5778837 5.615703 -14.810981 -14.93542 4.295109 -43.02548 7.525238 [2,] 5.2221163 17.484297 4.410981 1.83542 19.904891 -23.67452 17.974762 [,8] [,9] [,10] [,11] [,12] [1,] 16.58021 -2.371317 -9.59271 -11.2697939 -15.683336 [2,] 28.31979 10.271317 -1.20729 0.4697939 -2.116664 $out [1] -23.9 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.09999999999999, 1, 2.9, 4.60000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o0hp1225747291.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,] 86.40 81.1 88.60 89.10 80.00 89.00 NA [2,] 96.90 98.9 100.60 97.85 99.85 104.35 NA [3,] 102.15 106.1 103.45 112.10 110.45 121.30 NA [4,] 109.50 112.4 113.15 119.15 115.30 130.20 NA [5,] 114.90 113.8 123.90 124.70 126.10 135.90 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.40306 99.94256 97.72586 102.3849 103.4032 109.5096 NA [2,] 107.89694 112.25744 109.17414 121.8151 117.4968 133.0904 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(86.4, 96.9, 102.15, 109.5, 114.9, 81.1, 98.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7zobn1225747291.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,] 85.91667 87.700 85.7500 [2,] 99.96667 99.475 100.1125 [3,] 108.25000 108.725 108.7250 [4,] 115.52500 115.075 115.5312 [5,] 120.71667 120.300 120.0750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 101.1537 101.6097 101.6924 [2,] 115.3463 115.8403 115.7576 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(85.9166666666667, 99.9666666666667, 108.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xcck1225747290.ps tmp/1xcck1225747290.png") > system("convert tmp/20akb1225747290.ps tmp/20akb1225747290.png") > system("convert tmp/3u2tl1225747290.ps tmp/3u2tl1225747290.png") > system("convert tmp/46vqj1225747291.ps tmp/46vqj1225747291.png") > system("convert tmp/5x4bd1225747291.ps tmp/5x4bd1225747291.png") > system("convert tmp/6o0hp1225747291.ps tmp/6o0hp1225747291.png") > system("convert tmp/7zobn1225747291.ps tmp/7zobn1225747291.png") > > > proc.time() user system elapsed 1.461 0.983 1.728