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(19.2,26.6,26.6,31.4,31.2,26.4,20.7,20.7,15,13.3,8.7,10.2,4.3,-0.1,-4.6,-3.9,-3.5,-3.4,-2.5,-1.1,0.3,-0.9,3.6,2.7,-0.2,-1,5.8,6.4,9.6,13.2,10.6,10.9,12.9,15.9,12.2,9.1,9,17.4,14.7,17,13.7,9.5,14.8,13.6,12.6,8.9,10.2,12.7,16,10.4,9.9,9.5,8.6,10,3.5,-4.2,-4.4,-1.5,-0.1,0.8) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 19.2 4.3 -0.2 9.0 16.0 NA [2,] 26.6 -0.1 -1.0 17.4 10.4 NA [3,] 26.6 -4.6 5.8 14.7 9.9 NA [4,] 31.4 -3.9 6.4 17.0 9.5 NA [5,] 31.2 -3.5 9.6 13.7 8.6 NA [6,] 26.4 -3.4 13.2 9.5 10.0 NA [7,] 20.7 -2.5 10.6 14.8 3.5 NA [8,] 20.7 -1.1 10.9 13.6 -4.2 NA [9,] 15.0 0.3 12.9 12.6 -4.4 NA [10,] 13.3 -0.9 15.9 8.9 -1.5 NA [11,] 8.7 3.6 12.2 10.2 -0.1 NA [12,] 10.2 2.7 9.1 12.7 0.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.4 -4.4 -0.8 8.4 -5.6 NA [2,] 0.0 -4.5 6.8 -2.7 -0.5 NA [3,] 4.8 0.7 0.6 2.3 -0.4 NA [4,] -0.2 0.4 3.2 -3.3 -0.9 NA [5,] -4.8 0.1 3.6 -4.2 1.4 NA [6,] -5.7 0.9 -2.6 5.3 -6.5 NA [7,] 0.0 1.4 0.3 -1.2 -7.7 NA [8,] -5.7 1.4 2.0 -1.0 -0.2 NA [9,] -1.7 -1.2 3.0 -3.7 2.9 NA [10,] -4.6 4.5 -3.7 1.3 1.4 NA [11,] 1.5 -0.9 -3.1 2.5 0.9 NA [12,] -5.9 -2.9 -0.1 3.3 NA 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/freestat/rcomp/tmp/1ps8l1229020955.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/freestat/rcomp/tmp/2b2v71229020955.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/freestat/rcomp/tmp/3wpct1229020955.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/freestat/rcomp/tmp/41vm51229020955.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,] -0.2 -1.0 -4.6 -3.9 8.6 9.5 -2.5 -4.2 -4.4 -1.5 -0.1 0.8 [2,] 4.3 -0.1 5.8 6.4 8.6 9.5 3.5 -1.1 0.3 -0.9 3.6 2.7 [3,] 9.0 10.4 9.9 9.5 9.6 10.0 10.6 10.9 12.6 8.9 8.7 9.1 [4,] 16.0 17.4 14.7 17.0 13.7 13.2 14.8 13.6 12.9 13.3 10.2 10.2 [5,] 19.2 26.6 26.6 31.4 13.7 13.2 20.7 20.7 15.0 15.9 12.2 12.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.7328095 -1.965456 3.611282 2.010067 5.996353 7.38559 2.615448 [2,] 17.2671905 22.765456 16.188718 16.989933 13.203647 12.61441 18.584552 [,8] [,9] [,10] [,11] [,12] [1,] 0.513017 3.696872 -1.133684 4.036457 3.800519 [2,] 21.286983 21.503128 18.933684 13.363543 14.399481 $out [1] 31.2 -3.5 26.4 -3.4 $group [1] 5 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.2, 4.3, 9, 16, 19.2, -1, -0.1, 10.4, 17.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5vprs1229020955.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,] -5.6 -4.5 -0.4 -0.9 -4.8 -6.5 -1.2 -1.0 -3.7 -4.6 -3.1 -5.9 [2,] -4.4 -2.7 0.6 -0.9 -4.2 -5.7 -1.2 -1.0 -1.7 -3.7 -0.9 -4.4 [3,] -0.8 -0.5 0.7 -0.2 0.1 -2.6 0.0 -0.2 -1.2 1.3 0.9 -1.5 [4,] 7.4 0.0 2.3 0.4 1.4 0.9 0.3 1.4 2.9 1.4 1.5 1.6 [5,] 8.4 0.0 4.8 0.4 3.6 5.3 1.4 2.0 3.0 4.5 2.5 3.3 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.13785 -2.407813 -0.5012157 -1.1185767 -3.856946 -7.263543 -1.059896 [2,] 7.53785 1.407813 1.9012157 0.7185767 4.056946 2.063543 1.059896 [,8] [,9] [,10] [,11] [,12] [1,] -1.895834 -4.450348 -2.303647 -0.795834 -6.24 [2,] 1.495834 2.050348 4.903647 2.595834 3.24 $out [1] 6.8 3.2 -3.3 -7.7 -5.7 $group [1] 2 4 4 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5.6, -4.4, -0.8, 7.4, 8.4, -4.5, -2.7, -0.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6mpo41229020955.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,] 8.70 -4.60 -1.00 8.90 -4.40 NA [2,] 14.15 -3.45 6.10 9.85 -0.80 NA [3,] 20.70 -1.00 10.10 13.15 6.05 NA [4,] 26.60 1.50 12.55 14.75 9.95 NA [5,] 31.40 4.30 15.90 17.40 16.00 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.02147 -3.257728 7.158112 10.91508 1.146853 NA [2,] 26.37853 1.257728 13.041888 15.38492 10.953147 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(8.7, 14.15, 20.7, 26.6, 31.4, -4.6, -3.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/70q2f1229020955.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,] 6.92 8.70 6.200 [2,] 7.21 9.05 6.525 [3,] 9.54 9.75 8.900 [4,] 10.90 10.50 10.700 [5,] 12.08 12.60 11.700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.856966 9.088645 6.995754 [2,] 11.223034 10.411355 10.804246 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.92, 7.21, 9.54, 10.9, 12.08, 8.7, 9.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ps8l1229020955.ps tmp/1ps8l1229020955.png") > system("convert tmp/2b2v71229020955.ps tmp/2b2v71229020955.png") > system("convert tmp/3wpct1229020955.ps tmp/3wpct1229020955.png") > system("convert tmp/41vm51229020955.ps tmp/41vm51229020955.png") > system("convert tmp/5vprs1229020955.ps tmp/5vprs1229020955.png") > system("convert tmp/6mpo41229020955.ps tmp/6mpo41229020955.png") > system("convert tmp/70q2f1229020955.ps tmp/70q2f1229020955.png") > > > proc.time() user system elapsed 1.883 1.485 2.250