R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(11.73,11.74,11.65,11.38,11.53,11.75,11.82,11.83,11.63,11.55,11.4,11.4,11.63,11.46,11.35,11.7,11.52,11.64,11.9,11.73,11.7,11.54,11.97,11.64,11.98,11.79,11.66,11.96,11.83,12.36,12.53,12.55,12.53,12.24,12.34,12.05,12.22,12.23,11.92,12.13,12.1,12.15,12.23,12.08,12.02,11.93,12.16,11.87,11.93,11.79,11.43,11.63,11.93,11.89,11.83,11.59,12.04,11.81,11.9,11.72,11.91,11.94,11.91,11.84,12.01,11.89,11.8,11.7,11.5,11.76,11.61,11.27,11.64,11.39,11.54,11.62,11.59,11.44,11.31,11.56,11.4,11.51,11.5,11.24,11.8) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.73 11.63 11.98 12.22 11.93 11.91 11.64 11.8 [2,] 11.74 11.46 11.79 12.23 11.79 11.94 11.39 NA [3,] 11.65 11.35 11.66 11.92 11.43 11.91 11.54 NA [4,] 11.38 11.70 11.96 12.13 11.63 11.84 11.62 NA [5,] 11.53 11.52 11.83 12.10 11.93 12.01 11.59 NA [6,] 11.75 11.64 12.36 12.15 11.89 11.89 11.44 NA [7,] 11.82 11.90 12.53 12.23 11.83 11.80 11.31 NA [8,] 11.83 11.73 12.55 12.08 11.59 11.70 11.56 NA [9,] 11.63 11.70 12.53 12.02 12.04 11.50 11.40 NA [10,] 11.55 11.54 12.24 11.93 11.81 11.76 11.51 NA [11,] 11.40 11.97 12.34 12.16 11.90 11.61 11.50 NA [12,] 11.40 11.64 12.05 11.87 11.72 11.27 11.24 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/freestat/rcomp/tmp/10jz01249557847.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/freestat/rcomp/tmp/2u1ey1249557847.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/freestat/rcomp/tmp/34f2j1249557847.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/freestat/rcomp/tmp/4oaq91249557847.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,] 11.630 11.390 11.350 11.380 11.52 11.440 11.800 11.560 11.400 11.510 [2,] 11.685 11.600 11.485 11.625 11.56 11.695 11.810 11.645 11.565 11.545 [3,] 11.855 11.790 11.650 11.700 11.83 11.890 11.830 11.730 11.700 11.760 [4,] 11.955 11.865 11.785 11.900 11.97 12.020 12.065 11.955 12.030 11.870 [5,] 12.220 12.230 11.920 12.130 12.10 12.360 12.230 12.080 12.530 12.240 [,11] [,12] [1,] 11.400 11.240 [2,] 11.555 11.335 [3,] 11.900 11.640 [4,] 12.065 11.795 [5,] 12.340 12.050 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.70417 11.63175 11.47084 11.53577 11.58515 11.69592 11.67772 11.54487 [2,] 12.00583 11.94825 11.82916 11.86423 12.07485 12.08408 11.98228 11.91513 [,9] [,10] [,11] [,12] [1,] 11.42231 11.56592 11.59544 11.36530 [2,] 11.97769 11.95408 12.20456 11.91470 $out [1] 12.53 11.31 12.55 $group [1] 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.63, 11.685, 11.855, 11.955, 12.22, 11.39, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/54bgp1249557847.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] [,8] [1,] 11.380 11.350 11.660 11.870 11.430 11.500 11.240 11.8 [2,] 11.465 11.530 11.895 11.975 11.675 11.655 11.395 11.8 [3,] 11.640 11.640 12.145 12.115 11.820 11.820 11.505 11.8 [4,] 11.745 11.715 12.445 12.190 11.915 11.910 11.575 11.8 [5,] 11.830 11.970 12.550 12.230 12.040 12.010 11.640 11.8 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.51229 11.55562 11.89414 12.01694 11.71053 11.70369 11.4229 11.8 [2,] 11.76771 11.72438 12.39586 12.21306 11.92947 11.93631 11.5871 11.8 $out [1] 11.27 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(11.38, 11.465, 11.64, 11.745, 11.83, 11.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/69oss1249557847.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,] 0.1974842 0.570 0.2350 [2,] 0.2438018 0.660 0.2700 [3,] 0.2958610 0.825 0.3175 [4,] 0.3494925 0.965 0.4350 [5,] 0.3917665 1.220 0.5100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.2476548 0.6858875 0.2422424 [2,] 0.3440672 0.9641125 0.3927576 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.197484176581315, 0.243801813621642, 0.295860971207852, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10jz01249557847.ps tmp/10jz01249557847.png") > system("convert tmp/2u1ey1249557847.ps tmp/2u1ey1249557847.png") > system("convert tmp/34f2j1249557847.ps tmp/34f2j1249557847.png") > system("convert tmp/4oaq91249557847.ps tmp/4oaq91249557847.png") > system("convert tmp/54bgp1249557847.ps tmp/54bgp1249557847.png") > system("convert tmp/69oss1249557847.ps tmp/69oss1249557847.png") > > > proc.time() user system elapsed 1.651 1.257 1.991