R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-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. 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(62.11,62.15,62.2,62.22,62.02,62.02,62.02,62.07,62.31,62.71,62.77,62.82,62.82,62.82,62.55,62.6,62.47,62.47,62.47,62.72,63.13,64.09,64.31,64.29,64.29,64.29,64.35,64.42,64.24,64.23,64.23,64.2,65.35,65.83,66.15,66.19,66.19,66.56,66.59,66.48,66.4,66.4,66.4,66.49,66.65,67.69,67.91,68.14,68.14,68.16,67.94,68,68.1,68.12,68.12,68.24,68.42,68.97,69.13,69.2) > 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,] 62.11 62.82 64.29 66.19 68.14 NA [2,] 62.15 62.82 64.29 66.56 68.16 NA [3,] 62.20 62.55 64.35 66.59 67.94 NA [4,] 62.22 62.60 64.42 66.48 68.00 NA [5,] 62.02 62.47 64.24 66.40 68.10 NA [6,] 62.02 62.47 64.23 66.40 68.12 NA [7,] 62.02 62.47 64.23 66.40 68.12 NA [8,] 62.07 62.72 64.20 66.49 68.24 NA [9,] 62.31 63.13 65.35 66.65 68.42 NA [10,] 62.71 64.09 65.83 67.69 68.97 NA [11,] 62.77 64.31 66.15 67.91 69.13 NA [12,] 62.82 64.29 66.19 68.14 69.20 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.04 0.00 0.00 0.37 0.02 NA [2,] 0.05 -0.27 0.06 0.03 -0.22 NA [3,] 0.02 0.05 0.07 -0.11 0.06 NA [4,] -0.20 -0.13 -0.18 -0.08 0.10 NA [5,] 0.00 0.00 -0.01 0.00 0.02 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.05 0.25 -0.03 0.09 0.12 NA [8,] 0.24 0.41 1.15 0.16 0.18 NA [9,] 0.40 0.96 0.48 1.04 0.55 NA [10,] 0.06 0.22 0.32 0.22 0.16 NA [11,] 0.05 -0.02 0.04 0.23 0.07 NA [12,] 0.00 0.00 0.00 0.00 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/wessaorg/rcomp/tmp/1huq41331712268.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/wessaorg/rcomp/tmp/2a3rb1331712268.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/wessaorg/rcomp/tmp/3hunj1331712268.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/wessaorg/rcomp/tmp/4wm5s1331712268.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,] 62.11 62.15 62.20 62.22 62.02 62.02 62.02 62.07 62.31 62.71 62.77 62.82 [2,] 62.82 62.82 62.55 62.60 62.47 62.47 62.47 62.72 63.13 64.09 64.31 64.29 [3,] 64.29 64.29 64.35 64.42 64.24 64.23 64.23 64.20 65.35 65.83 66.15 66.19 [4,] 66.19 66.56 66.59 66.48 66.40 66.40 66.40 66.49 66.65 67.69 67.91 68.14 [5,] 68.14 68.16 67.94 68.00 68.10 68.12 68.12 68.24 68.42 68.97 69.13 69.20 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 61.90877 61.64733 61.49535 61.6784 61.46307 61.45307 61.45307 61.53613 [2,] 66.67123 66.93267 67.20465 67.1616 67.01693 67.00693 67.00693 66.86387 [,9] [,10] [,11] [,12] [1,] 62.86278 63.28625 63.60625 63.4696 [2,] 67.83722 68.37375 68.69375 68.9104 $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(62.11, 62.82, 64.29, 66.19, 68.14, 62.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5w69l1331712268.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,] 0.00 -0.27 0.02 -0.20 0 0 -0.03 0.16 0.40 0.16 0.04 0 [2,] 0.00 -0.22 0.02 -0.18 0 0 0.05 0.18 0.48 0.16 0.04 0 [3,] 0.02 0.03 0.05 -0.13 0 0 0.09 0.24 0.55 0.22 0.05 0 [4,] 0.04 0.05 0.06 -0.08 0 0 0.12 0.41 0.96 0.22 0.07 0 [5,] 0.04 0.06 0.07 -0.08 0 0 0.12 0.41 1.04 0.22 0.07 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.008263899 -0.1607813 0.0217361 -0.20065975 0 0 0.04053818 [2,] 0.048263899 0.2207813 0.0782639 -0.05934025 0 0 0.13946182 [,8] [,9] [,10] [,11] [,12] [1,] 0.07748258 0.2108332 0.1776042 0.02880208 0 [2,] 0.40251742 0.8891668 0.2623958 0.07119792 0 $out [1] 0.37 -0.11 0.10 -0.01 0.02 0.25 1.15 0.06 0.32 -0.02 0.23 $group [1] 1 3 4 5 5 7 8 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.019999999999996, 0.0399999999999991, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6qtpj1331712268.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] [1,] 62.020 62.47 64.200 66.190 67.940 NA [2,] 62.045 62.51 64.235 66.400 68.110 NA [3,] 62.175 62.77 64.320 66.525 68.150 NA [4,] 62.510 63.61 65.590 67.170 68.695 NA [5,] 62.820 64.31 66.190 68.140 69.200 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 61.96291 62.26828 63.70198 66.1738 67.88318 NA [2,] 62.38709 63.27172 64.93802 66.8762 68.41682 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(62.02, 62.045, 62.175, 62.51, 62.82, 62.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/72f4v1331712268.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,] 64.646 64.200 64.4350 [2,] 64.679 64.235 64.4700 [3,] 64.744 64.320 64.5875 [4,] 65.515 65.590 65.3900 [5,] 66.128 66.190 66.2150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 64.36269 63.70198 64.16788 [2,] 65.12531 64.93802 65.00712 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(64.646, 64.679, 64.744, 65.515, 66.128, 64.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1huq41331712268.ps tmp/1huq41331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/2a3rb1331712268.ps tmp/2a3rb1331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/3hunj1331712268.ps tmp/3hunj1331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/4wm5s1331712268.ps tmp/4wm5s1331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/5w69l1331712268.ps tmp/5w69l1331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/6qtpj1331712268.ps tmp/6qtpj1331712268.png",intern=TRUE)) character(0) > try(system("convert tmp/72f4v1331712268.ps tmp/72f4v1331712268.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.594 0.421 2.041