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(25000,25284,12434.5,33955,14980.5,50831,4198.5,34566,35000,11055.5,20807,21887.29,16977.5,19613.5,14570,24416.5,16825.5,13980,21450.5,27239.5,19078.5,20459.1,20373.5,19306.5,16723.16,11638,20917,17903.5,28218.5,15268,21555,23143,16691,17932.5,30512,41931.5,10853.5,25939.5,14900,25127.76,22063.5,25306.5,31217.5,23201.5,38148,26264,16359,27945.5,16218.5,36003.5,20323.5,20100.5,18741,24426.75,19174.5,13766,18999,21745,34469,13248,16218.5,36003.5,20323.5,20100.5,18741,24426.75,19174.5,13766,18999,21745,34469,13248) > 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,] 25000.00 16977.5 16723.16 10853.50 16218.50 16218.50 NA [2,] 25284.00 19613.5 11638.00 25939.50 36003.50 36003.50 NA [3,] 12434.50 14570.0 20917.00 14900.00 20323.50 20323.50 NA [4,] 33955.00 24416.5 17903.50 25127.76 20100.50 20100.50 NA [5,] 14980.50 16825.5 28218.50 22063.50 18741.00 18741.00 NA [6,] 50831.00 13980.0 15268.00 25306.50 24426.75 24426.75 NA [7,] 4198.50 21450.5 21555.00 31217.50 19174.50 19174.50 NA [8,] 34566.00 27239.5 23143.00 23201.50 13766.00 13766.00 NA [9,] 35000.00 19078.5 16691.00 38148.00 18999.00 18999.00 NA [10,] 11055.50 20459.1 17932.50 26264.00 21745.00 21745.00 NA [11,] 20807.00 20373.5 30512.00 16359.00 34469.00 34469.00 NA [12,] 21887.29 19306.5 41931.50 27945.50 13248.00 13248.00 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/1xjdz1275773095.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/2xjdz1275773095.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/3dwj91275773095.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/4dwj91275773095.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,] 16218.50 11638.00 12434.50 17903.50 14980.5 13980.00 19174.5 13766.00 [2,] 16218.50 19613.50 14570.00 20100.50 16825.5 15268.00 19174.5 13766.00 [3,] 16470.83 25611.75 17611.75 22258.50 18741.0 24426.75 20312.5 23172.25 [4,] 16977.50 36003.50 20323.50 25127.76 22063.5 25306.50 21555.0 27239.50 [5,] 16977.50 36003.50 20917.00 25127.76 28218.5 25306.50 21555.0 34566.00 [,9] [,10] [,11] [,12] [1,] 16691.00 17932.50 16359.0 13248.00 [2,] 18999.00 17932.50 20373.5 13248.00 [3,] 19038.75 21102.05 25659.5 20596.90 [4,] 35000.00 21745.00 34469.0 27945.50 [5,] 38148.00 26264.00 34469.0 41931.50 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15981.25 15039.67 13900.56 19015.75 15362.32 17951.59 18777 14481.41 [2,] 16960.41 36183.83 21322.94 25501.25 22119.68 30901.91 21848 31863.09 [,9] [,10] [,11] [,12] [1,] 8717.588 18642.86 16567.45 11116.53 [2,] 29359.912 23561.24 34751.55 30077.26 $out [1] 25000.0 10853.5 33955.0 50831.0 4198.5 31217.5 11055.5 $group [1] 1 1 4 6 7 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(16218.5, 16218.5, 16470.83, 16977.5, 16977.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55nju1275773095.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,] 4198.50 13980.0 11638.00 10853.50 13248.00 13248.00 NA [2,] 13707.50 16901.5 16707.08 19211.25 17479.75 17479.75 NA [3,] 23443.65 19460.0 19424.75 25217.13 19637.50 19637.50 NA [4,] 34260.50 20954.8 25680.75 27104.75 23085.88 23085.88 NA [5,] 50831.00 24416.5 30512.00 38148.00 24426.75 24426.75 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14069.28 17611.26 15331.8 21616.85 17080.51 17080.51 NA [2,] 32818.01 21308.74 23517.7 28817.41 22194.49 22194.49 NA $out [1] 27239.5 41931.5 36003.5 34469.0 36003.5 34469.0 $group [1] 2 3 5 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(4198.5, 13707.5, 23443.645, 34260.5, 50831, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65nju1275773095.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,] 3694.143 8482.50 695.415 [2,] 4894.160 14677.50 3554.675 [3,] 7979.010 19455.00 6599.938 [4,] 9459.062 25692.25 11844.474 [5,] 13275.158 36851.00 12997.875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5896.928 14431.1 2818.905 [2,] 10061.093 24478.9 10380.970 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3694.14315843336, 4894.15964985718, 7979.01021094083, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1xjdz1275773095.ps tmp/1xjdz1275773095.png",intern=TRUE)) character(0) > try(system("convert tmp/2xjdz1275773095.ps tmp/2xjdz1275773095.png",intern=TRUE)) character(0) > try(system("convert tmp/3dwj91275773095.ps tmp/3dwj91275773095.png",intern=TRUE)) character(0) > try(system("convert tmp/4dwj91275773095.ps tmp/4dwj91275773095.png",intern=TRUE)) character(0) > try(system("convert tmp/55nju1275773095.ps tmp/55nju1275773095.png",intern=TRUE)) character(0) > try(system("convert tmp/65nju1275773095.ps tmp/65nju1275773095.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.085 0.838 5.721