R version 2.10.1 (2009-12-14) 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(814,1150,1225,1691,1759,1754,2100,2062,2012,1897,1964,2186,966,1549,1538,1612,2078,2137,2907,2249,1883,1739,1828,1868,1138,1430,1809,1763,2200,2067,2503,2141,2103,1972,2181,2344,970,1199,1718,1683,2025,2051,2439,2353,2230,1852,2147,2286,1007,1665,1642,1518,1831,2207,2822,2393,2306,1785,2047,2171,1212,1335,2011,1860,1954,2152,2835,2224,2182,1992,2389,2724,891,1247,2017,2257,2255,2255,3057,3330,1896,2096,2374,2535,1041,1728,2201,2455,2204,2660,3670,2665,2639,2226,2586,2684,1185,1749,2459,2618,2585,3310,3923) > 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] 103 > (np <- floor(n / par1)) [1] 8 > 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] 9 9 9 9 9 9 9 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 814 966 1138 970 1007 1212 891 1041 1185 [2,] 1150 1549 1430 1199 1665 1335 1247 1728 1749 [3,] 1225 1538 1809 1718 1642 2011 2017 2201 2459 [4,] 1691 1612 1763 1683 1518 1860 2257 2455 2618 [5,] 1759 2078 2200 2025 1831 1954 2255 2204 2585 [6,] 1754 2137 2067 2051 2207 2152 2255 2660 3310 [7,] 2100 2907 2503 2439 2822 2835 3057 3670 3923 [8,] 2062 2249 2141 2353 2393 2224 3330 2665 NA [9,] 2012 1883 2103 2230 2306 2182 1896 2639 NA [10,] 1897 1739 1972 1852 1785 1992 2096 2226 NA [11,] 1964 1828 2181 2147 2047 2389 2374 2586 NA [12,] 2186 1868 2344 2286 2171 2724 2535 2684 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/yougetitorg/rcomp/tmp/17cw41304534816.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/yougetitorg/rcomp/tmp/2ffu71304534816.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/yougetitorg/rcomp/tmp/3i4sp1304534816.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/yougetitorg/rcomp/tmp/4k9ll1304534816.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,] 814 1150 1225 1518 1759 2051 2100 2062.0 1883.0 1739.0 1828.0 1868.0 [2,] 966 1247 1642 1683 1954 2067 2503 2182.5 1954.0 1818.5 2005.5 2178.5 [3,] 1007 1430 1809 1763 2078 2152 2835 2301.0 2142.5 1934.5 2164.0 2315.0 [4,] 1138 1665 2017 2257 2204 2255 3057 2529.0 2268.0 2044.0 2381.5 2609.5 [5,] 1212 1749 2459 2618 2255 2255 3670 2665.0 2639.0 2226.0 2586.0 2724.0 $n [1] 9 9 9 9 9 9 9 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 916.4133 1209.853 1611.5 1460.693 1946.333 2052.987 2543.227 2107.44 [2,] 1097.5867 1650.147 2006.5 2065.307 2209.667 2251.013 3126.773 2494.56 [,9] [,10] [,11] [,12] [1,] 1967.095 1808.532 1953.961 2074.237 [2,] 2317.905 2060.468 2374.039 2555.763 $out [1] 2585 1754 2660 3310 3923 3330 $group [1] 5 6 6 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(814, 966, 1007, 1138, 1212, 1150, 1247, 1430, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5admj1304534816.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] [,8] [,9] [1,] 814 966.0 1430.0 970.0 1007.0 1335.0 1247.0 1728.0 1185 [2,] 1458 1580.5 1786.0 1700.5 1653.5 1907.0 1956.5 2202.5 2104 [3,] 1828 1848.0 2085.0 2038.0 1939.0 2081.5 2255.0 2520.5 2585 [4,] 2037 2107.5 2190.5 2258.0 2256.5 2306.5 2454.5 2662.5 2964 [5,] 2186 2249.0 2503.0 2439.0 2822.0 2835.0 3057.0 2684.0 3923 $n [1] 12 12 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1563.914 1607.632 1900.505 1783.721 1663.968 1899.285 2027.859 2310.691 [2,] 2092.086 2088.368 2269.495 2292.279 2214.032 2263.715 2482.141 2730.309 [,9] [1,] 2071.422 [2,] 3098.578 $out [1] 2907 1138 1212 891 3330 1041 3670 $group [1] 2 3 6 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(814, 1458, 1828, 2037, 2186, 966, 1580.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6nx9k1304534816.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,] 133.6511 398.0 172.00 [2,] 239.5734 677.5 219.00 [3,] 268.6641 841.0 308.75 [4,] 403.8715 1251.0 404.00 [5,] 578.9929 1823.0 574.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 193.7266 579.4228 224.3703 [2,] 343.6016 1102.5772 393.1297 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(133.651079722953, 239.573370430736, 268.664128794266, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/17cw41304534816.ps tmp/17cw41304534816.png",intern=TRUE)) character(0) > try(system("convert tmp/2ffu71304534816.ps tmp/2ffu71304534816.png",intern=TRUE)) character(0) > try(system("convert tmp/3i4sp1304534816.ps tmp/3i4sp1304534816.png",intern=TRUE)) character(0) > try(system("convert tmp/4k9ll1304534816.ps tmp/4k9ll1304534816.png",intern=TRUE)) character(0) > try(system("convert tmp/5admj1304534816.ps tmp/5admj1304534816.png",intern=TRUE)) character(0) > try(system("convert tmp/6nx9k1304534816.ps tmp/6nx9k1304534816.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.300 1.030 1.959