R version 2.6.2 (2008-02-08) Copyright (C) 2008 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(103.6,103.7,103.8,104,104,104.1,104.2,104.3,104.4,104.5,104.7,104.7,104.9,105,105.2,105.3,105.4,105.5,105.7,105.8,105.9,106,106.1,106.2,106.6,106.8,107,107.1,107.3,107.4,107.6,107.7,107.9,108.2,108.3,108.5,108.92,109.23,109.41,109.65,109.91,110.01,110.2,110.49,110.57,110.72,110.94,111.09,111.28,111.41,111.62,111.76,111.89,112.04,112.12,112.3,112.47,112.59,112.78,112.73,112.99,113.1,113.33,113.38,113.68,113.65,113.81,113.88,114.02,114.25,114.28,114.38,114.73,114.97,115.05,115.29,115.37,115.54,115.76,115.92,116.02,116.21,116.26,116.51) > 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)) > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.6 104.9 106.6 108.92 111.28 112.99 114.73 NA [2,] 103.7 105.0 106.8 109.23 111.41 113.10 114.97 NA [3,] 103.8 105.2 107.0 109.41 111.62 113.33 115.05 NA [4,] 104.0 105.3 107.1 109.65 111.76 113.38 115.29 NA [5,] 104.0 105.4 107.3 109.91 111.89 113.68 115.37 NA [6,] 104.1 105.5 107.4 110.01 112.04 113.65 115.54 NA [7,] 104.2 105.7 107.6 110.20 112.12 113.81 115.76 NA [8,] 104.3 105.8 107.7 110.49 112.30 113.88 115.92 NA [9,] 104.4 105.9 107.9 110.57 112.47 114.02 116.02 NA [10,] 104.5 106.0 108.2 110.72 112.59 114.25 116.21 NA [11,] 104.7 106.1 108.3 110.94 112.78 114.28 116.26 NA [12,] 104.7 106.2 108.5 111.09 112.73 114.38 116.51 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/www/html/rcomp/tmp/17dun1210768723.ps",horizontal=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/www/html/rcomp/tmp/2u9lu1210768723.ps",horizontal=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/www/html/rcomp/tmp/3v0mh1210768723.ps",horizontal=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/www/html/rcomp/tmp/40xg11210768723.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] [1,] 103.600 103.700 103.800 104.00 104.000 104.100 104.200 104.30 104.400 [2,] 105.750 105.900 106.100 106.20 106.350 106.450 106.650 106.75 106.900 [3,] 108.920 109.230 109.410 109.65 109.910 110.010 110.200 110.49 110.570 [4,] 112.135 112.255 112.475 112.57 112.785 112.845 112.965 113.09 113.245 [5,] 114.730 114.970 115.050 115.29 115.370 115.540 115.760 115.92 116.020 [,10] [,11] [,12] [1,] 104.50 104.70 104.700 [2,] 107.10 107.20 107.350 [3,] 110.72 110.94 111.090 [4,] 113.42 113.53 113.555 [5,] 116.21 116.26 116.510 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.1070 105.4349 105.6030 105.8459 106.0671 106.191 106.4288 106.7039 [2,] 112.7330 113.0251 113.2170 113.4541 113.7529 113.829 113.9712 114.2761 [,9] [,10] [,11] [,12] [1,] 106.7809 106.9458 107.1598 107.3845 [2,] 114.3591 114.4942 114.7202 114.7955 $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(103.6, 105.75, 108.92, 112.135, 114.73, 103.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qmxl1210768723.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] [,8] [1,] 103.60 104.90 106.60 108.920 111.28 112.990 114.730 NA [2,] 103.90 105.25 107.05 109.530 111.69 113.355 115.170 NA [3,] 104.15 105.60 107.50 110.105 112.08 113.745 115.650 NA [4,] 104.45 105.95 108.05 110.645 112.53 114.135 116.115 NA [5,] 104.70 106.20 108.50 111.090 112.78 114.380 116.510 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.8991 105.2807 107.0439 109.5964 111.6969 113.3892 115.2190 NA [2,] 104.4009 105.9193 107.9561 110.6136 112.4631 114.1008 116.0810 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(103.6, 103.9, 104.15, 104.45, 104.7, 104.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6u5611210768723.ps",horizontal=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,] 4.196978 11.13 6.315 [2,] 4.226825 11.28 6.325 [3,] 4.278025 11.50 6.350 [4,] 4.303116 11.62 6.380 [5,] 4.331519 11.81 6.435 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.243228 11.34492 6.324914 [2,] 4.312821 11.65508 6.375086 $out [1] 6.205 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.19697793769801, 4.22682496674461, 4.27802456906027, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17dun1210768723.ps tmp/17dun1210768723.png") > system("convert tmp/2u9lu1210768723.ps tmp/2u9lu1210768723.png") > system("convert tmp/3v0mh1210768723.ps tmp/3v0mh1210768723.png") > system("convert tmp/40xg11210768723.ps tmp/40xg11210768723.png") > system("convert tmp/5qmxl1210768723.ps tmp/5qmxl1210768723.png") > system("convert tmp/6u5611210768723.ps tmp/6u5611210768723.png") > > > proc.time() user system elapsed 1.285 0.796 2.950