R version 2.9.0 (2009-04-17) 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(745.52,1962.64,2092.88,2034.73,568.28,1482.67,1282.26,1534.16,1621.42,1465.32,1373.15,1386.28,756.10,1359.02,1600.69,1299.97,161.31,622.74,552.60,570.36,806.43,1212.24,1806.54,1433.47,543.97,1453.00,1795.89,1608.99,484.29,1541.01,1094.14,1412.93,1612.35,1309.29,1626.17,874.45,794.25,1416.23,1575.25,1255.68,-787.86,1038.52,934.94,581.78,1069.98,1104.77,1152.28,880.48,169.49,953.93,1009.01,297.91,259.98,1164.90,924.60,840.77,1042.04,1026.08,637.53,1338.82) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 745.52 756.10 543.97 794.25 169.49 NA [2,] 1962.64 1359.02 1453.00 1416.23 953.93 NA [3,] 2092.88 1600.69 1795.89 1575.25 1009.01 NA [4,] 2034.73 1299.97 1608.99 1255.68 297.91 NA [5,] 568.28 161.31 484.29 -787.86 259.98 NA [6,] 1482.67 622.74 1541.01 1038.52 1164.90 NA [7,] 1282.26 552.60 1094.14 934.94 924.60 NA [8,] 1534.16 570.36 1412.93 581.78 840.77 NA [9,] 1621.42 806.43 1612.35 1069.98 1042.04 NA [10,] 1465.32 1212.24 1309.29 1104.77 1026.08 NA [11,] 1373.15 1806.54 1626.17 1152.28 637.53 NA [12,] 1386.28 1433.47 874.45 880.48 1338.82 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/132x11258294879.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/2zixb1258294879.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/3x67f1258294879.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/42tdr1258294879.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] [1,] 543.97 1359.02 1575.25 1255.68 161.31 622.74 924.60 570.36 806.43 [2,] 543.97 1359.02 1575.25 1255.68 161.31 1038.52 924.60 581.78 1042.04 [3,] 745.52 1416.23 1600.69 1299.97 259.98 1164.90 934.94 840.77 1069.98 [4,] 756.10 1453.00 1795.89 1608.99 484.29 1482.67 1094.14 1412.93 1612.35 [5,] 794.25 1453.00 2092.88 2034.73 568.28 1541.01 1282.26 1534.16 1621.42 [,10] [,11] [,12] [1,] 1026.08 637.53 874.45 [2,] 1104.77 1152.28 880.48 [3,] 1212.24 1373.15 1338.82 [4,] 1309.29 1626.17 1386.28 [5,] 1465.32 1806.54 1433.47 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 595.6295 1349.824 1444.786 1050.322 31.76315 851.0647 815.1435 [2,] 895.4105 1482.636 1756.594 1549.618 488.19685 1478.7353 1054.7365 [,8] [,9] [,10] [,11] [,12] [1,] 253.4815 667.0004 1067.727 1038.301 981.423 [2,] 1428.0585 1472.9596 1356.753 1707.999 1696.217 $out [1] 169.49 1962.64 953.93 1009.01 297.91 -787.86 552.60 $group [1] 1 2 2 3 4 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(543.97, 543.97, 745.52, 756.1, 794.25, 1359.02, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5p2nq1258294879.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] [1,] 745.520 161.310 484.290 581.780 169.490 NA [2,] 1327.705 596.550 984.295 837.365 467.720 NA [3,] 1473.995 1009.335 1432.965 1054.250 939.265 NA [4,] 1792.030 1396.245 1610.670 1203.980 1034.060 NA [5,] 2092.880 1806.540 1795.890 1575.250 1338.820 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1262.213 644.5887 1147.271 887.0344 680.9535 NA [2,] 1685.777 1374.0813 1718.659 1221.4656 1197.5765 NA $out [1] 568.28 -787.86 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(745.52, 1327.705, 1473.995, 1792.03, 2092.88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67g0h1258294879.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,] 172.5073 439.240 93.980 [2,] 274.8789 677.210 208.325 [3,] 369.4470 941.035 338.145 [4,] 456.4981 1126.440 489.845 [5,] 640.5955 1736.820 831.150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 286.6093 736.1382 209.7418 [2,] 452.2848 1145.9318 466.5482 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(172.507308106063, 274.878851018227, 369.447037378544, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/132x11258294879.ps tmp/132x11258294879.png") > system("convert tmp/2zixb1258294879.ps tmp/2zixb1258294879.png") > system("convert tmp/3x67f1258294879.ps tmp/3x67f1258294879.png") > system("convert tmp/42tdr1258294879.ps tmp/42tdr1258294879.png") > system("convert tmp/5p2nq1258294879.ps tmp/5p2nq1258294879.png") > system("convert tmp/67g0h1258294879.ps tmp/67g0h1258294879.png") > > > proc.time() user system elapsed 1.025 0.788 2.465