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(2.06,2.06,2.05,2.04,2.04,2.03,2.03,2.03,2.02,2.02,2.02,2.02,2.01,2.01,2.01,2,2,1.99,1.99,1.99,1.98,1.97,1.97,1.96,1.96,1.96,1.96,1.95,1.94,1.94,1.93,1.93,1.93,1.92,1.92,1.9,1.9,1.9,1.9,1.89,1.88,1.88,1.87,1.86,1.86,1.85,1.83,1.82,1.8,1.8,1.79,1.78,1.78,1.78,1.77,1.77,1.76,1.75,1.75,1.75,1.75,1.75,1.74,1.74,1.74,1.74,1.73,1.73,1.73,1.73,1.73,1.72,1.71,1.71,1.71,1.7,1.7,1.7,1.7,1.7,1.69,1.68,1.67,1.65,1.61) > 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,] 2.06 2.01 1.96 1.90 1.80 1.75 1.71 1.61 [2,] 2.06 2.01 1.96 1.90 1.80 1.75 1.71 NA [3,] 2.05 2.01 1.96 1.90 1.79 1.74 1.71 NA [4,] 2.04 2.00 1.95 1.89 1.78 1.74 1.70 NA [5,] 2.04 2.00 1.94 1.88 1.78 1.74 1.70 NA [6,] 2.03 1.99 1.94 1.88 1.78 1.74 1.70 NA [7,] 2.03 1.99 1.93 1.87 1.77 1.73 1.70 NA [8,] 2.03 1.99 1.93 1.86 1.77 1.73 1.70 NA [9,] 2.02 1.98 1.93 1.86 1.76 1.73 1.69 NA [10,] 2.02 1.97 1.92 1.85 1.75 1.73 1.68 NA [11,] 2.02 1.97 1.92 1.83 1.75 1.73 1.67 NA [12,] 2.02 1.96 1.90 1.82 1.75 1.72 1.65 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/1humi1274289266.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/2a33l1274289266.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/3a33l1274289266.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/4a33l1274289266.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] [,11] [,12] [1,] 1.610 1.710 1.710 1.700 1.70 1.700 1.70 1.70 1.690 1.680 1.670 1.650 [2,] 1.730 1.775 1.765 1.760 1.76 1.760 1.75 1.75 1.745 1.740 1.740 1.735 [3,] 1.850 1.900 1.900 1.890 1.88 1.880 1.87 1.86 1.860 1.850 1.830 1.820 [4,] 1.985 1.985 1.985 1.975 1.97 1.965 1.96 1.96 1.955 1.945 1.945 1.930 [5,] 2.060 2.060 2.050 2.040 2.04 2.030 2.03 2.03 2.020 2.020 2.020 2.020 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.707553 1.774591 1.768620 1.761605 1.754591 1.757577 1.744591 1.734591 [2,] 1.992447 2.025409 2.031380 2.018395 2.005409 2.002423 1.995409 1.985409 [,9] [,10] [,11] [,12] [1,] 1.734591 1.727577 1.707577 1.703549 [2,] 1.985409 1.972423 1.952423 1.936451 $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(1.61, 1.73, 1.85, 1.985, 2.06, 1.71, 1.775, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5kuk51274289266.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,] 2.020 1.960 1.900 1.820 1.750 1.720 1.670 1.61 [2,] 2.020 1.975 1.925 1.855 1.755 1.730 1.685 1.61 [3,] 2.030 1.990 1.935 1.875 1.775 1.735 1.700 1.61 [4,] 2.045 2.005 1.955 1.895 1.785 1.740 1.705 1.61 [5,] 2.060 2.010 1.960 1.900 1.800 1.750 1.710 1.61 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.018597 1.976317 1.921317 1.856756 1.761317 1.730439 1.690878 1.61 [2,] 2.041403 2.003683 1.948683 1.893244 1.788683 1.739561 1.709122 1.61 $out [1] 1.65 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2.02, 2.02, 2.03, 2.045, 2.06, 1.96, 1.975, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6kuk51274289266.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.1283040 0.33 0.1950 [2,] 0.1299542 0.33 0.2050 [3,] 0.1321525 0.34 0.2100 [4,] 0.1344918 0.35 0.2125 [5,] 0.1349074 0.37 0.2200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1300829 0.3308779 0.2065792 [2,] 0.1342221 0.3491221 0.2134208 $out [1] 0.1576615 0.4500000 0.2325000 $group [1] 1 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.128303954584045, 0.129954201481997, 0.132152494255371, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1humi1274289266.ps tmp/1humi1274289266.png",intern=TRUE)) character(0) > try(system("convert tmp/2a33l1274289266.ps tmp/2a33l1274289266.png",intern=TRUE)) character(0) > try(system("convert tmp/3a33l1274289266.ps tmp/3a33l1274289266.png",intern=TRUE)) character(0) > try(system("convert tmp/4a33l1274289266.ps tmp/4a33l1274289266.png",intern=TRUE)) character(0) > try(system("convert tmp/5kuk51274289266.ps tmp/5kuk51274289266.png",intern=TRUE)) character(0) > try(system("convert tmp/6kuk51274289266.ps tmp/6kuk51274289266.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.410 1.320 2.255