R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(43,30,42,23,19,19,36,20,27,24,23,26,31,51,39,32,30,46,31,31,40,29,43,17,53,47,49,44,48,51,47,44,33,47,41,36,46,24,17,22,30,24,18,24,24,28,19,22,26,14,16,21,15,23,29,17,24,18,22,8,26,22,34,25,20,35,38,24,14,25,31,17,32,27,30,19,36,27,28,38,26,25,30,27) > 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,] 43 31 53 46 26 26 32 NA [2,] 30 51 47 24 14 22 27 NA [3,] 42 39 49 17 16 34 30 NA [4,] 23 32 44 22 21 25 19 NA [5,] 19 30 48 30 15 20 36 NA [6,] 19 46 51 24 23 35 27 NA [7,] 36 31 47 18 29 38 28 NA [8,] 20 31 44 24 17 24 38 NA [9,] 27 40 33 24 24 14 26 NA [10,] 24 29 47 28 18 25 25 NA [11,] 23 43 41 19 22 31 30 NA [12,] 26 17 36 22 8 17 27 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/wessaorg/rcomp/tmp/1rdw01322656836.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2cfm81322656836.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3c88g1322656836.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4qa3n1322656836.ps",horizontal=F,onefile=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,] 26.0 14.0 16.0 19.0 15.0 19.0 18.0 17.0 24 24.0 19.0 8.0 [2,] 28.5 23.0 23.5 21.5 19.5 23.5 28.5 22.0 24 24.5 22.5 17.0 [3,] 32.0 27.0 34.0 23.0 30.0 27.0 31.0 24.0 26 25.0 30.0 22.0 [4,] 44.5 38.5 40.5 28.5 33.0 40.5 37.0 34.5 30 28.5 36.0 26.5 [5,] 53.0 51.0 49.0 32.0 48.0 51.0 47.0 44.0 33 29.0 43.0 36.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22.44506 17.74365 23.84787 18.81971 21.93802 16.84787 25.92394 16.5352 [2,] 41.55494 36.25635 44.15213 27.18029 38.06198 37.15213 36.07606 31.4648 [,9] [,10] [,11] [,12] [1,] 22.4169 22.61126 21.93802 16.32675 [2,] 29.5831 27.38874 38.06198 27.67325 $out [1] 44 40 14 47 18 $group [1] 4 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(26, 28.5, 32, 44.5, 53, 14, 23, 27, 38.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5pusj1322656836.ps",horizontal=F,onefile=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,] 19.0 17.0 36.0 17.0 8.0 14.0 25.0 NA [2,] 21.5 30.5 42.5 20.5 15.5 21.0 26.5 NA [3,] 25.0 31.5 47.0 24.0 19.5 25.0 27.5 NA [4,] 33.0 41.5 48.5 26.0 23.5 32.5 31.0 NA [5,] 43.0 51.0 53.0 30.0 29.0 38.0 36.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.75477 26.48283 44.26336 21.49141 15.85115 19.75477 25.44752 NA [2,] 30.24523 36.51717 49.73664 26.50859 23.14885 30.24523 29.55248 NA $out [1] 33 46 19 38 $group [1] 3 4 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(19, 21.5, 25, 33, 43, 17, 30.5, 31.5, 41.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6coxe1322656836.ps",horizontal=F,onefile=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,] 8.091736 24.0 4.00 [2,] 9.031487 26.5 7.75 [3,] 9.598446 28.5 13.00 [4,] 11.860907 32.5 15.75 [5,] 13.487207 37.0 17.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.307928 25.76336 9.351146 [2,] 10.888964 31.23664 16.648854 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.09173593712687, 9.03148670138726, 9.59844617022537, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rdw01322656836.ps tmp/1rdw01322656836.png",intern=TRUE)) character(0) > try(system("convert tmp/2cfm81322656836.ps tmp/2cfm81322656836.png",intern=TRUE)) character(0) > try(system("convert tmp/3c88g1322656836.ps tmp/3c88g1322656836.png",intern=TRUE)) character(0) > try(system("convert tmp/4qa3n1322656836.ps tmp/4qa3n1322656836.png",intern=TRUE)) character(0) > try(system("convert tmp/5pusj1322656836.ps tmp/5pusj1322656836.png",intern=TRUE)) character(0) > try(system("convert tmp/6coxe1322656836.ps tmp/6coxe1322656836.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.507 0.335 1.864