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(80,54.9,65.1,72.5,70.6,81.9,72,70.9,71.1,65.1,78.1,92,77.8,63.3,56.2,79.2,69,66.1,77.5,69.3,70.2,70.2,78.2,85.4,82.4,61.2,52.2,85.3,79.9,72.2,85.7,75.5,69.2,77.6,85.3,77,89.9,60,54.3,84,69.9,75.1,81.7,69.9,68.3,77.3,77.4,85.3,91,60.6,57.6,93.8,78.7,80.3,89.8,77.5,71.7,83.2,86.2,100.7,100.8,57.1,62.5,79.7,80.3,92.4,91.8,85.8,84.2,93.1,101.2,100.6,106.7,64,67.5,101,95.5,97,103.8,95.2,86.7,93.5,102.5,112.3,105.5,75.4,70.4,108,100,93.3,111.1,101.1,98.1) > 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] 93 > (np <- floor(n / par1)) [1] 7 > 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] 8 8 8 8 8 8 8 8 8 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 80.0 77.8 82.4 89.9 91.0 100.8 106.7 105.5 [2,] 54.9 63.3 61.2 60.0 60.6 57.1 64.0 75.4 [3,] 65.1 56.2 52.2 54.3 57.6 62.5 67.5 70.4 [4,] 72.5 79.2 85.3 84.0 93.8 79.7 101.0 108.0 [5,] 70.6 69.0 79.9 69.9 78.7 80.3 95.5 100.0 [6,] 81.9 66.1 72.2 75.1 80.3 92.4 97.0 93.3 [7,] 72.0 77.5 85.7 81.7 89.8 91.8 103.8 111.1 [8,] 70.9 69.3 75.5 69.9 77.5 85.8 95.2 101.1 [9,] 71.1 70.2 69.2 68.3 71.7 84.2 86.7 98.1 [10,] 65.1 70.2 77.6 77.3 83.2 93.1 93.5 NA [11,] 78.1 78.2 85.3 77.4 86.2 101.2 102.5 NA [12,] 92.0 85.4 77.0 85.3 100.7 100.6 112.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -25.1 -14.5 -21.2 -29.9 -30.4 -43.7 -42.7 -30.1 [2,] 10.2 -7.1 -9.0 -5.7 -3.0 5.4 3.5 -5.0 [3,] 7.4 23.0 33.1 29.7 36.2 17.2 33.5 37.6 [4,] -1.9 -10.2 -5.4 -14.1 -15.1 0.6 -5.5 -8.0 [5,] 11.3 -2.9 -7.7 5.2 1.6 12.1 1.5 -6.7 [6,] -9.9 11.4 13.5 6.6 9.5 -0.6 6.8 17.8 [7,] -1.1 -8.2 -10.2 -11.8 -12.3 -6.0 -8.6 -10.0 [8,] 0.2 0.9 -6.3 -1.6 -5.8 -1.6 -8.5 -3.0 [9,] -6.0 0.0 8.4 9.0 11.5 8.9 6.8 NA [10,] 13.0 8.0 7.7 0.1 3.0 8.1 9.0 NA [11,] 13.9 7.2 -8.3 7.9 14.5 -0.6 9.8 NA [12,] -14.2 -3.0 12.9 5.7 0.1 6.1 -6.8 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/1rfk91229672068.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/2ui5o1229672068.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/3615m1229672068.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/47vfi1229672068.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,] 77.80 54.90 52.20 72.50 69.00 66.10 72.00 69.3 68.30 65.10 77.40 [2,] 81.20 58.55 55.25 79.45 70.25 73.65 79.60 70.4 69.70 73.75 78.15 [3,] 90.45 60.90 60.05 84.65 79.30 81.10 87.75 76.5 71.40 77.60 85.30 [4,] 103.15 63.65 66.30 97.40 87.90 92.85 97.80 90.5 85.45 88.15 93.70 [5,] 106.70 64.00 70.40 108.00 100.00 97.00 111.10 101.1 98.10 93.50 102.50 [,12] [1,] 77.00 [2,] 85.35 [3,] 92.00 [4,] 100.65 [5,] 112.30 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 78.18841 58.05107 53.87731 74.62287 69.44046 70.3746 77.58322 65.27185 [2,] 102.71159 63.74893 66.22269 94.67713 89.15954 91.8254 97.91678 87.72815 [,9] [,10] [,11] [,12] [1,] 62.60182 69.00055 76.01379 82.86309 [2,] 80.19818 86.19945 94.58621 101.13691 $out [1] 75.4 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(77.8, 81.2, 90.45, 103.15, 106.7, 54.9, 58.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57s0n1229672068.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,] -43.70 -9.00 7.40 -15.10 -7.70 -9.90 -12.3 -8.50 0.00 3.00 -8.30 -14.2 [2,] -36.55 -6.40 20.10 -12.15 -4.80 3.00 -11.0 -6.05 3.40 5.35 3.30 -4.9 [3,] -30.00 -4.00 31.40 -6.75 1.55 8.15 -9.3 -2.30 8.40 8.00 7.90 0.1 [4,] -23.15 4.45 34.85 -3.65 8.25 12.45 -7.1 -0.70 8.95 8.55 11.85 5.9 [5,] -14.50 10.20 37.60 0.60 12.10 17.80 -6.0 0.90 11.50 13.00 14.50 12.9 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -37.48543 -10.060966 23.16044 -11.498222 -5.739917 2.871094 -11.478596 [2,] -22.51457 2.060966 39.63956 -2.001778 8.839917 13.428906 -7.121404 [,8] [,9] [,10] [,11] [,12] [1,] -5.2885868 5.08563 6.089012 2.794078 -6.349586 [2,] 0.6885868 11.71437 9.910988 13.005922 6.549586 $out [1] -1.1 -6.0 0.1 $group [1] 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-43.7, -36.55, -30, -23.15, -14.5, -9, -6.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6k7rd1229672068.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] [,8] [1,] 54.90 56.20 52.20 54.30 57.60 57.10 86.70 75.4 [2,] 67.85 67.55 70.70 69.10 74.60 80.00 90.10 93.3 [3,] 71.55 70.20 77.30 76.20 81.75 88.80 96.25 100.0 [4,] 79.05 78.00 83.85 82.85 90.40 96.85 103.15 105.5 [5,] 92.00 85.40 85.70 89.90 100.70 101.20 112.30 111.1 $n [1] 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.4416 65.43368 71.3022 69.92853 74.54351 81.1146 90.2978 93.57467 [2,] 76.6584 74.96632 83.2978 82.47147 88.95649 96.4854 102.2022 106.42533 $out [1] 64.0 67.5 70.4 $group [1] 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(54.9, 67.85, 71.55, 79.05, 92, 56.2, 67.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ozvt1229672068.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,] 77.43750 60.050 77.26250 [2,] 78.71875 73.950 77.32500 [3,] 81.46875 80.200 82.22500 [4,] 88.55625 86.525 87.65625 [5,] 93.32857 92.000 93.00000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 76.9818 74.46446 77.51285 [2,] 85.9557 85.93554 86.93715 $out [1] 62.0625 60.7250 61.3750 60.7125 $group [1] 1 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(77.4375, 78.71875, 81.46875, 88.55625, 93.3285714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rfk91229672068.ps tmp/1rfk91229672068.png") > system("convert tmp/2ui5o1229672068.ps tmp/2ui5o1229672068.png") > system("convert tmp/3615m1229672068.ps tmp/3615m1229672068.png") > system("convert tmp/47vfi1229672068.ps tmp/47vfi1229672068.png") > system("convert tmp/57s0n1229672068.ps tmp/57s0n1229672068.png") > system("convert tmp/6k7rd1229672068.ps tmp/6k7rd1229672068.png") > system("convert tmp/7ozvt1229672068.ps tmp/7ozvt1229672068.png") > > > proc.time() user system elapsed 2.608 1.608 2.824