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(2.4,2.4,2.5,2.6,2.4,2.6,2.4,2.3,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.4,2.5,2.1,2.1,2,2,2,1.9,1.9,2,1.8,1.6,1.3,1.4,1.4,1.5,1.7,1.6,1.5,1.6,1.5,1.1,1.1,1.1,1.4,1.3,1.4,1.3,1.1,1,0.9,0.8,0.8,0.8,0.8,1,1.1,1,0.9,1.1,1.2,1.2,1.4,1.5,1.7,1.9,1.9,1.9,1.7,1.7,2.1,2,2,2.5,2.4,2.5,2.5,2,1.9,2.2,2.7,3.1,2.8,2.6,2.3,2.2,2.2,2,2,2.6,2.5,2.5,2.3,2,1.9,2,2.1,2.1,2.3,2.3,2.3,2.1,2.4,2.5,2.1,1.8,1.9,1.9,2.1,2.2,2,2.2,2,1.9,1.6,1.7,2,2.5,2.4,2.3,2.3,2.1,2.4,2.2,2.4,1.9,2.1,2.1,2.1,2,2.1,2.2,2.2,2.6,2.5,2.3,2.2,2.4,2.3,2.2,2.5,2.5,2.5,2.4,2.3,1.7,1.6,1.9,1.9,1.8,1.8,1.9,1.9,1.9,1.9,1.8,1.7,2.1,2.6,3.1,3.1,3.2,3.3,3.6,3.3,3.7,4,4,3.8,3.6,3.2,2.1,1.6,1.1,1.2,0.6,0.6,0,-0.1,-0.6,-0.2,-0.3,-0.1,0.5,0.9) > 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] 180 > (np <- floor(n / par1)) [1] 15 > 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] 15 15 15 15 15 15 15 15 15 15 15 15 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 2.4 2.4 2.0 1.1 0.8 1.9 2.0 2.6 2.1 1.9 1.9 2.4 1.8 [2,] 2.4 2.4 1.8 1.1 0.8 1.9 1.9 2.5 2.4 1.6 2.1 2.3 1.8 [3,] 2.5 2.4 1.6 1.1 1.0 1.9 2.2 2.5 2.5 1.7 2.1 2.2 1.9 [4,] 2.6 2.4 1.3 1.4 1.1 1.7 2.7 2.3 2.1 2.0 2.1 2.5 1.9 [5,] 2.4 2.5 1.4 1.3 1.0 1.7 3.1 2.0 1.8 2.5 2.0 2.5 1.9 [6,] 2.6 2.1 1.4 1.4 0.9 2.1 2.8 1.9 1.9 2.4 2.1 2.5 1.9 [7,] 2.4 2.1 1.5 1.3 1.1 2.0 2.6 2.0 1.9 2.3 2.2 2.4 1.8 [8,] 2.3 2.0 1.7 1.1 1.2 2.0 2.3 2.1 2.1 2.3 2.2 2.3 1.7 [9,] 2.4 2.0 1.6 1.0 1.2 2.5 2.2 2.1 2.2 2.1 2.6 1.7 2.1 [10,] 2.4 2.0 1.5 0.9 1.4 2.4 2.2 2.3 2.0 2.4 2.5 1.6 2.6 [11,] 2.4 1.9 1.6 0.8 1.5 2.5 2.0 2.3 2.2 2.2 2.3 1.9 3.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-0.2 -0.1 -0.5 0.2 -0.1 0.1 [,14] [,15] [,16] [1,] 0.1 0.1 NA [2,] 0.3 -0.6 NA [3,] -0.3 0.0 NA [4,] 0.4 -0.6 NA [5,] 0.3 -0.1 NA [6,] 0.0 -0.5 NA [7,] -0.2 0.4 NA [8,] -0.2 -0.1 NA [9,] -0.4 0.2 NA [10,] -1.1 0.6 NA [11,] -0.5 0.4 NA [12,] -0.5 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/rcomp/tmp/1szfd1289496200.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/2szfd1289496200.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/33rey1289496200.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/43rey1289496200.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,] 1.10 0.8 0.60 0.60 1.00 0.90 1.10 1.1 1.00 0.90 1.50 0.80 [2,] 1.85 1.7 1.65 1.55 1.55 1.65 1.65 1.7 1.65 1.55 1.75 1.65 [3,] 2.00 1.9 2.10 2.10 2.00 2.10 2.00 2.1 2.10 2.20 2.10 2.00 [4,] 2.40 2.4 2.45 2.45 2.50 2.45 2.35 2.3 2.30 2.40 2.30 2.35 [5,] 3.20 3.3 3.60 3.30 3.70 2.80 2.60 2.3 2.60 3.20 3.10 3.10 $n [1] 15 15 15 15 15 15 15 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.775625 1.614432 1.773637 1.732841 1.612443 1.773637 1.714432 1.855227 [2,] 2.224375 2.185568 2.426363 2.467159 2.387557 2.426363 2.285568 2.344773 [,9] [,10] [,11] [,12] [1,] 1.834830 1.853239 1.875625 1.714432 [2,] 2.365170 2.546761 2.324375 2.285568 $out [1] 0.8 0.0 4.0 -0.1 4.0 -0.6 3.8 -0.2 3.6 -0.3 -0.1 0.8 0.5 $group [1] 1 5 6 6 7 7 8 8 9 9 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.1, 1.85, 2, 2.4, 3.2, 0.8, 1.7, 1.9, 2.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5d0dj1289496200.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,] -0.30 -0.1 -0.4 -0.30 -0.4 -0.20 -0.3 -0.2 -0.4 -0.20 -0.10 -0.50 [2,] -0.10 0.0 -0.2 -0.15 -0.1 -0.10 -0.1 -0.1 -0.1 -0.15 -0.05 -0.40 [3,] 0.00 0.0 0.0 0.00 0.0 -0.10 0.0 0.0 0.0 0.00 0.00 -0.05 [4,] 0.05 0.1 0.2 0.10 0.1 0.05 0.1 0.1 0.2 0.15 0.00 0.10 [5,] 0.20 0.2 0.5 0.40 0.3 0.20 0.4 0.4 0.5 0.60 0.00 0.60 $n [1] 15 15 15 15 15 15 15 15 15 15 15 14 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.06119314 -0.04079542 -0.1631817 -0.1019886 -0.08159085 -0.16119314 [2,] 0.06119314 0.04079542 0.1631817 0.1019886 0.08159085 -0.03880686 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.08159085 -0.08159085 -0.1223863 -0.1223863 -0.02039771 -0.2611364 [2,] 0.08159085 0.08159085 0.1223863 0.1223863 0.02039771 0.1611364 $out [1] 0.3 -0.2 0.3 0.3 -0.6 0.5 -0.6 0.4 -0.5 0.5 -0.6 -1.1 0.2 -0.2 0.2 [16] -0.5 0.4 $group [1] 1 2 2 2 2 4 4 5 6 8 8 10 11 11 11 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.3, -0.1, 0, 0.0499999999999998, 0.2, -0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6d0dj1289496200.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] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 2.40 1.9 1.30 0.80 0.80 1.70 1.90 1.90 1.80 1.60 1.90 1.60 1.70 3.20 [2,] 2.40 2.0 1.45 0.95 0.95 1.90 2.00 2.05 1.95 1.95 2.10 1.90 1.80 3.20 [3,] 2.40 2.1 1.55 1.10 1.10 2.00 2.20 2.30 2.10 2.25 2.15 2.30 1.90 3.45 [4,] 2.45 2.4 1.65 1.30 1.30 2.45 2.65 2.40 2.20 2.40 2.25 2.45 2.35 3.75 [5,] 2.50 2.5 1.80 1.40 1.70 2.50 3.10 2.60 2.50 2.50 2.30 2.50 3.10 4.00 [,15] [,16] [1,] -0.60 NA [2,] -0.15 NA [3,] 0.25 NA [4,] 0.75 NA [5,] 1.20 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.377195 1.917557 1.458779 0.9403627 0.9403627 1.749141 1.903531 2.140363 [2,] 2.422805 2.282443 1.641221 1.2596373 1.2596373 2.250859 2.496469 2.459637 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 1.985973 2.044752 2.081584 2.049141 1.649141 3.199141 -0.1604960 NA [2,] 2.214027 2.455248 2.218416 2.550859 2.150859 3.700859 0.6604960 NA $out [1] 2.6 2.6 2.3 2.0 2.6 2.5 2.1 1.6 $group [1] 1 1 1 3 11 11 14 14 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] NA Warning message: In bxp(list(stats = c(2.4, 2.4, 2.4, 2.45, 2.5, 1.9, 2, 2.1, 2.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7d0dj1289496200.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,] 1.926667 1.9 1.9750 [2,] 1.940000 2.0 2.0000 [3,] 1.960000 2.1 2.0125 [4,] 1.986667 2.1 2.0500 [5,] 2.000000 2.2 2.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.938715 2.054389 1.989695 [2,] 1.981285 2.145611 2.035305 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.92666666666667, 1.94, 1.96, 1.98666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1szfd1289496200.ps tmp/1szfd1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/2szfd1289496200.ps tmp/2szfd1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/33rey1289496200.ps tmp/33rey1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/43rey1289496200.ps tmp/43rey1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/5d0dj1289496200.ps tmp/5d0dj1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/6d0dj1289496200.ps tmp/6d0dj1289496200.png",intern=TRUE)) character(0) > try(system("convert tmp/7d0dj1289496200.ps tmp/7d0dj1289496200.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.206 0.945 1.716