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(10.812,10.738,10.171,9.721,9.897,9.828,9.924,10.371,10.846,10.413,10.709,10.662,10.57,10.297,10.635,10.872,10.296,10.383,10.431,10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.05,15.839,15.137,14.954,15.648,15.305,15.579,16.348,15.928,16.171,15.937,15.713,15.594,15.683,16.438,17.032,17.696,17.745,19.394,20.148,20.108,18.584,18.441,18.391,19.178,18.079,18.483,19.644,19.195,19.65,20.83) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.812 10.570 10.407 14.544 15.579 19.394 20.83 [2,] 10.738 10.297 10.463 14.931 16.348 20.148 NA [3,] 10.171 10.635 10.556 14.886 15.928 20.108 NA [4,] 9.721 10.872 10.646 16.005 16.171 18.584 NA [5,] 9.897 10.296 10.702 17.064 15.937 18.441 NA [6,] 9.828 10.383 11.353 15.168 15.713 18.391 NA [7,] 9.924 10.431 11.346 16.050 15.594 19.178 NA [8,] 10.371 10.574 11.451 15.839 15.683 18.079 NA [9,] 10.846 10.653 11.964 15.137 16.438 18.483 NA [10,] 10.413 10.805 12.574 14.954 17.032 19.644 NA [11,] 10.709 10.872 13.031 15.648 17.696 19.195 NA [12,] 10.662 10.625 13.812 15.305 17.745 19.650 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/1dsph1244287683.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/2ehmw1244287683.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/3ms651244287683.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/4096a1244287683.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] [1,] 10.4070 10.2970 10.1710 9.7210 9.8970 9.8280 9.924 10.371 10.6530 [2,] 10.6910 10.4630 10.5560 10.6460 10.2960 10.3830 10.431 10.574 10.8460 [3,] 14.5440 12.8345 12.7605 13.4385 13.3195 13.2605 13.470 13.567 13.5505 [4,] 17.4865 16.3480 15.9280 16.1710 17.0640 15.7130 16.050 15.839 16.4380 [5,] 20.8300 20.1480 20.1080 18.5840 18.4410 18.3910 19.178 18.079 18.4830 [,10] [,11] [,12] [1,] 10.413 10.7090 10.6250 [2,] 10.805 10.8720 10.6620 [3,] 13.764 14.3395 14.5585 [4,] 17.032 17.6960 17.7450 [5,] 19.644 19.1950 19.6500 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.48584 9.038485 9.295386 9.874697 8.953921 9.822478 9.845564 [2,] 18.60216 16.630515 16.225614 17.002303 17.685079 16.698522 17.094436 [,8] [,9] [,10] [,11] [,12] [1,] 10.17090 9.94348 9.747384 9.9378 9.989736 [2,] 16.96310 17.15752 17.780616 18.7412 19.127264 $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(10.407, 10.691, 14.544, 17.4865, 20.83, 10.297, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5efa21244287683.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,] 9.7210 10.2960 10.4070 14.5440 15.579 18.0790 20.83 [2,] 9.9105 10.4070 10.6010 14.9425 15.698 18.4620 20.83 [3,] 10.3920 10.5995 11.3495 15.2365 16.054 19.1865 20.83 [4,] 10.7235 10.7290 12.2690 15.9220 16.735 19.6470 20.83 [5,] 10.8460 10.8720 13.8120 17.0640 17.745 20.1480 20.83 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.02119 10.45263 10.58871 14.78974 15.58102 18.64601 20.83 [2,] 10.76281 10.74637 12.11029 15.68326 16.52698 19.72699 20.83 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(9.721, 9.9105, 10.392, 10.7235, 10.846, 10.296, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lowy1244287683.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,] 3.243180 7.7080 4.951250 [2,] 3.501987 8.5150 5.049250 [3,] 3.691005 8.9440 5.351625 [4,] 3.910893 9.5525 5.728875 [5,] 4.299756 10.4230 6.384750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.504500 8.47079 5.041643 [2,] 3.877510 9.41721 5.661607 $out [1] 6.7955 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.24318000836627, 3.50198668664591, 3.69100543715797, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dsph1244287683.ps tmp/1dsph1244287683.png") > system("convert tmp/2ehmw1244287683.ps tmp/2ehmw1244287683.png") > system("convert tmp/3ms651244287683.ps tmp/3ms651244287683.png") > system("convert tmp/4096a1244287683.ps tmp/4096a1244287683.png") > system("convert tmp/5efa21244287683.ps tmp/5efa21244287683.png") > system("convert tmp/6lowy1244287683.ps tmp/6lowy1244287683.png") > > > proc.time() user system elapsed 1.002 0.803 1.448