R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(105.6,110.2,104.9,102.9,102.6,103.6,107.8,106.6,106,105.2,107.9,107.5,107.5,113.3,107.8,104.5,105.1,104.2,106.6,103.8,107.7,106.4,110,113.2,113.9,112,113.9,113.1,111.7,110.7,113.5,114,112.7,112.2,115.8,118.4,118.8,123.9,118,120.2,118.7,119.8,124.8,121.3,120.2,118.3,129.6,130.2,127.19,133.1,129.12,123.28,123.36,124.13,126.96,127.14,123.7,123.67,130.19,134.01,124.96,129.96,128.32,132.38,126.25,128.91,131.42,129.44,126.86,126.71,131.63,132.78,126.61,132.84,123.14,128.13,125.49,126.48,130.86,127.32,126.56,126.64,129.26,126.47,135.38,135.5,132.22,122.62,125.16,128.5,133.86,128.87,125.07,125.25,132.16,130.24) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 105.6 107.5 113.9 118.8 127.19 124.96 126.61 135.38 NA [2,] 110.2 113.3 112.0 123.9 133.10 129.96 132.84 135.50 NA [3,] 104.9 107.8 113.9 118.0 129.12 128.32 123.14 132.22 NA [4,] 102.9 104.5 113.1 120.2 123.28 132.38 128.13 122.62 NA [5,] 102.6 105.1 111.7 118.7 123.36 126.25 125.49 125.16 NA [6,] 103.6 104.2 110.7 119.8 124.13 128.91 126.48 128.50 NA [7,] 107.8 106.6 113.5 124.8 126.96 131.42 130.86 133.86 NA [8,] 106.6 103.8 114.0 121.3 127.14 129.44 127.32 128.87 NA [9,] 106.0 107.7 112.7 120.2 123.70 126.86 126.56 125.07 NA [10,] 105.2 106.4 112.2 118.3 123.67 126.71 126.64 125.25 NA [11,] 107.9 110.0 115.8 129.6 130.19 131.63 129.26 132.16 NA [12,] 107.5 113.2 118.4 130.2 134.01 132.78 126.47 130.24 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/14izt1230048631.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/2sr1j1230048631.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/303n91230048631.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/4i4nk1230048631.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] [1,] 105.60 110.20 104.90 102.900 102.600 103.600 106.60 103.800 106.000 [2,] 110.70 112.65 110.85 108.800 108.400 107.450 110.65 110.300 110.200 [3,] 121.88 126.93 120.57 121.410 121.030 121.965 125.88 124.220 121.950 [4,] 126.90 132.97 128.72 125.705 125.325 127.490 131.14 128.095 125.815 [5,] 135.38 135.50 132.22 132.380 126.250 128.910 133.86 129.440 126.860 [,10] [,11] [,12] [1,] 105.200 107.90 107.500 [2,] 109.300 112.90 115.800 [3,] 120.985 129.43 128.335 [4,] 125.945 130.91 131.510 [5,] 126.710 132.16 134.010 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 112.8304 115.5790 110.5876 111.9666 111.5755 110.7704 114.434 114.2795 [2,] 130.9296 138.2810 130.5524 130.8534 130.4845 133.1596 137.326 134.1605 [,9] [,10] [,11] [,12] [1,] 113.2272 111.6869 119.3694 119.5592 [2,] 130.6728 130.2831 139.4906 137.1108 $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(105.6, 110.7, 121.88, 126.9, 135.38, 110.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k0je1230048631.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] [,8] [,9] [1,] 102.60 103.80 110.70 118.00 123.280 124.960 125.490 122.620 NA [2,] 104.25 104.80 112.10 118.75 123.685 126.785 126.475 125.205 NA [3,] 105.80 107.05 113.30 120.20 127.050 129.175 126.625 129.555 NA [4,] 107.65 108.90 113.95 124.35 129.655 131.525 128.695 133.040 NA [5,] 110.20 113.30 115.80 130.20 134.010 132.780 130.860 135.500 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.2492 105.1800 112.4562 117.6458 124.3270 127.0131 125.6124 125.9814 [2,] 107.3508 108.9200 114.1438 122.7542 129.7730 131.3369 127.6376 133.1286 [,9] [1,] NA [2,] NA $out [1] 118.40 132.84 123.14 $group [1] 3 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(102.6, 104.25, 105.8, 107.65, 110.2, 103.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ttoa1230048631.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,] 8.572382 20.860 13.54250 [2,] 9.727025 23.955 14.22375 [3,] 10.325419 25.475 15.37500 [4,] 10.589328 27.290 17.05500 [5,] 11.028419 29.780 19.93000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 9.932116 23.95388 14.08365 [2,] 10.718721 26.99612 16.66635 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.5723816285624, 9.7270247494399, 10.3254187397519, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/14izt1230048631.ps tmp/14izt1230048631.png") > system("convert tmp/2sr1j1230048631.ps tmp/2sr1j1230048631.png") > system("convert tmp/303n91230048631.ps tmp/303n91230048631.png") > system("convert tmp/4i4nk1230048631.ps tmp/4i4nk1230048631.png") > system("convert tmp/5k0je1230048631.ps tmp/5k0je1230048631.png") > system("convert tmp/6ttoa1230048631.ps tmp/6ttoa1230048631.png") > > > proc.time() user system elapsed 1.055 0.816 1.320