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(7.4,7.2,7.1,6.9,6.8,6.8,6.8,6.9,6.7,6.6,6.5,6.4,6.3,6.3,6.3,6.5,6.6,6.5,6.4,6.5,6.7,7.1,7.1,7.2,7.2,7.3,7.3,7.3,7.3,7.4,7.6,7.6,7.6,7.7,7.8,7.9,8.1,8.1,8.1,8.2,8.2,8.2,8.2,8.2,8.2,8.3,8.3,8.4,8.4,8.4,8.3,8.0,8.0,8.2,8.6,8.7,8.7,8.5,8.4,8.4,8.4,8.5,8.5,8.5,8.5,8.5,8.4,8.4,8.4,8.5,8.6,8.6,8.6,8.6,8.5,8.4,8.4,8.3,8.2,8.1,8.2,8.1,8.0,7.9,7.8,7.7,7.7,7.9,7.8,7.6,7.4,7.3,7.1,7.1,7.0,7.0,7.0,6.9,6.8,6.7,6.6,6.6) > par1 = '36' > #'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] 102 > (np <- floor(n / par1)) [1] 2 > 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]] <-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.0 -0.1 [17,] -0.1 0.2 -0.2 [18,] -0.1 0.4 -0.2 [19,] 0.1 0.1 -0.1 [20,] 0.2 0.0 -0.2 [21,] 0.4 -0.2 0.0 [22,] 0.0 -0.1 -0.1 [23,] 0.1 0.0 0.0 [24,] 0.0 0.0 0.0 [25,] 0.1 0.1 -0.1 [26,] 0.0 0.0 -0.1 [27,] 0.0 0.0 -0.1 [28,] 0.0 0.0 -0.1 [29,] 0.1 0.0 0.0 [30,] 0.2 -0.1 NA [31,] 0.0 0.0 NA [32,] 0.0 0.0 NA [33,] 0.1 0.1 NA [34,] 0.1 0.1 NA [35,] 0.1 0.0 NA [36,] 0.2 0.0 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/1zi311225652475.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/2u99f1225652475.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/3lfud1225652475.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/44sfv1225652475.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] [,13] [,14] [1,] 7.40 7.20 7.1 6.90 6.8 6.80 6.8 6.90 6.70 6.60 6.50 6.40 6.30 6.30 [2,] 7.75 7.65 7.6 7.55 7.5 7.50 7.5 7.50 7.45 7.35 7.25 7.15 7.05 7.00 [3,] 8.10 8.10 8.1 8.20 8.2 8.20 8.2 8.10 8.20 8.10 8.00 7.90 7.80 7.70 [4,] 8.35 8.35 8.3 8.30 8.3 8.25 8.2 8.15 8.20 8.20 8.15 8.15 8.10 8.05 [5,] 8.60 8.60 8.5 8.40 8.4 8.30 8.2 8.20 8.20 8.30 8.30 8.40 8.40 8.40 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 6.3 6.50 6.6 6.50 6.4 6.5 6.7 7.1 7.00 7.0 7.0 6.9 [2,] 7.0 7.20 7.2 7.05 6.9 6.9 6.9 7.1 7.05 7.1 7.1 7.1 [3,] 7.7 7.90 7.8 7.60 7.4 7.3 7.1 7.1 7.10 7.2 7.2 7.3 [4,] 8.0 7.95 7.9 7.90 8.0 8.0 7.9 7.8 7.75 7.8 7.8 7.9 [5,] 8.3 8.00 8.0 8.20 8.6 8.7 8.7 8.5 8.40 8.4 8.4 8.5 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 6.80 6.7 6.60 6.60 7.6 7.6 7.6 7.7 7.8 7.90 [2,] 7.05 7.0 6.95 7.00 7.6 7.6 7.6 7.7 7.8 7.90 [3,] 7.30 7.3 7.30 7.40 8.0 8.0 8.0 8.1 8.2 8.25 [4,] 7.90 7.9 7.90 7.95 8.4 8.4 8.4 8.5 8.6 8.60 [5,] 8.50 8.5 8.50 8.50 8.4 8.4 8.4 8.5 8.6 8.60 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 7.552672 7.46145 7.46145 7.51584 7.47023 7.51584 7.56145 7.507061 7.51584 [2,] 8.647328 8.73855 8.73855 8.88416 8.92977 8.88416 8.83855 8.692939 8.88416 [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [1,] 7.324619 7.179008 6.987787 6.842176 6.742176 6.787787 7.21584 7.16145 [2,] 8.875381 8.820992 8.812213 8.757824 8.657824 8.612213 8.58416 8.43855 [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [1,] 6.824619 6.396565 6.296565 6.187787 6.46145 6.46145 6.56145 6.56145 [2,] 8.375381 8.403435 8.303435 8.012213 7.73855 7.73855 7.83855 7.83855 [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [1,] 6.570229 6.524619 6.479008 6.433397 6.533397 7.106217 7.106217 7.106217 [2,] 8.029771 8.075381 8.120992 8.166603 8.266603 8.893783 8.893783 8.893783 [,34] [,35] [,36] [1,] 7.206217 7.306217 7.46794 [2,] 8.993783 9.093783 9.03206 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(7.4, 7.75, 8.1, 8.35, 8.6, 7.2, 7.65, 8.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58foc1225652475.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] [1,] -0.2 -0.10 -0.20 -0.10 -0.10 -0.10 -0.10 -0.20 -1.000000e-01 -0.10 -0.1 [2,] -0.1 -0.10 -0.15 -0.05 -0.05 -0.05 -0.05 -0.10 -1.000000e-01 -0.10 -0.1 [3,] 0.0 -0.10 -0.10 0.00 0.00 0.00 0.00 0.00 -1.000000e-01 -0.10 -0.1 [4,] 0.0 -0.05 0.00 0.00 0.00 0.00 0.05 0.05 8.881784e-16 -0.05 0.0 [5,] 0.0 0.00 0.10 0.00 0.00 0.00 0.10 0.10 1.000000e-01 0.00 0.1 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] -0.10 -0.10 -0.10 -0.30 -0.10 -0.20 -0.20 -1.000000e-01 -0.2 -0.2 -0.10 [2,] -0.10 -0.05 -0.05 -0.05 -0.05 -0.15 -0.15 -4.440892e-16 -0.1 -0.1 -0.10 [3,] -0.10 0.00 0.00 0.20 0.00 -0.10 -0.10 1.000000e-01 0.0 0.0 -0.10 [4,] -0.05 0.00 0.00 0.20 0.05 0.05 0.15 1.000000e-01 0.1 0.2 -0.05 [5,] 0.00 0.00 0.00 0.20 0.10 0.20 0.40 1.000000e-01 0.2 0.4 0.00 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [1,] 0.00 0 -0.1 -0.10 -0.10 -0.10 0.00 -0.10 0 0 0.1 0.1 [2,] 0.00 0 0.0 -0.05 -0.05 -0.05 0.00 -0.10 0 0 0.1 0.1 [3,] 0.00 0 0.1 0.00 0.00 0.00 0.00 0.05 0 0 0.1 0.1 [4,] 0.05 0 0.1 0.00 0.00 0.00 0.05 0.20 0 0 0.1 0.1 [5,] 0.10 0 0.1 0.00 0.00 0.00 0.10 0.20 0 0 0.1 0.1 [,35] [,36] [1,] 0.00 0.0 [2,] 0.00 0.0 [3,] 0.05 0.1 [4,] 0.10 0.2 [5,] 0.10 0.2 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.09122134 -0.14561067 -0.23683201 -0.04561067 -0.04561067 -0.04561067 [2,] 0.09122134 -0.05438933 0.03683201 0.04561067 0.04561067 0.04561067 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.09122134 -0.1368320 -0.191221343 -0.14561067 -0.191221343 -0.14561067 [2,] 0.09122134 0.1368320 -0.008778657 -0.05438933 -0.008778657 -0.05438933 [,13] [,14] [,15] [,16] [,17] [,18] [1,] -0.04561067 -0.04561067 -0.02805336 -0.09122134 -0.28244269 -0.3736640 [2,] 0.04561067 0.04561067 0.42805336 0.09122134 0.08244269 0.1736640 [,19] [,20] [,21] [,22] [,23] [,24] [1,] 0.008778657 -0.1824427 -0.2736640 -0.14561067 -0.04561067 0 [2,] 0.191221343 0.1824427 0.2736640 -0.05438933 0.04561067 0 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 0.008778657 -0.04561067 -0.04561067 -0.04561067 -0.04561067 -0.2851686 [2,] 0.191221343 0.04561067 0.04561067 0.04561067 0.04561067 0.3851686 [,31] [,32] [,33] [,34] [,35] [,36] [1,] 0 0 0.1 0.1 -0.06172287 -0.1234457 [2,] 0 0 0.1 0.1 0.16172287 0.3234457 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(-0.2, -0.1, 0, 0, 0, -0.100000000000001, -0.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6boe51225652475.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] [1,] 6.30 8.0 6.60 [2,] 6.55 8.2 7.00 [3,] 7.00 8.4 7.75 [4,] 7.30 8.5 8.20 [5,] 7.90 8.7 8.60 $n [1] 36 36 30 $conf [,1] [,2] [,3] [1,] 6.8025 8.321 7.40384 [2,] 7.1975 8.479 8.09616 $out numeric(0) $group numeric(0) $names [1] "1" "2" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7j6j61225652475.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,] 7.433333 7.10 7.4000 [2,] 7.500000 7.30 7.4625 [3,] 7.566667 7.90 7.6125 [4,] 7.866667 8.10 7.9375 [5,] 8.250000 8.25 8.2500 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 7.470111 7.689333 7.487417 [2,] 7.663222 8.110667 7.737583 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.43333333333333, 7.5, 7.56666666666667, 7.86666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zi311225652475.ps tmp/1zi311225652475.png") > system("convert tmp/2u99f1225652475.ps tmp/2u99f1225652475.png") > system("convert tmp/3lfud1225652475.ps tmp/3lfud1225652475.png") > system("convert tmp/44sfv1225652475.ps tmp/44sfv1225652475.png") > system("convert tmp/58foc1225652475.ps tmp/58foc1225652475.png") > system("convert tmp/6boe51225652475.ps tmp/6boe51225652475.png") > system("convert tmp/7j6j61225652475.ps tmp/7j6j61225652475.png") > > > proc.time() user system elapsed 1.512 0.997 1.858