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(100.4,97.7,97,96.5,98.4,106.3,103.1,102.4,95,98.1,106.1,99.1,101.2,95.5,99.8,97.1,97.5,96.8,97.7,100.9,94.3,99.5,100.8,97,99.2,101,102.3,97,91.2,97.6,95.7,100.5,94.4,102.9,105.1,98.8,100.7,99.6,107.7,102.9,101.6,102.7,110.5,109.8,94.3,102.5,105,102.3,107.7,100.3,99.5,95,97.7,96.3,97.8,106.4,96.1,106.2,114.7,111.9,121,117.7,115.4,114.3,109.5,108.1,108.2,99.1,101.2,98.1,95.5,97.9,98.2,98.7,95.6,95.8,94.4,96.5,103.3,104.3,104.5,102.3,103.8,103.1,102.2,106.3,102.1,94,102.6,102.6,106.7,107.9,109.3,105.9,109.1,108.5,111.7,109.8,109.1,108.5,108.5,106.2,117.1,109.8,115.2,115.9,119.2,121,118.6,117.6,114.6,110.6,102.5,101.6,107.4,105.8,102.8,104,100.4,100.6) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 100.4 101.2 99.2 100.7 107.7 121.0 98.2 102.2 111.7 118.6 NA [2,] 97.7 95.5 101.0 99.6 100.3 117.7 98.7 106.3 109.8 117.6 NA [3,] 97.0 99.8 102.3 107.7 99.5 115.4 95.6 102.1 109.1 114.6 NA [4,] 96.5 97.1 97.0 102.9 95.0 114.3 95.8 94.0 108.5 110.6 NA [5,] 98.4 97.5 91.2 101.6 97.7 109.5 94.4 102.6 108.5 102.5 NA [6,] 106.3 96.8 97.6 102.7 96.3 108.1 96.5 102.6 106.2 101.6 NA [7,] 103.1 97.7 95.7 110.5 97.8 108.2 103.3 106.7 117.1 107.4 NA [8,] 102.4 100.9 100.5 109.8 106.4 99.1 104.3 107.9 109.8 105.8 NA [9,] 95.0 94.3 94.4 94.3 96.1 101.2 104.5 109.3 115.2 102.8 NA [10,] 98.1 99.5 102.9 102.5 106.2 98.1 102.3 105.9 115.9 104.0 NA [11,] 106.1 100.8 105.1 105.0 114.7 95.5 103.8 109.1 119.2 100.4 NA [12,] 99.1 97.0 98.8 102.3 111.9 97.9 103.1 108.5 121.0 100.6 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/1bbg11292070638.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/www/html/rcomp/tmp/243xm1292070638.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/www/html/rcomp/tmp/343xm1292070638.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/www/html/rcomp/tmp/443xm1292070638.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,] 98.2 95.50 95.6 94.00 91.2 96.3 95.7 99.10 94.30 98.1 95.50 [2,] 100.4 98.70 99.5 95.80 97.5 96.8 97.8 100.90 94.40 99.5 100.80 [3,] 101.7 100.65 102.2 97.05 100.0 102.1 105.0 105.05 98.65 102.7 105.05 [4,] 111.7 109.80 109.1 108.50 102.6 106.2 108.2 107.90 104.50 105.9 109.10 [5,] 121.0 117.70 115.4 114.30 109.5 108.1 117.1 109.80 115.20 106.2 119.20 [,12] [1,] 97.00 [2,] 98.80 [3,] 101.45 [4,] 108.50 [5,] 121.00 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.05407 95.104 97.40346 90.70457 97.45184 97.40339 99.80375 [2,] 107.34593 106.196 106.99654 103.39543 102.54816 106.79661 110.19625 [,8] [,9] [,10] [,11] [,12] [1,] 101.5525 93.60364 99.5023 100.9030 96.6035 [2,] 108.5475 103.69636 105.8977 109.1970 106.2965 $out [1] 115.9 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(98.2, 100.4, 101.7, 111.7, 121, 95.5, 98.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fcx71292070638.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] [,10] [,11] [1,] 95.00 94.3 91.20 94.30 95.00 95.50 94.40 94.0 106.20 100.40 NA [2,] 97.35 96.9 96.35 101.15 97.00 98.60 96.15 102.4 108.80 102.05 NA [3,] 98.75 97.6 99.00 102.60 99.90 108.15 100.50 106.1 110.75 104.90 NA [4,] 102.75 100.3 101.65 106.35 107.05 114.85 103.55 108.2 116.50 112.60 NA [5,] 106.30 101.2 105.10 110.50 114.70 121.00 104.50 109.3 121.00 118.60 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.28702 96.04924 96.58263 100.2282 95.31613 100.7383 97.12481 [2,] 101.21298 99.15076 101.41737 104.9718 104.48387 115.5617 103.87519 [,8] [,9] [,10] [,11] [1,] 103.4546 107.2380 100.0881 NA [2,] 108.7454 114.2620 109.7119 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(95, 97.35, 98.75, 102.75, 106.3, 94.3, 96.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fcx71292070638.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,] 3.876553 11.80 5.0250 [2,] 5.488390 18.05 6.5250 [3,] 6.991346 20.60 8.6000 [4,] 7.513115 22.50 9.7625 [5,] 8.320450 24.00 11.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.067856 18.57033 7.123355 [2,] 7.914837 22.62967 10.076645 $out [1] 10.7 $group [1] 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.8765534520585, 5.4883904579416, 6.9913463270165, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1bbg11292070638.ps tmp/1bbg11292070638.png",intern=TRUE)) character(0) > try(system("convert tmp/243xm1292070638.ps tmp/243xm1292070638.png",intern=TRUE)) character(0) > try(system("convert tmp/343xm1292070638.ps tmp/343xm1292070638.png",intern=TRUE)) character(0) > try(system("convert tmp/443xm1292070638.ps tmp/443xm1292070638.png",intern=TRUE)) character(0) > try(system("convert tmp/5fcx71292070638.ps tmp/5fcx71292070638.png",intern=TRUE)) character(0) > try(system("convert tmp/6fcx71292070638.ps tmp/6fcx71292070638.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.062 0.850 5.268