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(106.5789,101.3158,98.68421,100,102.6316,102.6316,102.6316,98.68421,98.68421,93.42105,98.68421,98.68421,100,101.3158,101.3158,103.9474,106.5789,107.8947,107.8947,107.8947,103.9474,96.05263,90.78947,86.84211,88.15789,90.78947,92.10526,93.42105,94.73684,93.42105,90.78947,92.10526,89.47368,84.21053,88.15789,86.84211,84.21053,82.89474,81.57895,85.52632,89.47368,89.47368,84.21053,80.26316,76.31579,80.26316,94.73684,96.05263,90.78947,80.26316,76.31579,81.57895,93.42105,101.3158,103.9474,101.3158,97.36842,98.68421,105.2632,106.5789) > 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,] 106.57890 100.00000 88.15789 84.21053 90.78947 NA [2,] 101.31580 101.31580 90.78947 82.89474 80.26316 NA [3,] 98.68421 101.31580 92.10526 81.57895 76.31579 NA [4,] 100.00000 103.94740 93.42105 85.52632 81.57895 NA [5,] 102.63160 106.57890 94.73684 89.47368 93.42105 NA [6,] 102.63160 107.89470 93.42105 89.47368 101.31580 NA [7,] 102.63160 107.89470 90.78947 84.21053 103.94740 NA [8,] 98.68421 107.89470 92.10526 80.26316 101.31580 NA [9,] 98.68421 103.94740 89.47368 76.31579 97.36842 NA [10,] 93.42105 96.05263 84.21053 80.26316 98.68421 NA [11,] 98.68421 90.78947 88.15789 94.73684 105.26320 NA [12,] 98.68421 86.84211 86.84211 96.05263 106.57890 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/1u8fv1261585497.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/258nq1261585497.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/314z51261585497.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/4xu8s1261585497.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] [1,] 84.21053 80.26316 76.31579 81.57895 89.47368 89.47368 84.21053 [2,] 88.15789 82.89474 81.57895 85.52632 93.42105 93.42105 90.78947 [3,] 90.78947 90.78947 92.10526 93.42105 94.73684 101.31580 102.63160 [4,] 100.00000 101.31580 98.68421 100.00000 102.63160 102.63160 103.94740 [5,] 106.57890 101.31580 101.31580 103.94740 106.57890 107.89470 107.89470 [,8] [,9] [,10] [,11] [,12] [1,] 80.26316 76.31579 80.26316 88.15789 86.84211 [2,] 92.10526 89.47368 84.21053 90.78947 86.84211 [3,] 98.68421 97.36842 93.42105 94.73684 96.05263 [4,] 101.31580 98.68421 96.05263 98.68421 98.68421 [5,] 107.89470 103.94740 98.68421 105.26320 106.57890 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.42186 77.7732 80.01873 83.19398 88.22869 94.80765 93.33424 [2,] 99.15708 103.8057 104.19179 103.64812 101.24499 107.82395 111.92896 [,8] [,9] [,10] [,11] [,12] [1,] 92.17607 90.86028 85.05345 89.15844 87.68503 [2,] 105.19235 103.87656 101.78865 100.31524 104.42023 $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(84.21053, 88.15789, 90.78947, 100, 106.5789, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xu8h1261585497.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.42105 86.84211 84.21053 76.31579 76.31579 NA [2,] 98.68421 98.02631 88.15789 80.92105 86.18421 NA [3,] 99.34211 102.63160 90.78947 84.21053 98.02631 NA [4,] 102.63160 107.23680 92.76315 89.47368 102.63160 NA [5,] 106.57890 107.89470 94.73684 96.05263 106.57890 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.54167 98.43064 88.68898 80.30962 90.52455 NA [2,] 101.14254 106.83256 92.88996 88.11144 105.52808 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93.42105, 98.68421, 99.342105, 102.6316, 106.5789, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67ltr1261585497.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,] 6.747849 17.10522 7.894740 [2,] 7.662443 18.42103 9.210545 [3,] 9.284352 21.71050 11.842100 [4,] 10.222603 24.34209 13.815805 [5,] 10.794288 27.63161 18.421060 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.116646 19.00987 9.74161 [2,] 10.452058 24.41114 13.94259 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.74784944712536, 7.66244268736468, 9.28435223062296, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1u8fv1261585497.ps tmp/1u8fv1261585497.png",intern=TRUE)) character(0) > try(system("convert tmp/258nq1261585497.ps tmp/258nq1261585497.png",intern=TRUE)) character(0) > try(system("convert tmp/314z51261585497.ps tmp/314z51261585497.png",intern=TRUE)) character(0) > try(system("convert tmp/4xu8s1261585497.ps tmp/4xu8s1261585497.png",intern=TRUE)) character(0) > try(system("convert tmp/5xu8h1261585497.ps tmp/5xu8h1261585497.png",intern=TRUE)) character(0) > try(system("convert tmp/67ltr1261585497.ps tmp/67ltr1261585497.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.058 0.815 1.415