R version 2.6.2 (2008-02-08) 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(6.5300,6.5400,6.5400,6.5100,6.5100,6.4900,6.4600,6.4600,6.5200,6.4800,6.4900,6.4800,6.5300,6.4900,6.4800,6.5700,6.5300,6.5700,6.5500,6.5700,6.6200,6.5600,6.6500,6.5900,6.6800,6.7500,6.7700,6.8200,6.8800,6.8100,6.8700,6.9100,6.9800,7.0400,6.9900,7.0800,7.1300,7.1000,7.0200,7.0300,7.1200,7.1100,7.0900,7.0200,7.0300,7.0600,7.0500,7.1100,7.0600,7.0500,7.1100,7.0900,7.1300,7.0300,7.0600,7.1100,7.0800,7.1300,7.0000,7.0200,6.9600,6.9800,7.0200,7.0200,7.0600,7.0200,6.9400,6.9700,6.9700,6.9400,6.9300,7.0000,6.9700,6.9700,6.9800,6.9200,7.0000,6.9400,6.9700,6.9300,6.9200,6.8400,6.8600,6.8600,6.8400) > 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,] 6.53 6.53 6.68 7.13 7.06 6.96 6.97 6.84 [2,] 6.54 6.49 6.75 7.10 7.05 6.98 6.97 NA [3,] 6.54 6.48 6.77 7.02 7.11 7.02 6.98 NA [4,] 6.51 6.57 6.82 7.03 7.09 7.02 6.92 NA [5,] 6.51 6.53 6.88 7.12 7.13 7.06 7.00 NA [6,] 6.49 6.57 6.81 7.11 7.03 7.02 6.94 NA [7,] 6.46 6.55 6.87 7.09 7.06 6.94 6.97 NA [8,] 6.46 6.57 6.91 7.02 7.11 6.97 6.93 NA [9,] 6.52 6.62 6.98 7.03 7.08 6.97 6.92 NA [10,] 6.48 6.56 7.04 7.06 7.13 6.94 6.84 NA [11,] 6.49 6.65 6.99 7.05 7.00 6.93 6.86 NA [12,] 6.48 6.59 7.08 7.11 7.02 7.00 6.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/www/html/rcomp/tmp/1txxl1210576968.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/2jta31210576968.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/3tjqe1210576968.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/4el661210576968.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,] 6.530 6.490 6.480 6.510 6.510 6.490 6.460 6.460 6.520 6.48 6.490 6.480 [2,] 6.605 6.645 6.655 6.695 6.705 6.690 6.710 6.740 6.770 6.70 6.755 6.725 [3,] 6.900 6.970 6.980 6.920 7.000 6.940 6.940 6.930 6.970 6.94 6.930 7.000 [4,] 7.015 7.015 7.020 7.025 7.090 7.025 7.015 6.995 7.005 7.05 6.995 7.050 [5,] 7.130 7.100 7.110 7.090 7.130 7.110 7.090 7.110 7.080 7.13 7.050 7.110 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.670968 6.749042 6.762028 6.722929 6.770084 6.739943 6.757859 6.777718 [2,] 7.129032 7.190958 7.197972 7.117071 7.229916 7.140057 7.122141 7.082282 [,9] [,10] [,11] [,12] [1,] 6.829662 6.730986 6.786676 6.805915 [2,] 7.110338 7.149014 7.073324 7.194085 $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(6.53, 6.605, 6.9, 7.015, 7.13, 6.49, 6.645, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wvdk1210576968.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,] 6.460 6.480 6.680 7.020 7.00 6.930 6.840 6.84 [2,] 6.480 6.530 6.790 7.030 7.04 6.950 6.890 6.84 [3,] 6.500 6.565 6.875 7.075 7.07 6.975 6.935 6.84 [4,] 6.525 6.580 6.985 7.110 7.11 7.020 6.970 6.84 [5,] 6.540 6.650 7.080 7.130 7.13 7.060 7.000 6.84 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.479475 6.542195 6.786059 7.038511 7.038073 6.943073 6.898511 6.84 [2,] 6.520525 6.587805 6.963941 7.111489 7.101927 7.006927 6.971489 6.84 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(6.46, 6.48, 6.5, 6.525, 6.54, 6.48, 6.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rgmk1210576968.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.2074218 0.56 0.2350 [2,] 0.2319665 0.59 0.2800 [3,] 0.2445994 0.62 0.3325 [4,] 0.2504795 0.63 0.3575 [5,] 0.2663331 0.65 0.3850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.2361556 0.6017557 0.2971517 [2,] 0.2530433 0.6382443 0.3678483 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.207421815448157, 0.231966508063893, 0.244599434519468, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1txxl1210576968.ps tmp/1txxl1210576968.png") > system("convert tmp/2jta31210576968.ps tmp/2jta31210576968.png") > system("convert tmp/3tjqe1210576968.ps tmp/3tjqe1210576968.png") > system("convert tmp/4el661210576968.ps tmp/4el661210576968.png") > system("convert tmp/5wvdk1210576968.ps tmp/5wvdk1210576968.png") > system("convert tmp/6rgmk1210576968.ps tmp/6rgmk1210576968.png") > > > proc.time() user system elapsed 1.296 0.823 1.554