R version 2.10.1 (2009-12-14) 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(133,126,120,114,116,153,162,161,149,139,135,130,127,122,117,112,113,149,157,157,147,137,132,125,123,117,114,111,112,144,150,149,134,123,116,117,111,105,102,95,93,124,130,124,115,106,105,105,101,95,93,84,87,116,120,117,109,105,107,109,109,108,107,99,103,131,137,135,124,118,121,121,118,113,107) > 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] 75 > (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] 7 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 133 127 123 111 101 109 118 [2,] 126 122 117 105 95 108 113 [3,] 120 117 114 102 93 107 107 [4,] 114 112 111 95 84 99 NA [5,] 116 113 112 93 87 103 NA [6,] 153 149 144 124 116 131 NA [7,] 162 157 150 130 120 137 NA [8,] 161 157 149 124 117 135 NA [9,] 149 147 134 115 109 124 NA [10,] 139 137 123 106 105 118 NA [11,] 135 132 116 105 107 121 NA [12,] 130 125 117 105 109 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/rcomp/tmp/12t1a1275892630.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/rcomp/tmp/2vk0v1275892630.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/rcomp/tmp/3vk0v1275892630.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/rcomp/tmp/4vk0v1275892630.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,] 101 95.0 93.0 84 87.0 116.0 120.0 117 109 105.0 105.0 105 [2,] 110 106.5 104.5 95 93.0 124.0 130.0 124 115 106.0 107.0 109 [3,] 118 113.0 107.0 105 107.5 137.5 143.5 142 129 120.5 118.5 119 [4,] 125 119.5 115.5 112 113.0 149.0 157.0 157 147 137.0 132.0 125 [5,] 133 126.0 120.0 114 116.0 153.0 162.0 161 149 139.0 135.0 130 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 109.0422 105.2366 100.4310 94.03445 94.59935 121.3742 126.0841 120.7139 [2,] 126.9578 120.7634 113.5690 115.96555 120.40065 153.6258 160.9159 163.2861 [,9] [,10] [,11] [,12] [1,] 108.3590 100.504 102.3742 108.6795 [2,] 149.6410 140.496 134.6258 129.3205 $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, 110, 118, 125, 133, 95, 106.5, 113, 119.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/55uhy1275892630.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] [1,] 114 112.0 111 93.0 84.0 99.0 107.0 [2,] 123 119.5 115 103.5 94.0 107.5 110.0 [3,] 134 129.5 120 105.5 106.0 119.5 113.0 [4,] 151 148.0 139 119.5 112.5 127.5 115.5 [5,] 162 157.0 150 130.0 120.0 137.0 118.0 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 121.229 116.5010 109.0534 98.2023 97.56203 110.3779 107.9828 [2,] 146.771 142.4990 130.9466 112.7977 114.43797 128.6221 118.0172 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(114, 123, 134, 151, 162, 112, 119.5, 129.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/65uhy1275892630.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,] 9.324826 25.0 11.000 [2,] 10.886629 29.5 14.000 [3,] 12.173590 31.5 18.625 [4,] 15.568549 38.5 24.000 [5,] 17.997222 44.0 28.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.03813 27.39504 14.06393 [2,] 14.30904 35.60496 23.18607 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(9.32482605480558, 10.8866292687882, 12.1735896985629, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/12t1a1275892630.ps tmp/12t1a1275892630.png",intern=TRUE)) character(0) > try(system("convert tmp/2vk0v1275892630.ps tmp/2vk0v1275892630.png",intern=TRUE)) character(0) > try(system("convert tmp/3vk0v1275892630.ps tmp/3vk0v1275892630.png",intern=TRUE)) character(0) > try(system("convert tmp/4vk0v1275892630.ps tmp/4vk0v1275892630.png",intern=TRUE)) character(0) > try(system("convert tmp/55uhy1275892630.ps tmp/55uhy1275892630.png",intern=TRUE)) character(0) > try(system("convert tmp/65uhy1275892630.ps tmp/65uhy1275892630.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 1.030 1.385