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(117.87,117.74,117.61,117.55,117.06,117.08,117.21,117.58,117.27,117.14,116.52,116.16,114.79,114.97,114.66,114.3,114.48,114.96,115.44,116.38,116.5,116.2,116.37,116.46,115.07,115.03,115.15,114.71,114.67,115.49,114.65,114.92,114.17,112.8,112.28,112.05,111.03,110.4,109.08,107.89,107.26,107.76,107.32,107.15,108.04,106.52,106.62,106.47,105.46,106.13,105.15,105.39,104.57,104.29,104.09,104.51,103.39,102.71,102.62,101.94,101.65,101.86,101.27,101.21,102.15,102.07,102.8,103.39,102.71,102.65,101.12,100.29) > 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)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[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,] 117.87 114.79 115.07 111.03 105.46 101.65 NA [2,] 117.74 114.97 115.03 110.40 106.13 101.86 NA [3,] 117.61 114.66 115.15 109.08 105.15 101.27 NA [4,] 117.55 114.30 114.71 107.89 105.39 101.21 NA [5,] 117.06 114.48 114.67 107.26 104.57 102.15 NA [6,] 117.08 114.96 115.49 107.76 104.29 102.07 NA [7,] 117.21 115.44 114.65 107.32 104.09 102.80 NA [8,] 117.58 116.38 114.92 107.15 104.51 103.39 NA [9,] 117.27 116.50 114.17 108.04 103.39 102.71 NA [10,] 117.14 116.20 112.80 106.52 102.71 102.65 NA [11,] 116.52 116.37 112.28 106.62 102.62 101.12 NA [12,] 116.16 116.46 112.05 106.47 101.94 100.29 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/wessaorg/rcomp/tmp/1vg5u1322499993.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2qqxc1322499993.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3vogj1322499993.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/48xly1322499993.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.65 101.860 101.27 101.210 102.15 102.07 102.800 103.390 102.710 102.65 [2,] 105.46 106.130 105.15 105.390 104.57 104.29 104.090 104.510 103.390 102.71 [3,] 112.91 112.685 111.87 111.095 110.87 111.36 110.985 111.035 111.105 109.66 [4,] 115.07 115.030 115.15 114.710 114.67 115.49 115.440 116.380 116.500 116.20 [5,] 117.87 117.740 117.61 117.550 117.06 117.08 117.210 117.580 117.270 117.14 [,11] [,12] [1,] 101.12 100.29 [2,] 102.62 101.94 [3,] 109.45 109.26 [4,] 116.37 116.16 [5,] 116.52 116.46 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.7112 106.9442 105.4197 105.0833 104.3552 104.1356 103.6639 103.3785 [2,] 119.1088 118.4258 118.3203 117.1067 117.3848 118.5844 118.3061 118.6915 [,9] [,10] [,11] [,12] [1,] 102.6486 100.9585 100.5808 100.0876 [2,] 119.5614 118.3615 118.3192 118.4324 $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(101.65, 105.46, 112.91, 115.07, 117.87, 101.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5n97o1322499993.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,] 116.520 114.300 112.050 106.470 101.94 100.290 NA [2,] 117.070 114.725 113.485 106.885 103.05 101.240 NA [3,] 117.240 115.205 114.690 107.540 104.40 101.965 NA [4,] 117.595 116.375 115.050 108.560 105.27 102.680 NA [5,] 117.870 116.500 115.490 111.030 106.13 103.390 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 117.0005 114.4524 113.9762 106.776 103.3874 101.3082 NA [2,] 117.4795 115.9576 115.4038 108.304 105.4126 102.6218 NA $out [1] 116.16 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(116.52, 117.07, 117.24, 117.595, 117.87, 114.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6907l1322499993.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 6.083471 14.190 7.81750 [2,] 6.269040 14.525 8.74375 [3,] 6.377010 15.205 10.27250 [4,] 6.544653 16.195 11.52625 [5,] 6.777887 16.340 12.06000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.251300 14.4433 9.003383 [2,] 6.502719 15.9667 11.541617 $out [1] 7.046448 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.08347077470309, 6.26903968900788, 6.37700956448899, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vg5u1322499993.ps tmp/1vg5u1322499993.png",intern=TRUE)) character(0) > try(system("convert tmp/2qqxc1322499993.ps tmp/2qqxc1322499993.png",intern=TRUE)) character(0) > try(system("convert tmp/3vogj1322499993.ps tmp/3vogj1322499993.png",intern=TRUE)) character(0) > try(system("convert tmp/48xly1322499993.ps tmp/48xly1322499993.png",intern=TRUE)) character(0) > try(system("convert tmp/5n97o1322499993.ps tmp/5n97o1322499993.png",intern=TRUE)) character(0) > try(system("convert tmp/6907l1322499993.ps tmp/6907l1322499993.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.353 0.296 1.656