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(14.66,14.71,14.87,14.94,15.01,15.03,15.04,15.05,15.06,15.11,15.23,15.23,15.25,15.33,15.38,15.52,15.59,15.66,15.67,15.72,15.75,15.77,15.79,15.79,16.49,16.67,16.64,16.66,16.73,16.76,16.76,16.76,16.76,16.79,16.8,16.81,16.91,17.03,17.12,17.2,17.25,17.25,17.3,17.27,17.31,17.33,17.35,17.36,17.39,17.42,17.54,17.59,17.64,17.63,17.67,17.7,17.78,17.87,17.9,17.91,17.93,17.97,18.08,18.08,18.09,18.09,18.12,18.13,18.15,18.17,18.19,18.2,18.21,18.39,18.48,18.48,18.5,18.52,18.48,18.53,18.62,18.65,18.7,18.72) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.66 15.25 16.49 16.91 17.39 17.93 18.21 NA [2,] 14.71 15.33 16.67 17.03 17.42 17.97 18.39 NA [3,] 14.87 15.38 16.64 17.12 17.54 18.08 18.48 NA [4,] 14.94 15.52 16.66 17.20 17.59 18.08 18.48 NA [5,] 15.01 15.59 16.73 17.25 17.64 18.09 18.50 NA [6,] 15.03 15.66 16.76 17.25 17.63 18.09 18.52 NA [7,] 15.04 15.67 16.76 17.30 17.67 18.12 18.48 NA [8,] 15.05 15.72 16.76 17.27 17.70 18.13 18.53 NA [9,] 15.06 15.75 16.76 17.31 17.78 18.15 18.62 NA [10,] 15.11 15.77 16.79 17.33 17.87 18.17 18.65 NA [11,] 15.23 15.79 16.80 17.35 17.90 18.19 18.70 NA [12,] 15.23 15.79 16.81 17.36 17.91 18.20 18.72 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.05 0.08 0.18 0.12 0.03 0.04 0.18 NA [2,] 0.16 0.05 -0.03 0.09 0.12 0.11 0.09 NA [3,] 0.07 0.14 0.02 0.08 0.05 0.00 0.00 NA [4,] 0.07 0.07 0.07 0.05 0.05 0.01 0.02 NA [5,] 0.02 0.07 0.03 0.00 -0.01 0.00 0.02 NA [6,] 0.01 0.01 0.00 0.05 0.04 0.03 -0.04 NA [7,] 0.01 0.05 0.00 -0.03 0.03 0.01 0.05 NA [8,] 0.01 0.03 0.00 0.04 0.08 0.02 0.09 NA [9,] 0.05 0.02 0.03 0.02 0.09 0.02 0.03 NA [10,] 0.12 0.02 0.01 0.02 0.03 0.02 0.05 NA [11,] 0.00 0.00 0.01 0.01 0.01 0.01 0.02 NA [12,] 0.02 0.70 0.10 0.03 0.02 0.01 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/18rfy1319656701.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/2jbgi1319656701.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/31mqq1319656701.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/4gyfp1319656701.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] [1,] 14.66 14.710 14.87 14.940 15.010 15.03 15.040 15.050 15.060 15.11 15.230 [2,] 15.87 16.000 16.01 16.090 16.160 16.21 16.215 16.240 16.255 16.28 16.295 [3,] 16.91 17.030 17.12 17.200 17.250 17.25 17.300 17.270 17.310 17.33 17.350 [4,] 17.66 17.695 17.81 17.835 17.865 17.86 17.895 17.915 17.965 18.02 18.045 [5,] 18.21 18.390 18.48 18.480 18.500 18.52 18.480 18.530 18.620 18.65 18.700 [,12] [1,] 15.230 [2,] 16.300 [3,] 17.360 [4,] 18.055 [5,] 18.720 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.84104 16.01777 16.04507 16.15791 16.2318 16.26465 16.29673 16.26972 [2,] 17.97896 18.04223 18.19493 18.24209 18.2682 18.23535 18.30327 18.27028 [,9] [,10] [,11] [,12] [1,] 16.28882 16.2909 16.30493 16.31194 [2,] 18.33118 18.3691 18.39507 18.40806 $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(14.66, 15.87, 16.91, 17.66, 18.21, 14.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/56mu31319656701.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.030 0.050 0.000 0.010 -0.010 -0.040 -0.030 0.000 0.02 0.01 0.000 0.010 [2,] 0.045 0.070 0.010 0.035 0.000 0.005 0.005 0.015 0.02 0.02 0.005 0.020 [3,] 0.080 0.090 0.050 0.050 0.020 0.010 0.010 0.030 0.03 0.02 0.010 0.025 [4,] 0.150 0.115 0.075 0.070 0.025 0.035 0.040 0.060 0.04 0.04 0.010 0.100 [5,] 0.180 0.160 0.140 0.070 0.030 0.050 0.050 0.090 0.05 0.05 0.010 0.100 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01729569 0.06312673 0.01118305 0.02909856 0.005070403 -0.007915516 [2,] 0.14270431 0.11687327 0.08881695 0.07090144 0.034929597 0.027915516 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01090144 0.003126726 0.01805632 0.008056323 0.00701408 -0.02660258 [2,] 0.03090144 0.056873274 0.04194368 0.031943677 0.01298592 0.07660258 $out [1] -0.03 0.07 0.09 0.12 0.02 0.70 $group [1] 2 5 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.0300000000000011, 0.0449999999999999, 0.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/63l6q1319656701.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] [,7] [,8] [1,] 14.660 15.250 16.640 17.03 17.390 17.970 18.390 NA [2,] 14.905 15.450 16.665 17.16 17.565 18.080 18.480 NA [3,] 15.035 15.665 16.760 17.26 17.655 18.105 18.510 NA [4,] 15.085 15.760 16.775 17.32 17.825 18.160 18.635 NA [5,] 15.230 15.790 16.810 17.36 17.910 18.200 18.720 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.9529 15.52361 16.70983 17.18702 17.53641 18.06851 18.43930 NA [2,] 15.1171 15.80639 16.81017 17.33298 17.77359 18.14149 18.58070 NA $out [1] 16.49 16.91 17.93 18.21 $group [1] 3 4 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(14.66, 14.905, 15.035, 15.085, 15.23, 15.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7zuyn1319656701.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,] 16.69143 17.03 16.76500 [2,] 16.89857 17.16 16.93625 [3,] 16.99857 17.26 17.04500 [4,] 17.08000 17.32 17.13000 [5,] 17.14571 17.36 17.17750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16.91582 17.18702 16.95663 [2,] 17.08132 17.33298 17.13337 $out [1] 16.91 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.6914285714286, 16.8985714285714, 16.9985714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18rfy1319656701.ps tmp/18rfy1319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/2jbgi1319656701.ps tmp/2jbgi1319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/31mqq1319656701.ps tmp/31mqq1319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/4gyfp1319656701.ps tmp/4gyfp1319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/56mu31319656701.ps tmp/56mu31319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/63l6q1319656701.ps tmp/63l6q1319656701.png",intern=TRUE)) character(0) > try(system("convert tmp/7zuyn1319656701.ps tmp/7zuyn1319656701.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.570 0.240 2.793