R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(94,93,92,90,110,109,94,84,85,85,86,88,93,94,90,91,104,103,88,79,82,88,93,89,94,96,94,92,113,122,107,98,103,110,113,110,123,124,118,117,139,146,134,121,123,122,127,122,139,136,127,123,140,146,138,120,122,115,115,102,119,114,108,102,121,109,102,95,98,92,94,90,113,111,103,90,108,99,95,91,85,72,90,90,114,115,104,93,101,90,79,75,71,61,84,87,107,99,93,74,87,71,67,61,63,52,80,84,102,93,87,72,83,72,66,64,64,47,77,79) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 94 93 94 123 139 119 113 114 107 102 NA [2,] 93 94 96 124 136 114 111 115 99 93 NA [3,] 92 90 94 118 127 108 103 104 93 87 NA [4,] 90 91 92 117 123 102 90 93 74 72 NA [5,] 110 104 113 139 140 121 108 101 87 83 NA [6,] 109 103 122 146 146 109 99 90 71 72 NA [7,] 94 88 107 134 138 102 95 79 67 66 NA [8,] 84 79 98 121 120 95 91 75 61 64 NA [9,] 85 82 103 123 122 98 85 71 63 64 NA [10,] 85 88 110 122 115 92 72 61 52 47 NA [11,] 86 93 113 127 115 94 90 84 80 77 NA [12,] 88 89 110 122 102 90 90 87 84 79 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/1w6x81282091677.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/2pfwt1282091677.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/3pfwt1282091677.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/4zodv1282091677.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,] 93 93 87.0 72.0 83 71 66.0 61.0 63 47.0 77.0 79.0 [2,] 94 94 92.0 90.0 101 90 79.0 75.0 71 61.0 84.0 87.0 [3,] 110 105 98.5 91.5 109 106 94.5 87.5 85 86.5 91.5 89.5 [4,] 119 115 108.0 102.0 121 122 107.0 98.0 103 110.0 113.0 102.0 [5,] 139 136 127.0 117.0 140 146 138.0 121.0 123 122.0 127.0 122.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.509 94.50756 90.50576 85.50432 99.0072 90.01152 80.51008 76.00828 [2,] 122.491 115.49244 106.49424 97.49568 118.9928 121.98848 108.48992 98.99172 [,9] [,10] [,11] [,12] [1,] 69.01152 62.01765 77.01044 82.0054 [2,] 100.98848 110.98235 105.98956 96.9946 $out [1] 123 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93, 94, 110, 119, 139, 93, 94, 105, 115, 136, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5zodv1282091677.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] [,9] [,10] [,11] [1,] 84.0 82.0 92.0 117.0 102.0 90.0 72.0 61.0 52 47.0 NA [2,] 85.5 88.0 95.0 121.5 117.5 94.5 90.0 77.0 65 65.0 NA [3,] 91.0 90.5 105.0 123.0 125.0 102.0 93.0 88.5 77 74.5 NA [4,] 94.0 93.5 111.5 130.5 138.5 111.5 105.5 102.5 90 85.0 NA [5,] 94.0 94.0 122.0 139.0 146.0 121.0 113.0 115.0 107 102.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 87.1231 87.99141 97.47424 118.8950 115.4218 94.24619 85.93035 76.86928 [2,] 94.8769 93.00859 112.52576 127.1050 134.5782 109.75381 100.06965 100.13072 [,9] [,10] [,11] [1,] 65.59733 65.37787 NA [2,] 88.40267 83.62213 NA $out [1] 110 109 104 103 79 146 $group [1] 1 1 2 2 2 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(84, 85.5, 91, 94, 94, 82, 88, 90.5, 93.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6zodv1282091677.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,] 13.05714 40.0 9.75 [2,] 14.89237 44.5 16.00 [3,] 17.86429 54.0 21.50 [4,] 23.14110 66.0 25.50 [5,] 26.30251 75.0 28.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 14.10199 44.19371 17.16699 [2,] 21.62659 63.80629 25.83301 $out [1] 41.75 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(13.0571393838348, 14.8923723555344, 17.8642922373672, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1w6x81282091677.ps tmp/1w6x81282091677.png",intern=TRUE)) character(0) > try(system("convert tmp/2pfwt1282091677.ps tmp/2pfwt1282091677.png",intern=TRUE)) character(0) > try(system("convert tmp/3pfwt1282091677.ps tmp/3pfwt1282091677.png",intern=TRUE)) character(0) > try(system("convert tmp/4zodv1282091677.ps tmp/4zodv1282091677.png",intern=TRUE)) character(0) > try(system("convert tmp/5zodv1282091677.ps tmp/5zodv1282091677.png",intern=TRUE)) character(0) > try(system("convert tmp/6zodv1282091677.ps tmp/6zodv1282091677.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.79 1.23 3.01