R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(100,108,125,109,92,126,63,51,129,115,96,101,106,93,120,96,99,129,62,56,119,92,90,105,102,99,107,90,90,108,62,53,97,96,103,88,100,95,109,92,96,100,62,64,110,119,93,84,101,92,91,110,85,120,74,59,121,124,100,121) > 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)) > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100 106 102 100 101 NA [2,] 108 93 99 95 92 NA [3,] 125 120 107 109 91 NA [4,] 109 96 90 92 110 NA [5,] 92 99 90 96 85 NA [6,] 126 129 108 100 120 NA [7,] 63 62 62 62 74 NA [8,] 51 56 53 64 59 NA [9,] 129 119 97 110 121 NA [10,] 115 92 96 119 124 NA [11,] 96 90 103 93 100 NA [12,] 101 105 88 84 121 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/1fz9x1258114517.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/2t5sx1258114517.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/31slt1258114517.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/4odri1258114517.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] [,10] [,11] [,12] [1,] 100 92 91 90 85 100 62 51 97 92 90 84 [2,] 100 93 107 92 90 108 62 53 110 96 93 88 [3,] 101 95 109 96 92 120 62 56 119 115 96 101 [4,] 102 99 120 109 96 126 63 59 121 119 100 105 [5,] 102 108 125 110 99 129 63 64 129 124 103 121 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.5868 90.76042 99.81423 83.98784 87.76042 107.2812 61.2934 51.76042 [2,] 102.4132 99.23958 118.18577 108.01216 96.23958 132.7188 62.7066 60.23958 [,9] [,10] [,11] [,12] [1,] 111.2274 98.74826 91.05382 88.98784 [2,] 126.7726 131.25174 100.94618 113.01216 $out [1] 106 74 $group [1] 1 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(100, 100, 101, 102, 102, 92, 93, 95, 99, 108, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5hxah1258114517.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] [1,] 63.0 62.0 88.0 64.0 59.0 NA [2,] 94.0 91.0 89.0 88.0 88.0 NA [3,] 104.5 97.5 96.5 95.5 100.5 NA [4,] 120.0 112.5 102.5 104.5 120.5 NA [5,] 129.0 129.0 108.0 119.0 124.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 92.64123 87.6937 90.34256 87.97424 85.67653 NA [2,] 116.35877 107.3063 102.65744 103.02576 115.32347 NA $out [1] 51 56 62 53 62 $group [1] 1 2 3 3 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(63, 94, 104.5, 120, 129, 62, 91, 97.5, 112.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fz391258114517.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,] 2.489980 6 1 [2,] 5.248755 13 6 [3,] 7.990066 18 9 [4,] 12.731694 32 17 [5,] 14.720734 37 23 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.577047 9.333972 3.982826 [2,] 11.403084 26.666028 14.017174 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.48997991959775, 5.24875536081544, 7.99006560449467, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fz9x1258114517.ps tmp/1fz9x1258114517.png") > system("convert tmp/2t5sx1258114517.ps tmp/2t5sx1258114517.png") > system("convert tmp/31slt1258114517.ps tmp/31slt1258114517.png") > system("convert tmp/4odri1258114517.ps tmp/4odri1258114517.png") > system("convert tmp/5hxah1258114517.ps tmp/5hxah1258114517.png") > system("convert tmp/6fz391258114517.ps tmp/6fz391258114517.png") > > > proc.time() user system elapsed 1.040 0.832 1.437