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(4930.63,6284.63,13339.63,8935.63,-419.37,1220.63,-5094.37,-5561.37,-2732.37,-316.37,-3929.37,-9291.37,6644.63,2492.63,5997.63,3383.63,-693.37,3945.63,-5128.37,-4368.37,-3414.37,-3313.37,-4619.37,-12400.37,8857.63,6407.63,11407.63,4066.63,3637.63,592.63,-4941.37,-5770.37,-4893.37,-2103.37,-5716.37,-13731.37,8025.63,3452.63,7552.63,2760.63,2001.63,2679.63,-2680.37,-4410.37,-2674.37,1677.63,-3284.37,-10360.37,8467.63,7012.63,6920.63,8835.63,2727.63,3736.63,-2893.37,-5309.37,-2578.37,-580.37,-7526.37,-11589.37,2348.63,991.63,4687.63,3096.63,-2582.37,-339.37,-4070.37,-6127.37,-3062.37,-613.37) > 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] 70 > (np <- floor(n / par1)) [1] 5 > 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 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4930.63 6644.63 8857.63 8025.63 8467.63 2348.63 [2,] 6284.63 2492.63 6407.63 3452.63 7012.63 991.63 [3,] 13339.63 5997.63 11407.63 7552.63 6920.63 4687.63 [4,] 8935.63 3383.63 4066.63 2760.63 8835.63 3096.63 [5,] -419.37 -693.37 3637.63 2001.63 2727.63 -2582.37 [6,] 1220.63 3945.63 592.63 2679.63 3736.63 -339.37 [7,] -5094.37 -5128.37 -4941.37 -2680.37 -2893.37 -4070.37 [8,] -5561.37 -4368.37 -5770.37 -4410.37 -5309.37 -6127.37 [9,] -2732.37 -3414.37 -4893.37 -2674.37 -2578.37 -3062.37 [10,] -316.37 -3313.37 -2103.37 1677.63 -580.37 -613.37 [11,] -3929.37 -4619.37 -5716.37 -3284.37 -7526.37 NA [12,] -9291.37 -12400.37 -13731.37 -10360.37 -11589.37 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/1rrpo1262079297.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/2g9y91262079297.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/3hvwh1262079297.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/4n9vp1262079297.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] [1,] 2348.63 991.63 4687.63 2760.63 -2582.37 -339.37 -5128.37 -6127.37 [2,] 4930.63 2492.63 5997.63 3096.63 -693.37 592.63 -5094.37 -5770.37 [3,] 7335.13 4868.63 7236.63 3725.13 791.13 1950.13 -4505.87 -5435.37 [4,] 8467.63 6407.63 11407.63 8835.63 2727.63 3736.63 -2893.37 -4410.37 [5,] 8857.63 7012.63 13339.63 8935.63 3637.63 3945.63 -2680.37 -4368.37 [,9] [,10] [,11] [,12] [1,] -3414.37 -3313.37 -7526.37 -13731.37 [2,] -3414.37 -2103.37 -5716.37 -12400.37 [3,] -2897.37 -596.87 -4619.37 -11589.37 [4,] -2674.37 -316.37 -3929.37 -10360.37 [5,] -2578.37 1677.63 -3284.37 -9291.37 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5053.651 2343.329 3747.005 23.28964 -1415.525 -77.85155 -5925.586 [2,] 9616.609 7393.931 10726.255 7426.97036 2997.785 3978.11155 -3086.154 [,8] [,9] [,10] [,11] [,12] [1,] -6312.614 -3374.694 -1749.5427 -5882.06 -13030.83 [2,] -4558.126 -2420.046 555.8027 -3356.68 -10147.91 $out [1] -4893.37 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2348.63, 4930.63, 7335.13, 8467.63, 8857.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58s0x1262079297.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] [1,] -9291.37 -12400.37 -13731.37 -10360.37 -11589.37 -6127.37 [2,] -4511.87 -4493.87 -5328.87 -2982.37 -4101.37 -3062.37 [3,] -367.87 -2003.37 -755.37 1839.63 1073.63 -476.37 [4,] 5607.63 3664.63 5237.13 3106.63 6966.63 2348.63 [5,] 13339.63 6644.63 11407.63 8025.63 8835.63 4687.63 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -4983.442 -5724.517 -5574.594 -937.6038 -3974.559 -3179.921 [2,] 4247.702 1717.777 4063.854 4616.8638 6121.819 2227.181 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-9291.37, -4511.87, -367.87, 5607.63, 13339.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qhbw1262079297.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,] 724.2814 1759.0 637.500 [2,] 1391.6443 3345.0 1567.750 [3,] 1740.1874 4715.5 2381.375 [4,] 2490.1881 6197.5 3407.625 [5,] 3342.5953 8652.0 4475.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1239.134 3414.456 1542.196 [2,] 2241.241 6016.544 3220.554 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(724.281367977943, 1391.64430814315, 1740.18741183342, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rrpo1262079297.ps tmp/1rrpo1262079297.png",intern=TRUE)) character(0) > try(system("convert tmp/2g9y91262079297.ps tmp/2g9y91262079297.png",intern=TRUE)) character(0) > try(system("convert tmp/3hvwh1262079297.ps tmp/3hvwh1262079297.png",intern=TRUE)) character(0) > try(system("convert tmp/4n9vp1262079297.ps tmp/4n9vp1262079297.png",intern=TRUE)) character(0) > try(system("convert tmp/58s0x1262079297.ps tmp/58s0x1262079297.png",intern=TRUE)) character(0) > try(system("convert tmp/6qhbw1262079297.ps tmp/6qhbw1262079297.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.050 0.819 1.765