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(105.71,105.82,105.82,105.72,105.76,105.8,105.09,105.06,105.16,105.2,105.21,105.23,105.19,105.16,104.88,104.52,104.09,104.35,104.48,104.47,104.55,104.59,104.59,104.72,104.65,104.72,104.92,105.05,103.74,103.81,103.79,104.28,103.8,103.8,104.02,104.02,104.91,104.97,103.86,104.17,103.21,103.21,101.91,101.84,101.91,101.79,101.79,101.79,102.09,102.18,102.2,101.97,102.05,102.04,101.78,101.79,101.8,101.83,101.83,101.88,101.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] 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,] 105.71 105.19 104.65 104.91 102.09 101.9 [2,] 105.82 105.16 104.72 104.97 102.18 NA [3,] 105.82 104.88 104.92 103.86 102.20 NA [4,] 105.72 104.52 105.05 104.17 101.97 NA [5,] 105.76 104.09 103.74 103.21 102.05 NA [6,] 105.80 104.35 103.81 103.21 102.04 NA [7,] 105.09 104.48 103.79 101.91 101.78 NA [8,] 105.06 104.47 104.28 101.84 101.79 NA [9,] 105.16 104.55 103.80 101.91 101.80 NA [10,] 105.20 104.59 103.80 101.79 101.83 NA [11,] 105.21 104.59 104.02 101.79 101.83 NA [12,] 105.23 104.72 104.02 101.79 101.88 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.11 -0.03 0.07 0.06 0.09 NA [2,] 0.00 -0.28 0.20 -1.11 0.02 NA [3,] -0.10 -0.36 0.13 0.31 -0.23 NA [4,] 0.04 -0.43 -1.31 -0.96 0.08 NA [5,] 0.04 0.26 0.07 0.00 -0.01 NA [6,] -0.71 0.13 -0.02 -1.30 -0.26 NA [7,] -0.03 -0.01 0.49 -0.07 0.01 NA [8,] 0.10 0.08 -0.48 0.07 0.01 NA [9,] 0.04 0.04 0.00 -0.12 0.03 NA [10,] 0.01 0.00 0.22 0.00 0.00 NA [11,] 0.02 0.13 0.00 0.00 0.05 NA [12,] -0.04 -0.07 0.89 0.30 0.02 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/1pa651319182749.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/2o47c1319182749.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/3f3s81319182749.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/4ty611319182749.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] [1,] 101.90 104.72 103.86 104.17 102.05 102.04 101.78 101.79 101.80 101.79 [2,] 102.09 104.72 103.86 104.17 103.21 103.21 101.91 101.84 101.91 101.83 [3,] 104.78 104.97 104.88 104.52 103.74 103.81 103.79 104.28 103.80 103.80 [4,] 105.19 105.16 104.92 105.05 104.09 104.35 104.48 104.47 104.55 104.59 [5,] 105.71 105.82 105.82 105.72 104.09 105.80 105.09 105.06 105.16 105.20 [,11] [,12] [1,] 101.79 101.79 [2,] 101.83 101.88 [3,] 104.02 104.02 [4,] 104.59 104.72 [5,] 105.21 105.23 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 102.7804 104.6591 104.131 103.8982 103.1182 103.0045 101.974 102.4216 [2,] 106.7796 105.2809 105.629 105.1418 104.3618 104.6155 105.606 106.1384 [,9] [,10] [,11] [,12] [1,] 101.9346 101.8498 102.0698 102.0133 [2,] 105.6654 105.7502 105.9702 106.0267 $out [1] 102.18 102.20 101.97 105.76 $group [1] 2 3 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(101.9, 102.09, 104.78, 105.19, 105.71, 104.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/58fox1319182749.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.06 -0.28 -0.36 -1.31 -0.01 -1.30 -0.07 0.01 0.00 0.00 0.00 -0.07 [2,] 0.06 -0.28 -0.23 -0.96 0.00 -0.71 -0.03 0.01 0.00 0.00 0.00 -0.04 [3,] 0.07 0.00 -0.10 -0.43 0.04 -0.26 -0.01 0.07 0.03 0.00 0.02 0.02 [4,] 0.09 0.02 0.13 0.04 0.07 -0.02 0.01 0.08 0.04 0.01 0.05 0.30 [5,] 0.11 0.20 0.31 0.08 0.07 0.13 0.01 0.10 0.04 0.01 0.05 0.30 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.04880208 -0.2119792 -0.3543751 -1.1365975 -0.009461824 -0.7475523 [2,] 0.09119792 0.2119792 0.1543751 0.2765975 0.089461824 0.2275523 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.0382639 0.02053818 0.001736101 -0.007065975 -0.01532987 -0.2202431 [2,] 0.0182639 0.11946182 0.058263899 0.007065975 0.05532987 0.2602431 $out [1] -0.03 -1.11 0.26 0.49 -0.48 -0.12 0.22 0.13 0.89 $group [1] 1 2 5 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0600000000000023, 0.0600000000000023, 0.0699999999999932, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/65p7q1319182749.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,] 105.06 104.090 103.740 101.790 101.780 101.9 [2,] 105.18 104.475 103.800 101.815 101.815 101.9 [3,] 105.47 104.570 104.020 102.560 101.925 101.9 [4,] 105.78 104.800 104.685 104.015 102.070 101.9 [5,] 105.82 105.190 105.050 104.970 102.200 101.9 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 105.1963 104.4218 103.6163 101.5566 101.8087 101.9 [2,] 105.7437 104.7182 104.4237 103.5634 102.0413 101.9 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(105.06, 105.18, 105.47, 105.78, 105.82, 104.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/70slx1319182749.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,] 103.4100 103.74 103.1550 [2,] 103.4660 103.80 103.2100 [3,] 103.6490 104.02 103.4750 [4,] 104.1805 104.65 104.1575 [5,] 104.5700 104.97 104.9400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.3231 103.6323 103.0428 [2,] 103.9749 104.4077 103.9072 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.41, 103.466, 103.649, 104.1805, 104.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1pa651319182749.ps tmp/1pa651319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/2o47c1319182749.ps tmp/2o47c1319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/3f3s81319182749.ps tmp/3f3s81319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/4ty611319182749.ps tmp/4ty611319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/58fox1319182749.ps tmp/58fox1319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/65p7q1319182749.ps tmp/65p7q1319182749.png",intern=TRUE)) character(0) > try(system("convert tmp/70slx1319182749.ps tmp/70slx1319182749.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.562 0.327 1.897