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(1552,2081,1500,1437,1470,1849,1387,1592,1590,1798,1935,1887,2027,2080,1556,1682,1785,1869,1781,2082,2571,1862,1938,1505,1767,1607,1578,1495,1615,1700,1337,1531,1623,1543,1640,1524,1429,1827,1603,1351,1267,1742,1384,1392,1649,1665,1526,1717,1391,1790,1472,1350,1704,1391,1190,1351,1160,1236,1444,1257,1193,1701,1428,1611,1431,1472,1240,1276,1467,1603,2014,2463,2510) > 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] 73 > (np <- floor(n / par1)) [1] 6 > 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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1552 2027 1767 1429 1391 1193 2510 [2,] 2081 2080 1607 1827 1790 1701 NA [3,] 1500 1556 1578 1603 1472 1428 NA [4,] 1437 1682 1495 1351 1350 1611 NA [5,] 1470 1785 1615 1267 1704 1431 NA [6,] 1849 1869 1700 1742 1391 1472 NA [7,] 1387 1781 1337 1384 1190 1240 NA [8,] 1592 2082 1531 1392 1351 1276 NA [9,] 1590 2571 1623 1649 1160 1467 NA [10,] 1798 1862 1543 1665 1236 1603 NA [11,] 1935 1938 1640 1526 1444 2014 NA [12,] 1887 1505 1524 1717 1257 2463 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/1srdy1292171159.ps",horizontal=F,onefile=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/2srdy1292171159.ps",horizontal=F,onefile=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/3srdy1292171159.ps",horizontal=F,onefile=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/4kiu11292171159.ps",horizontal=F,onefile=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,] 1193 1607.0 1428 1350 1267.0 1391 1190.0 1276.0 1467.0 1236 1444.0 1257.0 [2,] 1410 1701.0 1472 1351 1431.0 1472 1240.0 1351.0 1467.0 1543 1526.0 1505.0 [3,] 1552 1808.5 1528 1466 1542.5 1721 1360.5 1461.5 1606.5 1634 1787.5 1620.5 [4,] 1897 2080.0 1578 1611 1704.0 1849 1387.0 1592.0 1649.0 1798 1938.0 1887.0 [5,] 2510 2081.0 1603 1682 1785.0 1869 1387.0 1592.0 1649.0 1862 2014.0 1887.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1261.171 1564.033 1459.627 1298.292 1366.406 1477.823 1265.680 1306.047 [2,] 1842.829 2052.967 1596.373 1633.708 1718.594 1964.177 1455.320 1616.953 [,9] [,10] [,11] [,12] [1,] 1489.104 1469.517 1521.747 1374.098 [2,] 1723.896 1798.483 2053.253 1866.902 $out [1] 1781 2082 2571 1160 2463 $group [1] 7 8 9 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1193, 1410, 1552, 1897, 2510, 1607, 1701, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kiu11292171159.ps",horizontal=F,onefile=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] [1,] 1387 1505.0 1495.0 1267.0 1160.0 1193.0 2510 [2,] 1485 1731.5 1527.5 1388.0 1246.5 1352.0 2510 [3,] 1591 1865.5 1592.5 1564.5 1371.0 1469.5 2510 [4,] 1868 2053.5 1631.5 1691.0 1458.0 1656.0 2510 [5,] 2081 2082.0 1767.0 1827.0 1704.0 2014.0 2510 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1416.311 1718.634 1545.065 1426.300 1274.533 1330.844 2510 [2,] 1765.689 2012.366 1639.935 1702.700 1467.467 1608.156 2510 $out [1] 2571 1337 1790 2463 $group [1] 2 3 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1387, 1485, 1591, 1868, 2081, 1505, 1731.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vau41292171159.ps",horizontal=F,onefile=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,] 67.33325 175.0 93.500 [2,] 193.71393 476.0 175.750 [3,] 215.32880 580.5 228.250 [4,] 355.18833 1006.0 314.125 [5,] 473.68625 1411.0 487.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 141.6792 338.7634 165.1362 [2,] 288.9784 822.2366 291.3638 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(67.333250825032, 193.713927200206, 215.328797340648, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1srdy1292171159.ps tmp/1srdy1292171159.png",intern=TRUE)) character(0) > try(system("convert tmp/2srdy1292171159.ps tmp/2srdy1292171159.png",intern=TRUE)) character(0) > try(system("convert tmp/3srdy1292171159.ps tmp/3srdy1292171159.png",intern=TRUE)) character(0) > try(system("convert tmp/4kiu11292171159.ps tmp/4kiu11292171159.png",intern=TRUE)) character(0) > try(system("convert tmp/5kiu11292171159.ps tmp/5kiu11292171159.png",intern=TRUE)) character(0) > try(system("convert tmp/6vau41292171159.ps tmp/6vau41292171159.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.065 0.837 2.513