R version 2.8.0 (2008-10-20) 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(85.0,95.9,108.9,96.2,100.1,105.7,64.5,66.8,110.3,96.1,102.5,97.6,83.6,86.5,96.0,91.1,87.2,84.5,59.2,61.5,98.8,97.9,92.7,84.2,74.5,79.7,86.8,79.8,87.0,91.4,58.7,62.8,87.9,90.4,80.6,73.5,71.4,70.6,78.3,76.0,77.4,80.9,63.4,58.1,88.2,81.2,84.9,76.4,71.5,76.1,82.9,78.0,82.0,84.7,55.7,59.5,83.2,87.6,76.2,76.4,68.3,70.0,76.3,70.9,72.4,80.1,57.4,62.7,82.6,88.9,80.4,72.0,69.4,69.2,77.3,79.4,78.6,76.1,61.8,59.4,78.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] 81 > (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] 7 7 7 7 7 7 7 7 7 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 85.0 83.6 74.5 71.4 71.5 68.3 69.4 [2,] 95.9 86.5 79.7 70.6 76.1 70.0 69.2 [3,] 108.9 96.0 86.8 78.3 82.9 76.3 77.3 [4,] 96.2 91.1 79.8 76.0 78.0 70.9 79.4 [5,] 100.1 87.2 87.0 77.4 82.0 72.4 78.6 [6,] 105.7 84.5 91.4 80.9 84.7 80.1 76.1 [7,] 64.5 59.2 58.7 63.4 55.7 57.4 61.8 [8,] 66.8 61.5 62.8 58.1 59.5 62.7 59.4 [9,] 110.3 98.8 87.9 88.2 83.2 82.6 78.1 [10,] 96.1 97.9 90.4 81.2 87.6 88.9 NA [11,] 102.5 92.7 80.6 84.9 76.2 80.4 NA [12,] 97.6 84.2 73.5 76.4 76.4 72.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.9 2.9 5.2 -0.8 4.6 1.7 -0.2 [2,] 13.0 9.5 7.1 7.7 6.8 6.3 8.1 [3,] -12.7 -4.9 -7.0 -2.3 -4.9 -5.4 2.1 [4,] 3.9 -3.9 7.2 1.4 4.0 1.5 -0.8 [5,] 5.6 -2.7 4.4 3.5 2.7 7.7 -2.5 [6,] -41.2 -25.3 -32.7 -17.5 -29.0 -22.7 -14.3 [7,] 2.3 2.3 4.1 -5.3 3.8 5.3 -2.4 [8,] 43.5 37.3 25.1 30.1 23.7 19.9 18.7 [9,] -14.2 -0.9 2.5 -7.0 4.4 6.3 NA [10,] 6.4 -5.2 -9.8 3.7 -11.4 -8.5 NA [11,] -4.9 -8.5 -7.1 -8.5 0.2 -8.4 NA [12,] -14.0 -9.7 -2.1 -4.9 -8.1 -2.6 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/12ffb1228912009.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/2zxdc1228912009.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/3ttb71228912009.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/492od1228912009.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,] 68.30 69.2 76.3 70.90 72.4 76.10 55.70 58.10 78.1 81.20 76.20 72.0 [2,] 70.40 70.3 77.8 77.00 78.0 80.50 58.05 59.45 82.9 87.60 80.40 73.5 [3,] 71.50 76.1 82.9 79.40 82.0 84.50 59.20 61.50 87.9 89.65 82.75 76.4 [4,] 79.05 83.1 91.4 85.45 87.1 88.05 62.60 62.75 93.5 96.10 92.70 84.2 [5,] 85.00 95.9 108.9 96.20 100.1 91.40 64.50 66.80 98.8 97.90 102.50 97.6 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.33436 68.45605 74.7783 74.3538 76.56563 79.99126 56.48281 59.52929 [2,] 76.66564 83.74395 91.0217 84.4462 87.43437 89.00874 61.91719 63.47071 [,9] [,10] [,11] [,12] [1,] 81.56985 84.16723 74.8161 69.49815 [2,] 94.23015 95.13277 90.6839 83.30185 $out [1] 105.7 110.3 $group [1] 6 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(68.3, 70.4, 71.5, 79.05, 85, 69.2, 70.3, 76.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sxo51228912009.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,] -0.80 6.30 -7.0 -3.90 -2.7 -41.20 -5.30 18.7 -14.2 -11.40 -8.50 -14.0 [2,] 0.75 6.95 -6.2 0.30 0.1 -30.85 -0.05 21.8 -7.0 -9.80 -8.50 -9.7 [3,] 2.90 7.70 -4.9 1.50 3.5 -25.30 2.30 25.1 0.8 -6.85 -7.75 -6.5 [4,] 4.90 8.80 -3.6 3.95 5.0 -20.10 3.95 33.7 4.4 3.70 -4.90 -2.6 [5,] 10.90 9.50 -2.3 7.20 7.7 -14.30 5.30 43.5 6.3 6.40 0.20 -2.1 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4216870 6.59521 -6.452678 -0.6797211 0.573799 -31.71973 -0.08873547 [2,] 5.3783130 8.80479 -3.347322 3.6797211 6.426201 -18.88027 4.68873547 [,8] [,9] [,10] [,11] [,12] [1,] 17.99351 -6.553368 -15.557936 -10.072116 -11.079729 [2,] 32.20649 8.153368 1.857936 -5.427884 -1.920271 $out [1] 13.0 -12.7 2.1 $group [1] 2 3 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.800000000000011, 0.75, 2.90000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66gz71228912009.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,] 85.00 83.60 58.70 58.10 71.50 57.40 59.4 [2,] 90.45 83.90 74.00 71.00 73.80 69.15 69.2 [3,] 96.90 86.85 80.20 76.90 77.20 72.20 76.1 [4,] 104.10 94.35 87.45 81.05 83.05 80.25 78.1 [5,] 110.30 98.80 91.40 88.20 87.60 88.90 79.4 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 90.67414 82.08368 74.06536 72.31613 72.98101 67.13722 71.41267 [2,] 103.12586 91.61632 86.33464 81.48387 81.41899 77.26278 80.78733 $out [1] 64.5 66.8 59.2 61.5 55.7 59.5 $group [1] 1 1 2 2 5 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(85, 90.45, 96.9, 104.1, 110.3, 83.6, 83.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7khaq1228912009.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,] 74.81429 59.20 74.7250 [2,] 76.55000 73.80 75.7125 [3,] 82.57857 80.70 81.8875 [4,] 86.42976 83.70 85.1000 [5,] 90.35000 89.65 91.3000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 78.07235 76.18454 77.6058 [2,] 87.08480 85.21546 86.1692 $out [1] 60.10000 61.54286 60.32500 61.10000 $group [1] 1 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(74.8142857142857, 76.55, 82.5785714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12ffb1228912009.ps tmp/12ffb1228912009.png") > system("convert tmp/2zxdc1228912009.ps tmp/2zxdc1228912009.png") > system("convert tmp/3ttb71228912009.ps tmp/3ttb71228912009.png") > system("convert tmp/492od1228912009.ps tmp/492od1228912009.png") > system("convert tmp/5sxo51228912009.ps tmp/5sxo51228912009.png") > system("convert tmp/66gz71228912009.ps tmp/66gz71228912009.png") > system("convert tmp/7khaq1228912009.ps tmp/7khaq1228912009.png") > > > proc.time() user system elapsed 1.193 0.929 1.675