R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(20.89,21.04,21.07,21.12,21.25,21.24,21.24,21.22,21.29,21.25,21.15,21.16,21.16,21.52,21.59,21.6,21.68,21.67,21.67,21.65,21.74,21.72,21.84,21.94,21.94,21.95,21.96,22.1,22.13,22.18,22.18,22.27,22.3,22.04,22.05,22.06,22.06,22.06,21.97,22.03,22.08,22.13,22.13,22.4,22.4,22.12,22.22,22.14,22.14,22.19,22.29,22.24,22.26,22.29,22.29,22.29,22.29,22.35,22.39,22.43) > 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,] 20.89 21.16 21.94 22.06 22.14 NA [2,] 21.04 21.52 21.95 22.06 22.19 NA [3,] 21.07 21.59 21.96 21.97 22.29 NA [4,] 21.12 21.60 22.10 22.03 22.24 NA [5,] 21.25 21.68 22.13 22.08 22.26 NA [6,] 21.24 21.67 22.18 22.13 22.29 NA [7,] 21.24 21.67 22.18 22.13 22.29 NA [8,] 21.22 21.65 22.27 22.40 22.29 NA [9,] 21.29 21.74 22.30 22.40 22.29 NA [10,] 21.25 21.72 22.04 22.12 22.35 NA [11,] 21.15 21.84 22.05 22.22 22.39 NA [12,] 21.16 21.94 22.06 22.14 22.43 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.15 0.36 0.01 0.00 0.05 NA [2,] 0.03 0.07 0.01 -0.09 0.10 NA [3,] 0.05 0.01 0.14 0.06 -0.05 NA [4,] 0.13 0.08 0.03 0.05 0.02 NA [5,] -0.01 -0.01 0.05 0.05 0.03 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.02 -0.02 0.09 0.27 0.00 NA [8,] 0.07 0.09 0.03 0.00 0.00 NA [9,] -0.04 -0.02 -0.26 -0.28 0.06 NA [10,] -0.10 0.12 0.01 0.10 0.04 NA [11,] 0.01 0.10 0.01 -0.08 0.04 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/www/rcomp/tmp/1icla1319658658.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/www/rcomp/tmp/28yr41319658658.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/www/rcomp/tmp/3eagk1319658658.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/www/rcomp/tmp/4vvib1319658658.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,] 20.89 21.04 21.07 21.12 21.25 21.24 21.24 21.22 21.29 21.25 21.84 21.94 [2,] 21.16 21.52 21.59 21.60 21.68 21.67 21.67 21.65 21.74 21.72 21.84 21.94 [3,] 21.94 21.95 21.96 22.03 22.08 22.13 22.13 22.27 22.29 22.04 22.05 22.06 [4,] 22.06 22.06 21.97 22.10 22.13 22.18 22.18 22.29 22.30 22.12 22.22 22.14 [5,] 22.14 22.19 22.29 22.24 22.26 22.29 22.29 22.40 22.40 22.35 22.39 22.43 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 21.30406 21.56844 21.69149 21.6767 21.76203 21.76964 21.76964 21.81778 [2,] 22.57594 22.33156 22.22851 22.3833 22.39797 22.49036 22.49036 22.72222 [,9] [,10] [,11] [,12] [1,] 21.89431 21.75736 21.78149 21.91868 [2,] 22.68569 22.32264 22.31851 22.20132 $out [1] 21.15 21.16 $group [1] 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(20.89, 21.16, 21.94, 22.06, 22.14, 21.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5zdpk1319658658.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.01 -0.05 0.02 -0.01 0 -0.02 0.00 -0.28 -0.10 0.01 0 [2,] 0.01 0.01 0.01 0.03 -0.01 0 -0.02 0.00 -0.26 0.01 0.01 0 [3,] 0.05 0.03 0.05 0.05 0.03 0 0.00 0.03 -0.04 0.04 0.01 0 [4,] 0.15 0.07 0.06 0.08 0.05 0 0.09 0.07 -0.02 0.10 0.04 0 [5,] 0.36 0.10 0.06 0.13 0.05 0 0.09 0.09 0.06 0.12 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.04892365 -0.01239585 0.01467013 0.01467013 -0.01239585 0 -0.07772572 [2,] 0.14892365 0.07239585 0.08532987 0.08532987 0.07239585 0 0.07772572 [,8] [,9] [,10] [,11] [,12] [1,] -0.01946182 -0.2095834 -0.02359377 -0.01119792 0 [2,] 0.07946182 0.1295834 0.10359377 0.03119792 0 $out [1] -0.09 0.14 0.27 0.10 -0.08 $group [1] 2 3 7 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.009999999999998, 0.0500000000000007, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6g5qx1319658658.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,] 20.890 21.520 21.94 21.970 22.19 NA [2,] 21.095 21.595 22.00 22.060 22.25 NA [3,] 21.190 21.670 22.08 22.125 22.29 NA [4,] 21.245 21.730 22.18 22.180 22.32 NA [5,] 21.290 21.840 22.30 22.220 22.39 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21.12158 21.60843 21.9979 22.07027 22.25807 NA [2,] 21.25842 21.73157 22.1621 22.17973 22.32193 NA $out [1] 21.16 21.94 22.40 22.40 22.14 22.43 $group [1] 2 2 4 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(20.89, 21.095, 21.19, 21.245, 21.29, 21.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7cpop1319658658.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,] 21.638 21.940 21.6100 [2,] 21.797 21.995 21.8200 [3,] 21.899 22.055 21.9225 [4,] 21.938 22.130 21.9950 [5,] 22.004 22.290 22.0400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 21.83469 21.99343 21.84268 [2,] 21.96331 22.11657 22.00232 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(21.638, 21.797, 21.899, 21.938, 22.004, 21.94, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1icla1319658658.ps tmp/1icla1319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/28yr41319658658.ps tmp/28yr41319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/3eagk1319658658.ps tmp/3eagk1319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/4vvib1319658658.ps tmp/4vvib1319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/5zdpk1319658658.ps tmp/5zdpk1319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/6g5qx1319658658.ps tmp/6g5qx1319658658.png",intern=TRUE)) character(0) > try(system("convert tmp/7cpop1319658658.ps tmp/7cpop1319658658.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.470 0.280 2.731