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(2435,1379,1511,2021,1614,1680,1630,870,1877,2428,1711,127,3192,1934,2075,1700,1198,1582,1705,911,1817,1168,920,84,2254,1485,1886,1358,1167,1781,1218,779,1418,1641,1196,132,2926,1777,2094,1648,1646,1537,1917,977,1475,2124,1209,135,2917,1981,1398,1171,903,1390,1280,781,1828,1631,1063,186,2275,1342,1070,950,1121,1305,1586,548,1225,1419,880,124,2044,1143,897,1264,1326,1529,1373,587,1137,1426,1016,176,2614) > 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,] 2435 3192 2254 2926 2917 2275 2044 2614 [2,] 1379 1934 1485 1777 1981 1342 1143 NA [3,] 1511 2075 1886 2094 1398 1070 897 NA [4,] 2021 1700 1358 1648 1171 950 1264 NA [5,] 1614 1198 1167 1646 903 1121 1326 NA [6,] 1680 1582 1781 1537 1390 1305 1529 NA [7,] 1630 1705 1218 1917 1280 1586 1373 NA [8,] 870 911 779 977 781 548 587 NA [9,] 1877 1817 1418 1475 1828 1225 1137 NA [10,] 2428 1168 1641 2124 1631 1419 1426 NA [11,] 1711 920 1196 1209 1063 880 1016 NA [12,] 127 84 132 135 186 124 176 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/156731304976568.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/2ogs01304976568.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/3gg491304976568.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/4kg3z1304976568.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] [1,] 2044.0 1143.0 897.0 950.0 903 1305.0 1218.0 548.0 1137.0 1168.0 880.0 [2,] 2264.5 1360.5 1234.0 1217.5 1144 1459.5 1326.5 683.0 1321.5 1422.5 968.0 [3,] 2524.5 1485.0 1511.0 1358.0 1198 1537.0 1586.0 781.0 1475.0 1631.0 1063.0 [4,] 2921.5 1855.5 1980.5 1674.0 1470 1631.0 1667.5 890.5 1822.5 1882.5 1202.5 [5,] 3192.0 1981.0 2094.0 2021.0 1646 1781.0 1917.0 977.0 1877.0 2428.0 1209.0 [,12] [1,] 84.0 [2,] 125.5 [3,] 132.0 [4,] 155.5 [5,] 186.0 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2157.490 1189.394 1065.202 1085.386 1003.318 1434.583 1382.360 657.0843 [2,] 2891.510 1780.606 1956.798 1630.614 1392.682 1639.417 1789.640 904.9157 [,9] [,10] [,11] [,12] [1,] 1175.811 1356.295 922.9604 114.0845 [2,] 1774.189 1905.705 1203.0396 149.9155 $out [1] 1711 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2044, 2264.5, 2524.5, 2921.5, 3192, 1143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5wwur1304976568.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] [1,] 870 84.0 779.0 977.0 186.0 548.0 587.0 2614 [2,] 1445 1044.0 1181.5 1342.0 983.0 915.0 956.5 2614 [3,] 1655 1641.0 1388.0 1647.0 1335.0 1173.0 1203.5 2614 [4,] 1949 1875.5 1711.0 2005.5 1729.5 1380.5 1399.5 2614 [5,] 2435 2075.0 2254.0 2926.0 1981.0 1586.0 2044.0 2614 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1425.122 1261.747 1146.491 1344.373 994.5163 960.6823 1001.445 2614 [2,] 1884.878 2020.253 1629.509 1949.627 1675.4837 1385.3177 1405.555 2614 $out [1] 127 3192 132 135 2917 2275 124 176 $group [1] 1 2 3 4 5 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(870, 1445, 1655, 1949, 2435, 84, 1044, 1641, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6hdi81304976568.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,] 34.21849 102.0 30.00 [2,] 206.43943 587.5 221.00 [3,] 292.05038 787.0 398.75 [4,] 382.08965 1109.5 498.00 [5,] 476.96151 1260.0 746.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 211.9351 548.9123 272.4084 [2,] 372.1656 1025.0877 525.0916 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(34.2184856752131, 206.439428419639, 292.050380487525, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/156731304976568.ps tmp/156731304976568.png",intern=TRUE)) character(0) > try(system("convert tmp/2ogs01304976568.ps tmp/2ogs01304976568.png",intern=TRUE)) character(0) > try(system("convert tmp/3gg491304976568.ps tmp/3gg491304976568.png",intern=TRUE)) character(0) > try(system("convert tmp/4kg3z1304976568.ps tmp/4kg3z1304976568.png",intern=TRUE)) character(0) > try(system("convert tmp/5wwur1304976568.ps tmp/5wwur1304976568.png",intern=TRUE)) character(0) > try(system("convert tmp/6hdi81304976568.ps tmp/6hdi81304976568.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.380 1.090 1.813