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(16.41,16.38,16.12,16.03,16.02,16.01,16.01,15.94,15.88,15.75,15.8,15.84,15.84,15.79,15.79,15.75,15.63,15.63,15.63,15.62,15.59,15.55,15.61,15.58,15.58,15.64,15.56,15.57,15.46,15.5,15.5,15.58,15.69,15.78,15.8,15.79,15.79,15.79,15.75,15.71,15.76,15.76,15.76,15.76,15.78,15.84,15.82,15.86,15.86,15.87,15.84,15.84,15.89,15.89,15.89,15.91,15.95,16.08,16.08,16.09) > 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,] 16.41 15.84 15.58 15.79 15.86 NA [2,] 16.38 15.79 15.64 15.79 15.87 NA [3,] 16.12 15.79 15.56 15.75 15.84 NA [4,] 16.03 15.75 15.57 15.71 15.84 NA [5,] 16.02 15.63 15.46 15.76 15.89 NA [6,] 16.01 15.63 15.50 15.76 15.89 NA [7,] 16.01 15.63 15.50 15.76 15.89 NA [8,] 15.94 15.62 15.58 15.76 15.91 NA [9,] 15.88 15.59 15.69 15.78 15.95 NA [10,] 15.75 15.55 15.78 15.84 16.08 NA [11,] 15.80 15.61 15.80 15.82 16.08 NA [12,] 15.84 15.58 15.79 15.86 16.09 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.03 -0.05 0.06 0.00 0.01 NA [2,] -0.26 0.00 -0.08 -0.04 -0.03 NA [3,] -0.09 -0.04 0.01 -0.04 0.00 NA [4,] -0.01 -0.12 -0.11 0.05 0.05 NA [5,] -0.01 0.00 0.04 0.00 0.00 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.07 -0.01 0.08 0.00 0.02 NA [8,] -0.06 -0.03 0.11 0.02 0.04 NA [9,] -0.13 -0.04 0.09 0.06 0.13 NA [10,] 0.05 0.06 0.02 -0.02 0.00 NA [11,] 0.04 -0.03 -0.01 0.04 0.01 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/1g3m01331751206.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/2bsez1331751206.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/3i3v61331751206.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/47xsa1331751206.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,] 15.79 15.79 15.75 15.57 15.46 15.50 15.50 15.58 15.59 15.75 15.80 15.79 [2,] 15.79 15.79 15.75 15.71 15.63 15.63 15.63 15.62 15.69 15.75 15.80 15.79 [3,] 15.84 15.79 15.79 15.75 15.76 15.76 15.76 15.76 15.78 15.78 15.80 15.84 [4,] 15.86 15.87 15.84 15.84 15.89 15.89 15.89 15.91 15.88 15.84 15.82 15.86 [5,] 15.86 15.87 15.84 16.03 16.02 16.01 16.01 15.94 15.95 15.84 15.82 15.86 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.79054 15.73347 15.72641 15.65814 15.57628 15.57628 15.57628 15.55509 [2,] 15.88946 15.84653 15.85359 15.84186 15.94372 15.94372 15.94372 15.96491 [,9] [,10] [,11] [,12] [1,] 15.64575 15.71641 15.78587 15.79054 [2,] 15.91425 15.84359 15.81413 15.88946 $out [1] 16.41 15.58 16.38 15.64 16.12 15.56 15.55 16.08 15.61 16.08 15.58 16.09 $group [1] 1 1 2 2 3 3 10 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.79, 15.79, 15.84, 15.86, 15.86, 15.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5i4tg1331751206.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.05 -0.08 -0.09 -0.12 0 0 -0.01 -0.06 -0.13 -0.02 -0.03 0 [2,] -0.03 -0.08 -0.04 -0.11 0 0 -0.01 -0.03 -0.04 0.00 -0.01 0 [3,] 0.00 -0.04 -0.04 -0.01 0 0 0.00 0.02 0.06 0.02 0.01 0 [4,] 0.01 -0.03 0.00 0.05 0 0 0.02 0.04 0.09 0.05 0.04 0 [5,] 0.06 0.00 0.01 0.05 0 0 0.02 0.11 0.13 0.06 0.04 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.0282639 -0.075329874 -0.0682639 -0.1230556 0 0 -0.02119792 [2,] 0.0282639 -0.004670126 -0.0117361 0.1030556 0 0 0.02119792 [,8] [,9] [,10] [,11] [,12] [1,] -0.02946182 -0.03185767 -0.01532987 -0.02532987 0 [2,] 0.06946182 0.15185767 0.05532987 0.04532987 0 $out [1] -0.26 -0.01 0.04 -0.07 0.08 $group [1] 2 5 5 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0500000000000007, -0.0300000000000011, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6b15r1331751206.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,] 15.750 15.55 15.460 15.710 15.840 NA [2,] 15.860 15.60 15.530 15.760 15.865 NA [3,] 16.010 15.63 15.580 15.770 15.890 NA [4,] 16.075 15.77 15.735 15.805 16.015 NA [5,] 16.380 15.84 15.800 15.860 16.090 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.91194 15.55246 15.4865 15.74948 15.82158 NA [2,] 16.10806 15.70754 15.6735 15.79052 15.95842 NA $out [1] 16.41 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15.75, 15.86, 16.01, 16.075, 16.38, 15.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7yjv51331751206.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,] 15.752 15.750 15.7600 [2,] 15.760 15.760 15.7625 [3,] 15.790 15.780 15.7900 [4,] 15.827 15.795 15.8175 [5,] 15.896 15.840 15.8300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.75944 15.76404 15.76491 [2,] 15.82056 15.79596 15.81509 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15.752, 15.76, 15.79, 15.827, 15.896, 15.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1g3m01331751206.ps tmp/1g3m01331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/2bsez1331751206.ps tmp/2bsez1331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/3i3v61331751206.ps tmp/3i3v61331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/47xsa1331751206.ps tmp/47xsa1331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/5i4tg1331751206.ps tmp/5i4tg1331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/6b15r1331751206.ps tmp/6b15r1331751206.png",intern=TRUE)) character(0) > try(system("convert tmp/7yjv51331751206.ps tmp/7yjv51331751206.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.767 0.439 2.211