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.6,104.3,120.4,107.5,102.9,125.6,107.5,108.8,128.4,121.1,119.5,128.7,108.7,105.5,119.8,111.3,110.6,120.1,97.5,107.7,127.3,117.2,119.8,116.2,111,112.4,130.6,109.1,118.8,123.9,101.6,112.8,128,129.6,125.8,119.5,115.7,113.6,129.7,112,116.8,127,112.1,114.2,121.1,131.6,125,120.4,117.7,117.5,120.6,127.5,112.3,124.5,115.2,104.7,130.9,129.2,113.5,125.6,107.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] 61 > (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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.6 108.7 111.0 115.7 117.7 107.6 [2,] 104.3 105.5 112.4 113.6 117.5 NA [3,] 120.4 119.8 130.6 129.7 120.6 NA [4,] 107.5 111.3 109.1 112.0 127.5 NA [5,] 102.9 110.6 118.8 116.8 112.3 NA [6,] 125.6 120.1 123.9 127.0 124.5 NA [7,] 107.5 97.5 101.6 112.1 115.2 NA [8,] 108.8 107.7 112.8 114.2 104.7 NA [9,] 128.4 127.3 128.0 121.1 130.9 NA [10,] 121.1 117.2 129.6 131.6 129.2 NA [11,] 119.5 119.8 125.8 125.0 113.5 NA [12,] 128.7 116.2 119.5 120.4 125.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/18xhs1258121344.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/259uk1258121344.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/30k6v1258121344.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/4nk9g1258121344.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] [,9] [,10] [,11] [,12] [1,] 100.60 104.3 119.8 107.5 102.9 123.9 97.5 104.7 127.3 117.2 113.5 116.2 [2,] 107.60 105.5 120.4 109.1 110.6 123.9 101.6 107.7 127.3 121.1 119.5 119.5 [3,] 109.85 112.4 120.6 111.3 112.3 124.5 107.5 108.8 128.0 129.2 119.8 120.4 [4,] 115.70 113.6 129.7 112.0 116.8 125.6 112.1 112.8 128.4 129.6 125.0 125.6 [5,] 117.70 117.5 130.6 112.0 118.8 127.0 115.2 114.2 128.4 131.6 125.8 128.7 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.6252 106.6766 114.0286 109.2509 107.9191 123.2988 100.0807 105.1964 [2,] 115.0748 118.1234 127.1714 113.3491 116.6809 125.7012 114.9193 112.4036 [,9] [,10] [,11] [,12] [1,] 127.2227 123.1939 115.9137 116.0898 [2,] 128.7773 135.2061 123.6863 124.7102 $out [1] 127.5 120.1 121.1 130.9 $group [1] 4 6 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(100.6, 107.6, 109.85, 115.7, 117.7, 104.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5dl3e1258121344.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,] 100.60 97.50 101.60 112.0 104.70 107.6 [2,] 105.90 108.20 111.70 113.9 114.35 107.6 [3,] 114.15 113.75 119.15 118.6 119.15 107.6 [4,] 123.35 119.80 126.90 126.0 126.55 107.6 [5,] 128.70 127.30 130.60 131.6 130.90 107.6 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 106.1909 108.4592 112.2172 113.0811 113.5855 107.6 [2,] 122.1091 119.0408 126.0828 124.1189 124.7145 107.6 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.6, 105.9, 114.15, 123.35, 128.7, 97.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/68y4w1258121344.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,] 2.587856 6.90 1.10 [2,] 4.413155 10.30 4.00 [3,] 5.516353 12.85 6.15 [4,] 6.219094 16.50 8.30 [5,] 8.038159 20.00 10.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.692653 10.02214 4.188741 [2,] 6.340054 15.67786 8.111259 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.587856255668, 4.41315493231332, 5.51635346550219, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/18xhs1258121344.ps tmp/18xhs1258121344.png") > system("convert tmp/259uk1258121344.ps tmp/259uk1258121344.png") > system("convert tmp/30k6v1258121344.ps tmp/30k6v1258121344.png") > system("convert tmp/4nk9g1258121344.ps tmp/4nk9g1258121344.png") > system("convert tmp/5dl3e1258121344.ps tmp/5dl3e1258121344.png") > system("convert tmp/68y4w1258121344.ps tmp/68y4w1258121344.png") > > > proc.time() user system elapsed 1.048 0.825 1.288