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(1.25,1.25,1.26,1.26,1.26,1.26,1.27,1.27,1.29,1.31,1.32,1.32,1.33,1.33,1.32,1.32,1.31,1.3,1.31,1.29,1.3,1.3,1.32,1.31,1.35,1.35,1.36,1.37,1.37,1.37,1.32,1.32,1.31,1.31,1.34,1.31,1.26,1.27,1.24,1.25,1.27,1.25,1.26,1.27,1.26,1.26,1.28,1.27,1.28,1.27,1.26,1.27,1.27,1.28,1.27,1.26,1.3,1.31,1.28,1.29,1.31,1.29,1.29,1.32,1.3,1.29,1.31,1.29,1.33,1.35,1.32,1.33,1.34,1.34,1.33,1.33,1.35,1.32) > 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] 78 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 7 7 7 7 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.25 1.33 1.35 1.26 1.28 1.31 1.34 [2,] 1.25 1.33 1.35 1.27 1.27 1.29 1.34 [3,] 1.26 1.32 1.36 1.24 1.26 1.29 1.33 [4,] 1.26 1.32 1.37 1.25 1.27 1.32 1.33 [5,] 1.26 1.31 1.37 1.27 1.27 1.30 1.35 [6,] 1.26 1.30 1.37 1.25 1.28 1.29 1.32 [7,] 1.27 1.31 1.32 1.26 1.27 1.31 NA [8,] 1.27 1.29 1.32 1.27 1.26 1.29 NA [9,] 1.29 1.30 1.31 1.26 1.30 1.33 NA [10,] 1.31 1.30 1.31 1.26 1.31 1.35 NA [11,] 1.32 1.32 1.34 1.28 1.28 1.32 NA [12,] 1.32 1.31 1.31 1.27 1.29 1.33 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.01 -0.01 -0.02 0.00 [2,] 0.01 -0.01 0.01 -0.03 -0.01 0.00 -0.01 [3,] 0.00 0.00 0.01 0.01 0.01 0.03 0.00 [4,] 0.00 -0.01 0.00 0.02 0.00 -0.02 0.02 [5,] 0.00 -0.01 0.00 -0.02 0.01 -0.01 -0.03 [6,] 0.01 0.01 -0.05 0.01 -0.01 0.02 NA [7,] 0.00 -0.02 0.00 0.01 -0.01 -0.02 NA [8,] 0.02 0.01 -0.01 -0.01 0.04 0.04 NA [9,] 0.02 0.00 0.00 0.00 0.01 0.02 NA [10,] 0.01 0.02 0.03 0.02 -0.03 -0.03 NA [11,] 0.00 -0.01 -0.03 -0.01 0.01 0.01 NA [12,] 0.01 0.04 -0.05 0.01 0.02 0.01 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/1r3fp1259762136.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/2puhy1259762136.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/323311259762136.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/4cqwb1259762136.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.250 1.250 1.240 1.250 1.26 1.25 1.26 1.26 1.26 1.30 1.28 1.27 [2,] 1.270 1.270 1.260 1.265 1.27 1.27 1.27 1.27 1.29 1.30 1.28 1.29 [3,] 1.310 1.290 1.290 1.320 1.30 1.29 1.29 1.28 1.30 1.31 1.32 1.31 [4,] 1.335 1.335 1.325 1.325 1.33 1.31 1.31 1.29 1.31 1.31 1.32 1.32 [5,] 1.350 1.350 1.360 1.370 1.37 1.37 1.32 1.32 1.33 1.31 1.34 1.33 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.271183 1.251183 1.251183 1.284169 1.264169 1.266113 1.264199 1.267099 [2,] 1.348817 1.328817 1.328817 1.355831 1.335831 1.313887 1.315801 1.292901 [,9] [,10] [,11] [,12] [1,] 1.287099 1.303550 1.294199 1.290649 [2,] 1.312901 1.316450 1.345801 1.329351 $out [1] 1.26 1.35 $group [1] 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.25, 1.27, 1.31, 1.335, 1.35, 1.25, 1.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jxxc1259762136.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] [1,] -0.010 -0.030 0.00 -0.020 -0.030 -0.01 -0.020 -0.010 0.000 -0.030 -0.030 [2,] -0.005 -0.010 0.00 -0.005 -0.015 -0.01 -0.020 -0.010 0.000 -0.030 -0.010 [3,] 0.000 -0.010 0.01 0.000 -0.010 0.01 -0.005 0.015 0.005 0.015 -0.005 [4,] 0.000 0.005 0.01 0.010 0.000 0.01 0.000 0.040 0.020 0.020 0.010 [5,] 0.000 0.010 0.01 0.020 0.010 0.02 0.010 0.040 0.020 0.030 0.010 [,12] [1,] 0.01 [2,] 0.01 [3,] 0.01 [4,] 0.02 [5,] 0.02 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.002985919 -0.018957758 0.004028161 -0.008957758 -0.018957758 [2,] 0.002985919 -0.001042242 0.015971839 0.008957758 -0.001042242 [,6] [,7] [,8] [,9] [,10] [1,] -0.002900646 -0.017900646 -0.01725161 -0.007900646 -0.01725161 [2,] 0.022900646 0.007900646 0.04725161 0.017900646 0.04725161 [,11] [,12] [1,] -0.017900646 0.003549677 [2,] 0.007900646 0.016450323 $out [1] 0.01 -0.02 0.03 -0.05 0.04 -0.05 $group [1] 1 1 3 6 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.005, 0, 0, 0, -0.03, -0.01, -0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fcqv1259762136.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] [1,] 1.250 1.29 1.310 1.240 1.260 1.290 1.320 [2,] 1.260 1.30 1.315 1.255 1.270 1.290 1.330 [3,] 1.265 1.31 1.345 1.260 1.275 1.310 1.335 [4,] 1.300 1.32 1.365 1.270 1.285 1.325 1.340 [5,] 1.320 1.33 1.370 1.280 1.300 1.350 1.350 $n [1] 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.246756 1.300878 1.322195 1.253158 1.268158 1.294036 1.328550 [2,] 1.283244 1.319122 1.367805 1.266842 1.281842 1.325964 1.341450 $out [1] 1.31 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.25, 1.26, 1.265, 1.3, 1.32, 1.29, 1.3, 1.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7vorn1259762136.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.283333 1.28 1.28000 [2,] 1.295000 1.29 1.29125 [3,] 1.301429 1.30 1.30000 [4,] 1.304643 1.31 1.30375 [5,] 1.310000 1.32 1.30625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.297030 1.290878 1.294299 [2,] 1.305827 1.309122 1.305701 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.28333333333333, 1.295, 1.30142857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1r3fp1259762136.ps tmp/1r3fp1259762136.png") > system("convert tmp/2puhy1259762136.ps tmp/2puhy1259762136.png") > system("convert tmp/323311259762136.ps tmp/323311259762136.png") > system("convert tmp/4cqwb1259762136.ps tmp/4cqwb1259762136.png") > system("convert tmp/5jxxc1259762136.ps tmp/5jxxc1259762136.png") > system("convert tmp/6fcqv1259762136.ps tmp/6fcqv1259762136.png") > system("convert tmp/7vorn1259762136.ps tmp/7vorn1259762136.png") > > > proc.time() user system elapsed 1.199 0.958 1.560