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(107.5,107.5,113.3,107.8,104.5,105.1,104.2,106.6,103.8,107.7,106.4,110,113.2,113.9,112,113.9,113.1,111.7,110.7,113.5,114,112.7,112.2,115.8,118.4,118.8,123.9,118,120.2,118.7,119.8,124.8,121.3,120.2,118.3,129.6,130.2,127.19,133.1,129.12,123.28,123.36,124.13,126.96,127.14,123.7,123.67,130.19,134.01,124.96,129.96,128.32,132.38,126.25,128.91,131.42,129.44,126.86,126.71,131.63,132.78,126.61,132.84,123.14,128.13,125.49,126.48,130.86,127.32,126.56,126.64,129.26,126.47,135.38,135.5,132.22,122.62,125.16,128.5,133.86,128.87,125.07,125.25,132.16,130.24) > 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,] 107.5 113.2 118.4 130.20 134.01 132.78 126.47 130.24 [2,] 107.5 113.9 118.8 127.19 124.96 126.61 135.38 NA [3,] 113.3 112.0 123.9 133.10 129.96 132.84 135.50 NA [4,] 107.8 113.9 118.0 129.12 128.32 123.14 132.22 NA [5,] 104.5 113.1 120.2 123.28 132.38 128.13 122.62 NA [6,] 105.1 111.7 118.7 123.36 126.25 125.49 125.16 NA [7,] 104.2 110.7 119.8 124.13 128.91 126.48 128.50 NA [8,] 106.6 113.5 124.8 126.96 131.42 130.86 133.86 NA [9,] 103.8 114.0 121.3 127.14 129.44 127.32 128.87 NA [10,] 107.7 112.7 120.2 123.70 126.86 126.56 125.07 NA [11,] 106.4 112.2 118.3 123.67 126.71 126.64 125.25 NA [12,] 110.0 115.8 129.6 130.19 131.63 129.26 132.16 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/1s9l01211033204.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/2y8141211033204.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/3dzyb1211033204.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/41xnd1211033204.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,] 107.500 107.50 112.00 107.80 104.500 105.100 104.20 106.60 103.800 107.700 [2,] 115.800 116.35 118.60 115.95 116.650 115.200 115.25 119.15 117.650 116.450 [3,] 128.335 124.96 129.96 123.14 122.620 123.360 124.13 126.96 127.140 123.700 [4,] 131.510 126.90 132.97 128.72 125.705 125.325 127.49 131.14 128.095 125.815 [5,] 134.010 135.38 135.50 132.22 132.380 126.250 128.91 133.86 129.440 126.860 [,11] [,12] [1,] 106.400 110.00 [2,] 115.250 122.53 [3,] 123.670 129.60 [4,] 125.945 130.91 [5,] 126.710 132.16 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 119.5592 118.6597 121.3785 115.5140 117.2125 117.3135 116.8205 119.7998 [2,] 137.1108 131.2603 138.5415 130.7660 128.0275 129.4065 131.4395 134.1202 [,9] [,10] [,11] [,12] [1,] 120.9024 118.1074 117.2831 124.5956 [2,] 133.3776 129.2926 130.0569 134.6044 $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(107.5, 115.8, 128.335, 131.51, 134.01, 107.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ztcx1211033204.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,] 103.80 110.70 118.00 123.280 124.960 123.14 122.620 130.24 [2,] 104.80 112.10 118.55 123.685 126.785 126.52 125.205 130.24 [3,] 107.05 113.15 120.00 127.050 129.175 126.98 128.685 130.24 [4,] 107.75 113.90 122.60 129.655 131.525 130.06 133.040 130.24 [5,] 110.00 115.80 124.80 133.100 134.010 132.84 135.500 130.24 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.7045 112.329 118.1528 124.3270 127.0131 125.3654 125.1114 130.24 [2,] 108.3955 113.971 121.8472 129.7730 131.3369 128.5946 132.2586 130.24 $out [1] 113.3 129.6 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(103.8, 104.8, 107.05, 107.75, 110, 110.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66mmz1211033204.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,] 7.449788 19.160 8.3800 [2,] 8.489461 21.655 9.7450 [3,] 9.329209 24.565 10.6225 [4,] 9.647402 26.885 12.5050 [5,] 10.179614 27.880 14.3700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.801065 22.17956 9.363645 [2,] 9.857354 26.95044 11.881355 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7.44978842780435, 8.48946098266535, 9.32920928536675, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1s9l01211033204.ps tmp/1s9l01211033204.png") > system("convert tmp/2y8141211033204.ps tmp/2y8141211033204.png") > system("convert tmp/3dzyb1211033204.ps tmp/3dzyb1211033204.png") > system("convert tmp/41xnd1211033204.ps tmp/41xnd1211033204.png") > system("convert tmp/5ztcx1211033204.ps tmp/5ztcx1211033204.png") > system("convert tmp/66mmz1211033204.ps tmp/66mmz1211033204.png") > > > proc.time() user system elapsed 1.304 0.827 3.053