R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(5,1.3,0,1.3,3,1.3,-1,-1.3,-2,-0.3,0.7,-6,-1,3,-2,-1.3,1.7,4,5.3,-3,1.3,8.7,7.3,7.3,7.7,4.7,4.7,3.7,8.3,8,8.3,12.7,11.7,9.7,9.3,9.3,7.7,8.3,7.7,7,4.3,-0.3,4.7,2,0.3,-1.7,1.3,-12.3,-14.3,-15.7,-16.7,-19,-27.3,-26.7,-26.3,-28.6,-22.9,-21.9,-17.6,-17.6,-20.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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.0 -1.0 7.7 7.7 -14.3 -20.8 [2,] 1.3 3.0 4.7 8.3 -15.7 NA [3,] 0.0 -2.0 4.7 7.7 -16.7 NA [4,] 1.3 -1.3 3.7 7.0 -19.0 NA [5,] 3.0 1.7 8.3 4.3 -27.3 NA [6,] 1.3 4.0 8.0 -0.3 -26.7 NA [7,] -1.0 5.3 8.3 4.7 -26.3 NA [8,] -1.3 -3.0 12.7 2.0 -28.6 NA [9,] -2.0 1.3 11.7 0.3 -22.9 NA [10,] -0.3 8.7 9.7 -1.7 -21.9 NA [11,] 0.7 7.3 9.3 1.3 -17.6 NA [12,] -6.0 7.3 9.3 -12.3 -17.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -3.7 4.0 -3.0 0.6 -1.4 NA [2,] -1.3 -5.0 0.0 -0.6 -1.0 NA [3,] 1.3 0.7 -1.0 -0.7 -2.3 NA [4,] 1.7 3.0 4.6 -2.7 -8.3 NA [5,] -1.7 2.3 -0.3 -4.6 0.6 NA [6,] -2.3 1.3 0.3 5.0 0.4 NA [7,] -0.3 -8.3 4.4 -2.7 -2.3 NA [8,] -0.7 4.3 -1.0 -1.7 5.7 NA [9,] 1.7 7.4 -2.0 -2.0 1.0 NA [10,] 1.0 -1.4 -0.4 3.0 4.3 NA [11,] -6.7 0.0 0.0 -13.6 0.0 NA [12,] 5.0 0.4 -1.6 -2.0 -3.2 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/1ghtk1257941372.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/2gmzy1257941372.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/3p88h1257941372.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/4i2k31257941372.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,] -20.8 1.3 -2.0 -1.3 1.7 -0.3 -1.0 -3.0 -2.0 -1.7 0.7 -17.6 [2,] -14.3 1.3 -2.0 -1.3 1.7 -0.3 -1.0 -3.0 -2.0 -1.7 0.7 -12.3 [3,] 2.0 3.0 0.0 1.3 3.0 1.3 4.7 -1.3 0.3 -0.3 1.3 -6.0 [4,] 7.7 4.7 4.7 3.7 4.3 4.0 5.3 2.0 1.3 8.7 7.3 7.3 [5,] 7.7 8.3 7.7 7.0 4.3 8.0 8.3 2.0 1.3 9.7 9.3 9.3 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12.19071 0.5975686 -4.734203 -2.232987 1.162847 -1.738369 0.2484359 [2,] 16.19071 5.4024314 4.734203 4.832987 4.837153 4.338369 9.1515641 [,8] [,9] [,10] [,11] [,12] [1,] -4.832987 -2.031772 -7.648614 -3.363543 -19.84931 [2,] 2.232987 2.631772 7.048614 5.963543 7.84931 $out [1] -15.7 -16.7 -19.0 8.3 -27.3 -26.7 -26.3 12.7 -28.6 11.7 -22.9 -21.9 [13] -17.6 $group [1] 2 3 4 5 5 6 7 8 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-20.8, -14.3, 2, 7.7, 7.7, 1.3, 1.3, 3, 4.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jagh1257941372.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,] -3.7 -1.3 -2.3 -8.3 -4.6 0.3 -2.7 -1.7 -2.0 -1.4 -13.6 -3.2 [2,] -3.0 -1.3 -1.0 -2.7 -1.7 0.3 -2.7 -1.0 -2.0 -0.4 -6.7 -2.0 [3,] -1.4 -1.0 -0.7 1.7 -0.3 0.4 -2.3 -0.7 1.0 1.0 0.0 -1.6 [4,] 0.6 -0.6 0.7 3.0 0.6 1.3 -0.3 4.3 1.7 3.0 0.0 0.4 [5,] 4.0 0.0 1.3 4.6 2.3 1.3 -0.3 5.7 1.7 4.3 0.0 0.4 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.943751 -1.4946182 -1.9012157 -2.327606 -1.925174 -0.3065975 -3.995834 [2,] 1.143751 -0.5053818 0.5012157 5.727606 1.325174 1.1065975 -0.604166 [,8] [,9] [,10] [,11] [,12] [1,] -4.444967 -1.614411 -1.402431 -4.734203 -3.29583395 [2,] 3.044967 3.614411 3.402431 4.734203 0.09583395 $out [1] -5.0 -2.3 5.0 -8.3 4.4 7.4 5.0 $group [1] 2 6 6 7 7 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.7, -3, -1.400, 0.6, 4, -1.3, -1.3, -1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69c7h1257941372.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,] -2.00 -3.00 3.7 -1.70 -28.60 -20.8 [2,] -1.15 -1.15 6.2 0.00 -26.50 -20.8 [3,] 0.35 2.35 8.3 3.15 -20.45 -20.8 [4,] 1.30 6.30 9.5 7.35 -17.15 -20.8 [5,] 3.00 8.70 12.7 8.30 -14.30 -20.8 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.7674614 -1.047995 6.794848 -0.2023843 -24.71460 -20.8 [2,] 1.4674614 5.747995 9.805152 6.5023843 -16.18540 -20.8 $out [1] 5.0 -6.0 -12.3 $group [1] 1 1 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-2, -1.15, 0.35, 1.3, 3, -3, -1.15, 2.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74hft1257941372.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,] -3.860000 -1.30 -2.500 [2,] -2.678333 -0.15 -0.425 [3,] -1.900000 1.30 1.600 [4,] -1.180000 2.50 3.000 [5,] 0.320000 4.70 4.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -2.5834 0.09131721 0.03783451 [2,] -1.2166 2.50868279 3.16216549 $out [1] -6 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-3.86, -2.67833333333333, -1.9, -1.18, 0.320000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ghtk1257941372.ps tmp/1ghtk1257941372.png") > system("convert tmp/2gmzy1257941372.ps tmp/2gmzy1257941372.png") > system("convert tmp/3p88h1257941372.ps tmp/3p88h1257941372.png") > system("convert tmp/4i2k31257941372.ps tmp/4i2k31257941372.png") > system("convert tmp/5jagh1257941372.ps tmp/5jagh1257941372.png") > system("convert tmp/69c7h1257941372.ps tmp/69c7h1257941372.png") > system("convert tmp/74hft1257941372.ps tmp/74hft1257941372.png") > > > proc.time() user system elapsed 1.206 0.929 1.689