R version 2.7.0 (2008-04-22) 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(20.72,21.45,22.09,21.53,23.35,23.57,26.42,25.21,26.44,29.34,29.40,33.05,28.38,26.01,29.31,30.36,35.75,36.15,34.21,37.91,38.70,42.12,42.16,39.80,37.36,38.35,42.60,41.25,42.16,46.94,47.43,47.06,50.18,50.13,43.23,40.04,40.37,42.21,37.00,39.74,42.68,46.29,46.97,48.73,52.37,50.05,54.04,57.78,64.72,63.41,64.36,66.03,72.14,76.60,86.97,93.48,95.59,81.89,70.55,50.38,36.25) > 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] 61 > (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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 20.72 28.38 37.36 40.37 64.72 36.25 [2,] 21.45 26.01 38.35 42.21 63.41 NA [3,] 22.09 29.31 42.60 37.00 64.36 NA [4,] 21.53 30.36 41.25 39.74 66.03 NA [5,] 23.35 35.75 42.16 42.68 72.14 NA [6,] 23.57 36.15 46.94 46.29 76.60 NA [7,] 26.42 34.21 47.43 46.97 86.97 NA [8,] 25.21 37.91 47.06 48.73 93.48 NA [9,] 26.44 38.70 50.18 52.37 95.59 NA [10,] 29.34 42.12 50.13 50.05 81.89 NA [11,] 29.40 42.16 43.23 54.04 70.55 NA [12,] 33.05 39.80 40.04 57.78 50.38 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.73 -2.37 0.99 1.84 -1.31 NA [2,] 0.64 3.30 4.25 -5.21 0.95 NA [3,] -0.56 1.05 -1.35 2.74 1.67 NA [4,] 1.82 5.39 0.91 2.94 6.11 NA [5,] 0.22 0.40 4.78 3.61 4.46 NA [6,] 2.85 -1.94 0.49 0.68 10.37 NA [7,] -1.21 3.70 -0.37 1.76 6.51 NA [8,] 1.23 0.79 3.12 3.64 2.11 NA [9,] 2.90 3.42 -0.05 -2.32 -13.70 NA [10,] 0.06 0.04 -6.90 3.99 -11.34 NA [11,] 3.65 -2.36 -3.19 3.74 -20.17 NA [12,] -4.67 -2.44 0.33 6.94 -14.13 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/1vc391229600571.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/2hggj1229600571.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/3rd9c1229600571.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/4rgme1229600571.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,] 20.720 21.45 22.09 21.53 35.75 23.57 26.42 25.21 26.44 42.12 29.40 33.05 [2,] 28.380 26.01 29.31 30.36 35.75 36.15 34.21 37.91 38.70 42.12 42.16 39.80 [3,] 36.805 38.35 37.00 39.74 42.16 46.29 46.97 47.06 50.18 50.05 43.23 40.04 [4,] 40.370 42.21 42.60 41.25 42.68 46.94 47.43 48.73 52.37 50.13 54.04 50.38 [5,] 40.370 63.41 42.60 41.25 42.68 46.94 47.43 48.73 52.37 50.13 70.55 57.78 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 29.07106 26.90312 27.60932 32.04515 37.26328 38.66581 37.62878 39.41462 [2,] 44.53894 49.79688 46.39068 47.43485 47.05672 53.91419 56.31122 54.70538 [,9] [,10] [,11] [,12] [1,] 40.52081 44.39015 34.83562 32.5642 [2,] 59.83919 55.70985 51.62438 47.5158 $out [1] 64.72 64.36 66.03 23.35 72.14 76.60 86.97 93.48 95.59 29.34 81.89 $group [1] 1 3 4 5 5 6 7 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(20.72, 28.38, 36.805, 40.37, 40.37, 21.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56wra1229600571.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.37 0.64 -1.35 0.91 0.22 -1.94 -1.21 0.79 -2.32 -11.34 -3.19 -4.67 [2,] -1.31 0.64 -0.56 1.82 0.40 0.49 -0.37 1.23 -2.32 -6.90 -3.19 -4.67 [3,] 0.73 0.95 1.05 2.94 3.61 0.68 1.76 2.11 -0.05 0.04 -2.36 -2.44 [4,] 0.99 3.30 1.67 5.39 4.46 2.85 3.70 3.12 2.90 0.06 3.65 0.33 [5,] 1.84 4.25 2.74 6.11 4.78 2.85 6.51 3.64 3.42 3.99 3.74 6.94 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8951742 -0.9295493 -0.5257124 0.417447 0.7412142 -0.98757 -1.115852 [2,] 2.3551742 2.8295493 2.6257124 5.462553 6.4787858 2.34757 4.635852 [,8] [,9] [,10] [,11] [,12] [1,] 0.7745308 -3.738439 -4.877918 -7.193127 -5.972987 [2,] 3.4454692 3.638439 4.957918 2.473127 1.092987 $out [1] -5.21 10.37 -13.70 -20.17 -14.13 $group [1] 2 6 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.37000000000000, -1.31000000000000, 0.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6v3ok1229600571.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,] 20.72 26.010 37.360 37.00 50.380 36.25 [2,] 21.81 29.835 40.645 41.29 64.540 36.25 [3,] 24.39 35.950 42.915 46.63 71.345 36.25 [4,] 27.89 39.250 47.245 51.21 84.430 36.25 [5,] 33.05 42.160 50.180 57.78 95.590 36.25 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21.61687 31.65576 39.90470 42.10542 62.27304 36.25 [2,] 27.16313 40.24424 45.92530 51.15458 80.41696 36.25 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(20.72, 21.81, 24.39, 27.89, 33.05, 26.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bxiw1229600571.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,] 37.96667 36.805 34.1100 [2,] 39.42700 39.045 35.8800 [3,] 45.06000 42.695 41.1825 [4,] 49.43900 47.015 45.3125 [5,] 52.65600 50.180 48.1000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 40.49346 39.05983 36.88027 [2,] 49.62654 46.33017 45.48473 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(37.9666666666667, 39.427, 45.06, 49.439, 52.656, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vc391229600571.ps tmp/1vc391229600571.png") > system("convert tmp/2hggj1229600571.ps tmp/2hggj1229600571.png") > system("convert tmp/3rd9c1229600571.ps tmp/3rd9c1229600571.png") > system("convert tmp/4rgme1229600571.ps tmp/4rgme1229600571.png") > system("convert tmp/56wra1229600571.ps tmp/56wra1229600571.png") > system("convert tmp/6v3ok1229600571.ps tmp/6v3ok1229600571.png") > system("convert tmp/7bxiw1229600571.ps tmp/7bxiw1229600571.png") > > > proc.time() user system elapsed 2.564 1.569 2.812