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(79,106,101,104,97,93,99,116,104,99,109,93,91,111,105,114,103,105,106,125,103,114,123,102,101,121,120,119,102,118,114,130,113,119,129,116,110,124,133,129,105,127,127,128,133,122,141,127,110,136,132,110,97,96,98,106,98,94,107,98) > 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,] 79 91 101 110 110 NA [2,] 106 111 121 124 136 NA [3,] 101 105 120 133 132 NA [4,] 104 114 119 129 110 NA [5,] 97 103 102 105 97 NA [6,] 93 105 118 127 96 NA [7,] 99 106 114 127 98 NA [8,] 116 125 130 128 106 NA [9,] 104 103 113 133 98 NA [10,] 99 114 119 122 94 NA [11,] 109 123 129 141 107 NA [12,] 93 102 116 127 98 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/1bufj1257363517.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/2dop01257363517.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/39dqi1257363517.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/4vfok1257363517.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,] 79 106 101 104 97 93 98 106 98 94 107 93 [2,] 91 111 105 110 97 96 99 116 103 99 109 98 [3,] 101 121 120 114 102 105 106 125 104 114 123 102 [4,] 110 124 132 119 103 118 114 128 113 119 129 116 [5,] 110 136 133 129 105 127 127 130 113 122 141 127 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 87.57465 111.8142 100.9219 107.6406 97.76042 89.45486 95.40104 [2,] 114.42535 130.1858 139.0781 120.3594 106.23958 120.54514 116.59896 [,8] [,9] [,10] [,11] [,12] [1,] 116.5208 96.93403 99.86805 108.8681 89.28125 [2,] 133.4792 111.06597 128.13195 137.1319 114.71875 $out [1] 133 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(79, 91, 101, 110, 110, 106, 111, 121, 124, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ase81257363517.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,] 93 91.0 113.0 122 94.0 NA [2,] 95 103.0 113.5 123 97.5 NA [3,] 100 105.5 118.5 127 102.0 NA [4,] 105 114.0 120.5 131 110.0 NA [5,] 116 125.0 130.0 141 110.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.43893 100.4828 115.3073 123.3511 96.29867 NA [2,] 104.56107 110.5172 121.6927 130.6489 107.70133 NA $out [1] 79 101 102 110 105 136 132 $group [1] 1 3 3 4 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93, 95, 100, 105, 116, 91, 103, 105.5, 114, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jmq51257363517.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.471008 24.0 6.0 [2,] 10.833691 26.5 11.0 [3,] 12.857305 30.5 16.5 [4,] 14.086890 34.0 20.0 [5,] 14.855975 35.0 27.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.37350 27.0792 12.39504 [2,] 14.34111 33.9208 20.60496 $out [1] 3.633180 8.000000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(9.47100839404126, 10.8336913193059, 12.8573051666251, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bufj1257363517.ps tmp/1bufj1257363517.png") > system("convert tmp/2dop01257363517.ps tmp/2dop01257363517.png") > system("convert tmp/39dqi1257363517.ps tmp/39dqi1257363517.png") > system("convert tmp/4vfok1257363517.ps tmp/4vfok1257363517.png") > system("convert tmp/5ase81257363517.ps tmp/5ase81257363517.png") > system("convert tmp/6jmq51257363517.ps tmp/6jmq51257363517.png") > > > proc.time() user system elapsed 1.035 0.797 1.537