R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(2144,2207,1864,2061,2025,2068,2054,2095,2151,2065,2147,1994,2273,2119,1969,1821,1942,1802,1737,1650,1720,1491,1570,1649,1409,1480,1495,1490,1415,1448,1354,1330,1183,1264,1197,1037,1084,1103,1005,1013,973,1046,923,844,820,777,652,560,490,582,505,478,540,585,594,586,585,534,588,581,615,603,626,687,580,539,550,606,597,539,551,526) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2144 2273 1409 1084 490 615 NA [2,] 2207 2119 1480 1103 582 603 NA [3,] 1864 1969 1495 1005 505 626 NA [4,] 2061 1821 1490 1013 478 687 NA [5,] 2025 1942 1415 973 540 580 NA [6,] 2068 1802 1448 1046 585 539 NA [7,] 2054 1737 1354 923 594 550 NA [8,] 2095 1650 1330 844 586 606 NA [9,] 2151 1720 1183 820 585 597 NA [10,] 2065 1491 1264 777 534 539 NA [11,] 2147 1570 1197 652 588 551 NA [12,] 1994 1649 1037 560 581 526 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/wessaorg/rcomp/tmp/1bmyx1322571188.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/wessaorg/rcomp/tmp/2do6j1322571188.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/wessaorg/rcomp/tmp/365zh1322571188.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/wessaorg/rcomp/tmp/4kous1322571188.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,] 490.0 582.0 505 478.0 540 539 550.0 586 585.0 534.0 551.0 526 [2,] 615.0 603.0 626 687.0 580 585 594.0 606 597.0 539.0 588.0 560 [3,] 1246.5 1291.5 1250 1251.5 1194 1247 1138.5 1087 1001.5 1020.5 924.5 809 [4,] 2144.0 2119.0 1864 1821.0 1942 1802 1737.0 1650 1720.0 1491.0 1570.0 1649 [5,] 2273.0 2207.0 1969 2061.0 2025 2068 2054.0 2095 2151.0 2065.0 2147.0 1994 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 260.2456 313.631 451.45 520.0334 315.466 461.9957 401.2281 [2,] 2232.7544 2269.369 2048.55 1982.9666 2072.534 2032.0043 1875.7719 [,8] [,9] [,10] [,11] [,12] [1,] 413.5863 277.1287 406.4293 291.0783 106.5598 [2,] 1760.4137 1725.8713 1634.5707 1557.9217 1511.4402 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(490, 615, 1246.5, 2144, 2273, 582, 603, 1291.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5xzg51322571188.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,] 1994.0 1491.0 1037.0 560.0 478.0 526.0 NA [2,] 2039.5 1649.5 1230.5 798.5 519.5 544.5 NA [3,] 2066.5 1769.5 1381.5 948.0 581.5 588.5 NA [4,] 2145.5 1955.5 1464.0 1029.5 585.5 610.5 NA [5,] 2207.0 2273.0 1495.0 1103.0 594.0 687.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2018.153 1629.931 1274.999 842.6393 551.397 558.397 NA [2,] 2114.847 1909.069 1488.001 1053.3607 611.603 618.603 NA $out [1] 1864 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1994, 2039.5, 2066.5, 2145.5, 2207, 1491, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/61k9a1322571188.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,] 608.2091 1464.0 835.750 [2,] 621.7612 1494.5 917.625 [3,] 633.4377 1530.0 967.375 [4,] 650.0104 1589.5 1091.500 [5,] 653.6572 1625.0 1231.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 620.5531 1486.67 888.0694 [2,] 646.3224 1573.33 1046.6806 $out [1] 753.0236 714.3593 1783.0000 $group [1] 1 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(608.209064932994, 621.761212801369, 633.437735041852, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1bmyx1322571188.ps tmp/1bmyx1322571188.png",intern=TRUE)) character(0) > try(system("convert tmp/2do6j1322571188.ps tmp/2do6j1322571188.png",intern=TRUE)) character(0) > try(system("convert tmp/365zh1322571188.ps tmp/365zh1322571188.png",intern=TRUE)) character(0) > try(system("convert tmp/4kous1322571188.ps tmp/4kous1322571188.png",intern=TRUE)) character(0) > try(system("convert tmp/5xzg51322571188.ps tmp/5xzg51322571188.png",intern=TRUE)) character(0) > try(system("convert tmp/61k9a1322571188.ps tmp/61k9a1322571188.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.476 0.278 1.756