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(7.24,7.52,7.57,7.59,7.58,7.55,7.52,7.55,7.62,7.64,7.68,7.69,7.7,7.6,7.51,7.66,7.69,7.66,7.7,7.72,7.74,7.76,7.72,7.73,7.75,8.1,8.22,8.32,8.07,8.18,8.33,8.34,8.25,8.36,8.36,8.34,8.41,8.39,8.43,8.44,8.49,8.47,8.53,8.52,8.51,8.53,8.54,8.53,8.47,8.63,8.67,8.73,8.57,8.55,8.63,8.65,8.44,8.62,8.37,8.59,8.84,8.72,8.8,8.69,8.68,8.57,8.85,8.85,8.85,8.93,8.75,8.78,8.77,9.03,9.01,9.07,8.99,9.02,8.99,8.98,8.94,8.94,8.75,8.86) > 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,] 7.24 7.70 7.75 8.41 8.47 8.84 8.77 NA [2,] 7.52 7.60 8.10 8.39 8.63 8.72 9.03 NA [3,] 7.57 7.51 8.22 8.43 8.67 8.80 9.01 NA [4,] 7.59 7.66 8.32 8.44 8.73 8.69 9.07 NA [5,] 7.58 7.69 8.07 8.49 8.57 8.68 8.99 NA [6,] 7.55 7.66 8.18 8.47 8.55 8.57 9.02 NA [7,] 7.52 7.70 8.33 8.53 8.63 8.85 8.99 NA [8,] 7.55 7.72 8.34 8.52 8.65 8.85 8.98 NA [9,] 7.62 7.74 8.25 8.51 8.44 8.85 8.94 NA [10,] 7.64 7.76 8.36 8.53 8.62 8.93 8.94 NA [11,] 7.68 7.72 8.36 8.54 8.37 8.75 8.75 NA [12,] 7.69 7.73 8.34 8.53 8.59 8.78 8.86 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/yougetitorg/rcomp/tmp/1tjbf1304513656.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/yougetitorg/rcomp/tmp/2n0271304513656.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/yougetitorg/rcomp/tmp/3fzt61304513656.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/yougetitorg/rcomp/tmp/4386o1304513656.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,] 7.240 7.520 7.510 7.59 7.580 7.55 7.520 7.55 7.620 7.640 7.680 7.690 [2,] 7.725 7.850 7.895 7.99 7.880 7.92 8.015 8.03 7.995 8.060 8.040 8.035 [3,] 8.410 8.390 8.430 8.44 8.490 8.47 8.530 8.52 8.440 8.530 8.370 8.530 [4,] 8.620 8.675 8.735 8.71 8.625 8.56 8.740 8.75 8.680 8.775 8.645 8.685 [5,] 8.840 9.030 9.010 9.07 8.990 9.02 8.990 8.98 8.940 8.940 8.750 8.860 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.87552 7.897323 7.928366 8.010028 8.045098 8.087802 8.097042 8.090028 [2,] 8.94448 8.882677 8.931634 8.869972 8.934902 8.852198 8.962958 8.949972 [,9] [,10] [,11] [,12] [1,] 8.030929 8.103014 8.008704 8.14183 [2,] 8.849071 8.956986 8.731296 8.91817 $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(7.24, 7.725, 8.41, 8.62, 8.84, 7.52, 7.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5o3e41304513656.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,] 7.520 7.600 8.070 8.390 8.370 8.570 8.750 NA [2,] 7.535 7.660 8.140 8.435 8.510 8.705 8.900 NA [3,] 7.575 7.700 8.285 8.500 8.605 8.790 8.985 NA [4,] 7.630 7.725 8.340 8.530 8.640 8.850 9.015 NA [5,] 7.690 7.760 8.360 8.540 8.730 8.930 9.070 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.53167 7.670353 8.193779 8.45667 8.545706 8.723865 8.932548 NA [2,] 7.61833 7.729647 8.376221 8.54333 8.664294 8.856135 9.037452 NA $out [1] 7.24 7.51 7.75 $group [1] 1 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(7.52, 7.535, 7.575, 7.63, 7.69, 7.6, 7.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/60wut1304513656.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,] 0.4455708 1.07 0.6050 [2,] 0.5140845 1.31 0.6675 [3,] 0.5378014 1.45 0.7200 [4,] 0.5659287 1.49 0.7850 [5,] 0.6080962 1.60 0.8950 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5141549 1.367901 0.6664075 [2,] 0.5614479 1.532099 0.7735925 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.445570794973519, 0.514084533641023, 0.537801386936054, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tjbf1304513656.ps tmp/1tjbf1304513656.png",intern=TRUE)) character(0) > try(system("convert tmp/2n0271304513656.ps tmp/2n0271304513656.png",intern=TRUE)) character(0) > try(system("convert tmp/3fzt61304513656.ps tmp/3fzt61304513656.png",intern=TRUE)) character(0) > try(system("convert tmp/4386o1304513656.ps tmp/4386o1304513656.png",intern=TRUE)) character(0) > try(system("convert tmp/5o3e41304513656.ps tmp/5o3e41304513656.png",intern=TRUE)) character(0) > try(system("convert tmp/60wut1304513656.ps tmp/60wut1304513656.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.300 1.030 1.821