R version 2.10.1 (2009-12-14) 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.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.050,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.650,20.830,23.595,22.937,21.814,21.928,21.777,21.383,21.467,22.052,22.680,24.320,24.977,25.204,25.739,26.434,27.525,30.695) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.383 11.353 15.168 15.713 18.391 21.777 NA [2,] 10.431 11.346 16.050 15.594 19.178 21.383 NA [3,] 10.574 11.451 15.839 15.683 18.079 21.467 NA [4,] 10.653 11.964 15.137 16.438 18.483 22.052 NA [5,] 10.805 12.574 14.954 17.032 19.644 22.680 NA [6,] 10.872 13.031 15.648 17.696 19.195 24.320 NA [7,] 10.625 13.812 15.305 17.745 19.650 24.977 NA [8,] 10.407 14.544 15.579 19.394 20.830 25.204 NA [9,] 10.463 14.931 16.348 20.148 23.595 25.739 NA [10,] 10.556 14.886 15.928 20.108 22.937 26.434 NA [11,] 10.646 16.005 16.171 18.584 21.814 27.525 NA [12,] 10.702 17.064 15.937 18.441 21.928 30.695 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/1tidl1275834716.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/239co1275834716.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/3ejcr1275834716.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/4ejcr1275834716.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] [1,] 10.3830 10.431 10.574 10.6530 10.805 10.872 10.625 10.4070 10.463 10.556 [2,] 11.3530 11.346 11.451 11.9640 12.574 13.031 13.812 14.5440 14.931 14.886 [3,] 15.4405 15.822 15.761 15.7875 15.993 16.672 16.525 17.4865 18.248 18.018 [4,] 18.3910 19.178 18.079 18.4830 19.644 19.195 19.650 20.8300 23.595 22.937 [5,] 21.7770 21.383 21.467 22.0520 22.680 24.320 24.977 25.2040 25.739 26.434 [,11] [,12] [1,] 10.6460 10.7020 [2,] 16.0050 15.9370 [3,] 17.3775 17.7525 [4,] 21.8140 21.9280 [5,] 27.5250 30.6950 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.90076 10.77011 11.48573 11.58253 11.43262 12.69602 12.75930 13.43183 [2,] 19.98024 20.87389 20.03627 19.99247 20.55338 20.64798 20.29070 21.54117 [,9] [,10] [,11] [,12] [1,] 12.65944 12.82484 13.63051 13.88811 [2,] 23.83656 23.21116 21.12449 21.61689 $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.383, 11.353, 15.4405, 18.391, 21.777, 10.431, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5ejcr1275834716.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,] 10.3830 11.3460 14.9540 15.5940 18.0790 21.3830 NA [2,] 10.4470 11.7075 15.2365 16.0755 18.8305 21.9145 NA [3,] 10.5995 13.4215 15.7435 17.7205 19.6470 24.6485 NA [4,] 10.6775 14.9085 15.9935 18.9890 21.8710 26.0865 NA [5,] 10.8720 17.0640 16.3480 20.1480 23.5950 30.6950 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.49437 11.96150 15.39823 16.39163 18.26021 22.74562 NA [2,] 10.70463 14.88150 16.08877 19.04937 21.03379 26.55138 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10.383, 10.447, 10.5995, 10.6775, 10.872, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ejcr1275834716.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,] 4.075860 10.8930 4.837500 [2,] 4.272309 11.3965 4.999250 [3,] 4.883829 13.9000 5.314625 [4,] 5.734024 15.5770 5.905000 [5,] 6.746073 19.9930 7.083250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.217131 11.99325 4.901506 [2,] 5.550527 15.80675 5.727744 $out [1] 7.448 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.07586004421153, 4.27230919800349, 4.88382915573425, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tidl1275834716.ps tmp/1tidl1275834716.png",intern=TRUE)) character(0) > try(system("convert tmp/239co1275834716.ps tmp/239co1275834716.png",intern=TRUE)) character(0) > try(system("convert tmp/3ejcr1275834716.ps tmp/3ejcr1275834716.png",intern=TRUE)) character(0) > try(system("convert tmp/4ejcr1275834716.ps tmp/4ejcr1275834716.png",intern=TRUE)) character(0) > try(system("convert tmp/5ejcr1275834716.ps tmp/5ejcr1275834716.png",intern=TRUE)) character(0) > try(system("convert tmp/6ejcr1275834716.ps tmp/6ejcr1275834716.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.190 0.970 1.366