R version 2.6.0 (2007-10-03) Copyright (C) 2007 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,120.5,120.4,137.9,126.1,133.2,146.6,103.4,117.2) > 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] 80 > (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 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 120.5 [2,] 101.0 99.4 101.2 98.7 102.5 104.3 120.4 [3,] 113.2 108.8 107.7 119.5 113.4 122.9 137.9 [4,] 101.0 112.6 110.4 112.7 109.8 107.6 126.1 [5,] 105.7 104.4 101.9 104.4 104.9 121.3 133.2 [6,] 113.9 112.2 115.9 124.7 126.1 131.5 146.6 [7,] 86.4 81.1 89.9 89.1 80.0 89.0 103.4 [8,] 96.5 97.1 88.6 97.0 96.8 104.4 117.2 [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 -0.1 [2,] 12.2 9.4 6.5 20.8 10.9 18.6 17.5 [3,] -12.2 3.8 2.7 -6.8 -3.6 -15.3 -11.8 [4,] 4.7 -8.2 -8.5 -8.3 -4.9 13.7 7.1 [5,] 8.2 7.8 14.0 20.3 21.2 10.2 13.4 [6,] -27.5 -31.1 -26.0 -35.6 -46.1 -42.5 -43.2 [7,] 10.1 16.0 -1.3 7.9 16.8 15.4 13.8 [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 -0.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/1yp6g1197573329.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/2460c1197573329.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/3dv6g1197573329.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/49qqp1197573329.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,] 94.10 98.7 107.7 107.60 101.9 112.2 80.00 96.50 103.3 112.30 100.0 [2,] 97.25 100.2 111.0 108.70 104.4 114.9 83.75 96.65 112.6 113.80 105.8 [3,] 98.40 101.2 113.4 110.40 104.9 124.7 89.00 97.00 117.2 116.85 110.9 [4,] 102.75 103.4 121.2 112.65 113.5 128.8 89.50 100.75 121.6 123.90 117.3 [5,] 103.30 104.3 122.9 112.70 121.3 146.6 89.90 104.40 128.9 135.90 133.3 [,12] [1,] 94.20 [2,] 103.20 [3,] 107.35 [4,] 111.50 [5,] 121.30 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 95.11549 99.28901 107.3087 108.0411 99.46563 116.3991 85.5662 94.55155 [2,] 101.68451 103.11099 119.4913 112.7589 110.33437 133.0009 92.4338 99.44845 [,9] [,10] [,11] [,12] [1,] 111.3947 110.3352 103.4821 101.9962 [2,] 123.0053 123.3648 118.3179 112.7038 $out [1] 120.5 120.4 137.9 101.0 126.1 133.2 103.4 88.6 117.2 $group [1] 1 2 3 4 4 5 7 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.25, 98.4, 102.75, 103.3, 98.7, 100.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ax1p1197573329.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.10 6.50 -15.30 -8.50 7.80 -46.10 7.9 6.80 -4.90 -9.1 -12.0 -14.30 [2,] 0.45 10.15 -12.00 -8.25 9.20 -42.85 9.0 15.50 -2.80 -9.1 -11.6 -9.50 [3,] 2.10 12.20 -6.80 -4.90 13.40 -35.60 13.8 22.45 3.95 -5.4 -5.4 -4.85 [4,] 4.15 18.05 -0.45 5.90 17.15 -29.30 15.7 24.60 7.00 -2.6 -2.5 0.10 [5,] 5.30 20.80 3.80 13.70 21.20 -26.00 16.8 28.60 11.60 5.0 3.6 4.20 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.1095803 7.482247 -13.69747367 -13.350152 8.652388 -43.69184 9.798868 [2,] 4.3095803 16.917753 0.09747367 3.550152 18.147612 -27.50816 17.801132 [,8] [,9] [,10] [,11] [,12] [1,] 16.58021 -2.371317 -9.59271 -11.2697939 -11.04231 [2,] 28.31979 10.271317 -1.20729 0.4697939 1.34231 $out [1] -1.3 -23.9 $group [1] 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.09999999999999, 0.450000000000003, 2.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64awv1197573329.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 103.40 [2,] 96.90 98.9 100.60 97.85 99.85 104.35 118.80 [3,] 102.15 106.1 103.45 112.10 110.45 121.30 123.30 [4,] 109.50 112.4 113.15 119.15 115.30 130.20 135.55 [5,] 114.90 113.8 123.90 124.70 126.10 135.90 146.60 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.40306 99.94256 97.72586 102.3849 103.4032 109.5096 113.9432 [2,] 107.89694 112.25744 109.17414 121.8151 117.4968 133.0904 132.6568 $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/77jaa1197573329.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,] 88.41429 89.000 86.6250 [2,] 102.89286 99.800 100.9000 [3,] 111.14286 108.875 109.8125 [4,] 117.21429 115.125 116.6125 [5,] 124.41429 124.700 121.8500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 104.6108 101.8852 102.6459 [2,] 117.6750 115.8648 116.9791 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(88.4142857142857, 102.892857142857, 111.142857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yp6g1197573329.ps tmp/1yp6g1197573329.png") > system("convert tmp/2460c1197573329.ps tmp/2460c1197573329.png") > system("convert tmp/3dv6g1197573329.ps tmp/3dv6g1197573329.png") > system("convert tmp/49qqp1197573329.ps tmp/49qqp1197573329.png") > system("convert tmp/5ax1p1197573329.ps tmp/5ax1p1197573329.png") > system("convert tmp/64awv1197573329.ps tmp/64awv1197573329.png") > system("convert tmp/77jaa1197573329.ps tmp/77jaa1197573329.png") > > > proc.time() user system elapsed 1.441 0.952 1.689