R version 2.12.2 (2011-02-25) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) 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. Natural language support but running in an English locale 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(17.1,13.4,15.3,14,9.7,13.7,13.7,12.5,9.8,7,-1.9,-2.9,-6.8,-10.4,-17.2,-19.8,-16.8,-23.2,-21.7,-17.6,-13,-12.6,-4,-0.2,3.1,6.5,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,-2.4,-1.2,0.2,-1.9,-1.6,-4.2,-2.2,6.2,5.7,3.1,1.1,-0.9,0.1,-4,-4,-5.3,-8,-6.3,-3.6,-3.5,-5.1,-3.3) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 17.1 -6.8 3.1 8.7 3.6 12.2 10.2 -0.1 1.1 NA [2,] 13.4 -10.4 6.5 10.2 2.7 9.1 12.7 0.8 -0.9 NA [3,] 15.3 -17.2 19.2 4.3 -0.2 9.0 16.0 -2.4 0.1 NA [4,] 14.0 -19.8 26.6 -0.1 -1.0 17.4 10.4 -1.2 -4.0 NA [5,] 9.7 -16.8 26.6 -4.6 5.8 14.7 9.9 0.2 -4.0 NA [6,] 13.7 -23.2 31.4 -3.9 6.4 17.0 9.5 -1.9 -5.3 NA [7,] 13.7 -21.7 31.2 -3.5 9.6 13.7 8.6 -1.6 -8.0 NA [8,] 12.5 -17.6 26.4 -3.4 13.2 9.5 10.0 -4.2 -6.3 NA [9,] 9.8 -13.0 20.7 -2.5 10.6 14.8 3.5 -2.2 -3.6 NA [10,] 7.0 -12.6 20.7 -1.1 10.9 13.6 -4.2 6.2 -3.5 NA [11,] -1.9 -4.0 15.0 0.3 12.9 12.6 -4.4 5.7 -5.1 NA [12,] -2.9 -0.2 13.3 -0.9 15.9 8.9 -1.5 3.1 -3.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -3.7 -3.6 3.4 1.5 -0.9 -3.1 2.5 0.9 -2.0 NA [2,] 1.9 -6.8 12.7 -5.9 -2.9 -0.1 3.3 -3.2 1.0 NA [3,] -1.3 -2.6 7.4 -4.4 -0.8 8.4 -5.6 1.2 -4.1 NA [4,] -4.3 3.0 0.0 -4.5 6.8 -2.7 -0.5 1.4 0.0 NA [5,] 4.0 -6.4 4.8 0.7 0.6 2.3 -0.4 -2.1 -1.3 NA [6,] 0.0 1.5 -0.2 0.4 3.2 -3.3 -0.9 0.3 -2.7 NA [7,] -1.2 4.1 -4.8 0.1 3.6 -4.2 1.4 -2.6 1.7 NA [8,] -2.7 4.6 -5.7 0.9 -2.6 5.3 -6.5 2.0 2.7 NA [9,] -2.8 0.4 0.0 1.4 0.3 -1.2 -7.7 8.4 0.1 NA [10,] -8.9 8.6 -5.7 1.4 2.0 -1.0 -0.2 -0.5 -1.6 NA [11,] -1.0 3.8 -1.7 -1.2 3.0 -3.7 2.9 -2.6 1.8 NA [12,] -3.9 3.3 -4.6 4.5 -3.7 1.3 1.4 -2.0 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/wessaorg/rcomp/tmp/1widn1305816994.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2ksds1305816994.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3z7aj1305816994.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4zz5l1305816994.ps",horizontal=F,onefile=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,] -6.8 -10.4 -17.2 -19.8 -16.8 -23.2 -21.7 -17.6 -13.0 -12.6 -5.1 -3.3 [2,] 1.1 0.8 -0.2 -1.2 -4.0 -3.9 -3.5 -4.2 -2.5 -3.5 -4.0 -1.5 [3,] 3.6 6.5 4.3 -0.1 5.8 6.4 8.6 9.5 3.5 6.2 0.3 -0.2 [4,] 10.2 10.2 15.3 14.0 9.9 13.7 13.7 12.5 10.6 10.9 12.6 8.9 [5,] 17.1 13.4 19.2 26.6 26.6 31.4 31.2 26.4 20.7 20.7 15.0 15.9 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.192667 1.549333 -3.863333 -8.105333 -1.520667 -2.869333 -0.4586667 [2,] 8.392667 11.450667 12.463333 7.905333 13.120667 15.669333 17.6586667 [,8] [,9] [,10] [,11] [,12] [1,] 0.7046667 -3.399333 -1.384 -8.442667 -5.677333 [2,] 18.2953333 10.399333 13.784 9.042667 5.277333 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.8, 1.1, 3.6, 10.2, 17.1, -10.4, 0.8, 6.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/57lu71305816994.ps",horizontal=F,onefile=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 -6.8 -5.6 -4.5 -6.4 -2.7 -4.8 -6.5 -2.8 -5.7 -3.7 -4.60 [2,] -3.1 -3.2 -4.1 -2.7 -1.3 -0.9 -2.6 -2.7 -1.2 -1.6 -1.7 -3.80 [3,] -0.9 -0.1 -1.3 0.0 0.6 0.0 0.1 0.9 0.1 -0.5 -1.0 -0.35 [4,] 1.5 1.9 1.2 1.4 2.3 0.4 1.7 2.7 0.4 1.4 2.9 2.35 [5,] 3.4 3.3 8.4 6.8 4.8 1.5 4.1 5.3 1.4 2.0 3.8 4.50 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -3.322667 -2.786 -4.091333 -2.159333 -1.296 -0.6846667 -2.164667 -1.944 [2,] 1.522667 2.586 1.491333 2.159333 2.496 0.6846667 2.364667 3.744 [,9] [,10] [,11] [,12] [1,] -0.7426667 -2.08 -3.422667 -3.785478 [2,] 0.9426667 1.08 1.422667 3.085478 $out [1] 12.7 3.2 -3.3 -7.7 8.4 -8.9 8.6 $group [1] 2 6 6 9 9 10 10 $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, -0.9, 1.5, 3.4, -6.8, -3.2, -0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/62l841305816994.ps",horizontal=F,onefile=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] [,8] [,9] [,10] [1,] 7.00 -23.2 3.10 -4.60 -1.00 8.90 -4.4 -4.20 -8.0 NA [2,] 8.35 -18.7 14.15 -3.45 3.15 9.30 1.0 -2.05 -5.2 NA [3,] 12.95 -14.9 20.70 -1.00 8.00 13.10 9.7 -0.65 -3.8 NA [4,] 13.85 -8.6 26.60 2.30 11.90 14.75 10.3 1.95 -2.1 NA [5,] 17.10 -0.2 31.40 10.20 15.90 17.40 16.0 6.20 1.1 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.44141 -19.50668 15.02147 -3.622614 4.009066 10.61422 5.458208 [2,] 15.45859 -10.29332 26.37853 1.622614 11.990934 15.58578 13.941792 [,8] [,9] [,10] [1,] -2.474427 -5.213931 NA [2,] 1.174427 -2.386069 NA $out [1] -1.9 -2.9 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(7, 8.35, 12.95, 13.85, 17.1, -23.2, -18.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/7wbzc1305816994.ps",horizontal=F,onefile=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.455556 -0.20 2.950 [2,] 4.172222 1.90 3.875 [3,] 4.638889 5.05 4.600 [4,] 4.877778 6.45 5.575 [5,] 5.455556 9.50 7.550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.317080 2.974714 3.824619 [2,] 4.960698 7.125286 5.375381 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.45555555555556, 4.17222222222222, 4.63888888888889, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1widn1305816994.ps tmp/1widn1305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/2ksds1305816994.ps tmp/2ksds1305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/3z7aj1305816994.ps tmp/3z7aj1305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/4zz5l1305816994.ps tmp/4zz5l1305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/57lu71305816994.ps tmp/57lu71305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/62l841305816994.ps tmp/62l841305816994.png",intern=TRUE)) character(0) > try(system("convert tmp/7wbzc1305816994.ps tmp/7wbzc1305816994.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 4.530 0.520 5.172