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(1528,1816,1420,1757,1544,1678,1655,1391,1403,1744,1266,1358,1596,1819,1416,1521,1638,1543,1623,1530,1336,1700,1615,1494,1578,1607,1767,1505,1938,1862,2571,2082,1781,1869,1785,1682,1556,2080,2027,1887,1935,1798,1590,1592,1387,1849,1470,1437,1500,2081,1552,1586,1914,1639,1633,1693,1224,1417,1577,1225,1510,1515,1393,1455,1532,1268,1365,1282,1063,1296,1639,1247,1515,1547,1299) > 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] 75 > (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 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1528 1596 1578 1556 1500 1510 1515 [2,] 1816 1819 1607 2080 2081 1515 1547 [3,] 1420 1416 1767 2027 1552 1393 1299 [4,] 1757 1521 1505 1887 1586 1455 NA [5,] 1544 1638 1938 1935 1914 1532 NA [6,] 1678 1543 1862 1798 1639 1268 NA [7,] 1655 1623 2571 1590 1633 1365 NA [8,] 1391 1530 2082 1592 1693 1282 NA [9,] 1403 1336 1781 1387 1224 1063 NA [10,] 1744 1700 1869 1849 1417 1296 NA [11,] 1266 1615 1785 1470 1577 1639 NA [12,] 1358 1494 1682 1437 1225 1247 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/14uzp1243538662.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/24pxl1243538662.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/3e2641243538662.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/4wqsq1243538662.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] [1,] 1500.0 1515.0 1299.0 1455.0 1532 1268.0 1590 1282 1063.0 1296 1266 [2,] 1512.5 1577.0 1404.5 1505.0 1544 1543.0 1590 1391 1224.0 1417 1470 [3,] 1528.0 1816.0 1420.0 1553.5 1776 1658.5 1628 1561 1361.5 1722 1596 [4,] 1567.0 1949.5 1659.5 1757.0 1935 1798.0 1655 1693 1403.0 1849 1639 [5,] 1596.0 2081.0 2027.0 1887.0 1938 1862.0 1655 2082 1403.0 1869 1785 [,12] [1,] 1225.0 [2,] 1247.0 [3,] 1397.5 [4,] 1494.0 [5,] 1682.0 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1495.453 1593.549 1267.718 1390.952 1523.792 1494.017 1586.073 1366.200 [2,] 1560.547 2038.451 1572.282 1716.048 2028.208 1822.983 1669.927 1755.800 [,9] [,10] [,11] [,12] [1,] 1246.039 1443.346 1486.990 1238.177 [2,] 1476.961 2000.654 1705.010 1556.823 $out [1] 2571 1365 1781 $group [1] 7 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1500, 1512.5, 1528, 1567, 1596, 1515, 1577, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rqay1243538662.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] [1,] 1266 1336.0 1505.0 1387 1224.0 1063.0 1299 [2,] 1397 1507.5 1644.5 1513 1458.5 1275.0 1407 [3,] 1536 1569.5 1783.0 1695 1581.5 1379.0 1515 [4,] 1711 1630.5 1903.5 1911 1666.0 1512.5 1531 [5,] 1816 1700.0 2082.0 2080 1914.0 1639.0 1547 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1392.782 1513.399 1664.868 1513.470 1486.858 1270.675 1401.886 [2,] 1679.218 1625.601 1901.132 1876.530 1676.142 1487.325 1628.114 $out [1] 1819 2571 2081 $group [1] 2 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1266, 1397, 1536, 1711, 1816, 1336, 1507.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/68czu1243538662.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,] 168.1972 96.0 51.250 [2,] 173.1615 444.5 141.625 [3,] 223.5847 569.5 205.125 [4,] 248.3940 723.0 295.000 [5,] 279.4967 800.0 372.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 189.2707 442.4743 135.1696 [2,] 257.8987 696.5257 275.0804 $out [1] 36.75077 420.96259 1206.00000 $group [1] 1 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(168.19720568428, 173.161524074686, 223.584727906606, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/14uzp1243538662.ps tmp/14uzp1243538662.png") > system("convert tmp/24pxl1243538662.ps tmp/24pxl1243538662.png") > system("convert tmp/3e2641243538662.ps tmp/3e2641243538662.png") > system("convert tmp/4wqsq1243538662.ps tmp/4wqsq1243538662.png") > system("convert tmp/5rqay1243538662.ps tmp/5rqay1243538662.png") > system("convert tmp/68czu1243538662.ps tmp/68czu1243538662.png") > > > proc.time() user system elapsed 1.033 0.781 1.267