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(106.09,106.19,106.2,106.22,106.22,106.23,106.23,106.61,106.95,107.2,107.56,107.72,107.74,107.8,107.8,108.1,108.14,108.16,108.16,108.16,108.95,110.49,110.71,110.72,110.75,110.82,110.82,110.84,110.84,110.84,110.86,110.92,111.46,112.46,113.04,113.15,113.15,113.21,113.37,113.47,113.71,113.71,113.71,113.8,115.46,117,117.94,118.08,118.08,118.45,118.47,118.49,118.54,118.55,118.55,118.55,119.04,121.37,121.73,121.83,121.83,121.91,122,122.03,122.14,122.14,122.23,122.49,123.02,125.98,126.13,126.39) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 106.09 107.74 110.75 113.15 118.08 121.83 NA [2,] 106.19 107.80 110.82 113.21 118.45 121.91 NA [3,] 106.20 107.80 110.82 113.37 118.47 122.00 NA [4,] 106.22 108.10 110.84 113.47 118.49 122.03 NA [5,] 106.22 108.14 110.84 113.71 118.54 122.14 NA [6,] 106.23 108.16 110.84 113.71 118.55 122.14 NA [7,] 106.23 108.16 110.86 113.71 118.55 122.23 NA [8,] 106.61 108.16 110.92 113.80 118.55 122.49 NA [9,] 106.95 108.95 111.46 115.46 119.04 123.02 NA [10,] 107.20 110.49 112.46 117.00 121.37 125.98 NA [11,] 107.56 110.71 113.04 117.94 121.73 126.13 NA [12,] 107.72 110.72 113.15 118.08 121.83 126.39 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.10 0.06 0.07 0.06 0.37 0.08 NA [2,] 0.01 0.00 0.00 0.16 0.02 0.09 NA [3,] 0.02 0.30 0.02 0.10 0.02 0.03 NA [4,] 0.00 0.04 0.00 0.24 0.05 0.11 NA [5,] 0.01 0.02 0.00 0.00 0.01 0.00 NA [6,] 0.00 0.00 0.02 0.00 0.00 0.09 NA [7,] 0.38 0.00 0.06 0.09 0.00 0.26 NA [8,] 0.34 0.79 0.54 1.66 0.49 0.53 NA [9,] 0.25 1.54 1.00 1.54 2.33 2.96 NA [10,] 0.36 0.22 0.58 0.94 0.36 0.15 NA [11,] 0.16 0.01 0.11 0.14 0.10 0.26 NA [12,] 0.02 0.03 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/1zvpr1319568859.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/2vfar1319568859.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/3udhv1319568859.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/45jxu1319568859.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] [1,] 106.09 106.190 106.200 106.220 106.220 106.230 106.230 106.61 106.95 [2,] 107.74 107.800 107.800 108.100 108.140 108.160 108.160 108.16 108.95 [3,] 111.95 112.015 112.095 112.155 112.275 112.275 112.285 112.36 113.46 [4,] 118.08 118.450 118.470 118.490 118.540 118.550 118.550 118.55 119.04 [5,] 121.83 121.910 122.000 122.030 122.140 122.140 122.230 122.49 123.02 [,10] [,11] [,12] [1,] 107.20 107.56 107.720 [2,] 110.49 110.71 110.720 [3,] 114.73 115.49 115.615 [4,] 121.37 121.73 121.830 [5,] 125.98 126.13 126.390 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.2804 105.1454 105.2125 105.4531 105.5667 105.5731 105.5831 105.6581 [2,] 118.6196 118.8846 118.9775 118.8569 118.9833 118.9769 118.9869 119.0619 [,9] [,10] [,11] [,12] [1,] 106.9516 107.712 108.3817 108.4487 [2,] 119.9684 121.748 122.5983 122.7813 $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(106.09, 107.74, 111.95, 118.08, 121.83, 106.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5azxt1319568859.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.060 0.000 0.020 0.000 0.000 0.00 0.000 0.340 0.25 0.15 0.010 0.00 [2,] 0.060 0.000 0.020 0.000 0.000 0.00 0.000 0.490 1.00 0.22 0.100 0.00 [3,] 0.075 0.015 0.025 0.045 0.005 0.00 0.075 0.535 1.54 0.36 0.125 0.00 [4,] 0.100 0.090 0.100 0.110 0.010 0.02 0.260 0.790 2.33 0.58 0.160 0.02 [5,] 0.100 0.160 0.100 0.240 0.020 0.02 0.380 0.790 2.96 0.94 0.160 0.03 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.04919871 -0.04305291 -0.02660258 -0.02595355 -0.001450323 -0.01290065 [2,] 0.10080129 0.07305291 0.07660258 0.11595355 0.011450323 0.01290065 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.0927084 0.3414903 0.682107 0.1277884 0.08629806 -0.01413195 [2,] 0.2427084 0.7285097 2.397893 0.5922116 0.16370194 0.01413195 $out [1] 0.37 0.30 0.09 1.66 0.26 $group [1] 1 3 6 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0599999999999881, 0.0600000000000023, 0.0749999999999957, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6peq21319568859.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] [1,] 106.090 107.74 110.75 113.15 118.080 121.830 NA [2,] 106.210 107.95 110.83 113.42 118.480 122.015 NA [3,] 106.230 108.16 110.85 113.71 118.550 122.185 NA [4,] 107.075 109.72 111.96 116.23 120.205 124.500 NA [5,] 107.720 110.72 113.15 118.08 121.830 126.390 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 105.8355 107.3527 110.3346 112.4283 117.7632 121.0516 NA [2,] 106.6245 108.9673 111.3654 114.9917 119.3368 123.3184 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(106.09, 106.21, 106.23, 107.075, 107.72, 107.74, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7bizy1319568859.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,] 112.9400 111.950 112.6700 [2,] 113.1508 112.125 112.9425 [3,] 113.2808 112.280 113.0863 [4,] 114.9483 114.095 114.7456 [5,] 116.3150 115.615 116.1100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 112.4610 111.3815 112.2638 [2,] 114.1007 113.1785 113.9087 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(112.94, 113.150833333333, 113.280833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zvpr1319568859.ps tmp/1zvpr1319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/2vfar1319568859.ps tmp/2vfar1319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/3udhv1319568859.ps tmp/3udhv1319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/45jxu1319568859.ps tmp/45jxu1319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/5azxt1319568859.ps tmp/5azxt1319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/6peq21319568859.ps tmp/6peq21319568859.png",intern=TRUE)) character(0) > try(system("convert tmp/7bizy1319568859.ps tmp/7bizy1319568859.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.673 0.325 2.025