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(124.06,124.58,122.00,124.02,124.16,124.29,123.93,124.62,121.81,124.14,124.31,125.15,125.35,125.48,124.17,125.33,124.46,123.39,123.14,122.24,119.31,120.87,120.43,119.41,118.85,119.08,117.25,118.51,118.42,118.56,117.97,117.98,115.25,117.23,117.08,116.83,117.17,117.73,115.74,116.99,116.90,116.49,115.84,115.92,113.32,114.84,114.75,114.84,115.03,115.03,112.99,114.15,113.77,113.57,113.38,112.71,110.27,111.73,112.12,112.31,111.73,111.83,109.99,111.15,111.25,110.87,110.27,110.18,108.15,109.60,109.60,109.41,109.80,109.60,107.76,109.02,108.62,109.02,109.22,108.92,106.69,107.76,107.66,107.85,107.95,107.85,106.30,107.37,107.66,107.46,107.37,107.18,105.43,106.39,106.50,106.50,106.69,106.50,105.14,106.50,106.20,105.72,104.76,104.55,102.71,104.36,104.65,104.46,104.65,103.88,102.32,103.39,103.00,102.71,102.51,102.04,100.00) > 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] 117 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 124.06 125.35 118.85 117.17 115.03 111.73 109.80 107.95 106.69 104.65 [2,] 124.58 125.48 119.08 117.73 115.03 111.83 109.60 107.85 106.50 103.88 [3,] 122.00 124.17 117.25 115.74 112.99 109.99 107.76 106.30 105.14 102.32 [4,] 124.02 125.33 118.51 116.99 114.15 111.15 109.02 107.37 106.50 103.39 [5,] 124.16 124.46 118.42 116.90 113.77 111.25 108.62 107.66 106.20 103.00 [6,] 124.29 123.39 118.56 116.49 113.57 110.87 109.02 107.46 105.72 102.71 [7,] 123.93 123.14 117.97 115.84 113.38 110.27 109.22 107.37 104.76 102.51 [8,] 124.62 122.24 117.98 115.92 112.71 110.18 108.92 107.18 104.55 102.04 [9,] 121.81 119.31 115.25 113.32 110.27 108.15 106.69 105.43 102.71 100.00 [10,] 124.14 120.87 117.23 114.84 111.73 109.60 107.76 106.39 104.36 NA [11,] 124.31 120.43 117.08 114.75 112.12 109.60 107.66 106.50 104.65 NA [12,] 125.15 119.41 116.83 114.84 112.31 109.41 107.85 106.50 104.46 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/1ahfz1258195793.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/2q7kz1258195793.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/3ohpk1258195793.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/4x6hx1258195793.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] [1,] 104.65 103.88 102.32 103.39 103.00 102.71 102.510 102.040 100.00 104.36 [2,] 107.95 107.85 106.30 107.37 107.66 107.46 107.370 107.180 105.43 107.76 [3,] 113.38 113.43 111.49 112.65 112.51 112.22 111.825 111.445 109.21 111.73 [4,] 118.85 119.08 117.25 118.51 118.42 118.56 117.970 117.980 115.25 117.23 [5,] 125.35 125.48 124.17 125.33 124.46 124.29 123.930 124.620 121.81 124.14 [,11] [,12] [1,] 104.65 104.46 [2,] 107.66 107.85 [3,] 112.12 112.31 [4,] 117.08 116.83 [5,] 124.31 125.15 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 107.9339 107.8190 106.0189 107.0840 107.1339 106.674 106.5288 106.0489 [2,] 118.8261 119.0410 116.9611 118.2160 117.8861 117.766 117.1212 116.8411 [,9] [,10] [,11] [,12] [1,] 104.3035 106.7425 107.1588 107.5805 [2,] 114.1165 116.7175 117.0812 117.0395 $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(104.65, 107.95, 113.38, 118.85, 125.35, 103.88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nejy1258195793.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,] 123.930 119.310 115.250 113.320 110.270 108.150 106.69 105.430 102.710 [2,] 123.975 120.650 117.155 114.840 112.215 109.600 107.76 106.445 104.505 [3,] 124.150 123.265 117.975 115.880 113.185 110.225 108.77 107.275 104.950 [4,] 124.445 124.895 118.535 116.945 113.960 111.200 109.12 107.560 106.350 [5,] 124.620 125.480 119.080 117.730 115.030 111.830 109.80 107.950 106.690 [,10] [1,] 102.04 [2,] 102.32 [3,] 102.71 [4,] 103.39 [5,] 104.65 $n [1] 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 123.9356 121.3288 117.3456 114.9199 112.3891 109.4952 108.1497 106.7664 [2,] 124.3644 125.2012 118.6044 116.8401 113.9809 110.9548 109.3903 107.7836 [,9] [,10] [1,] 104.1085 102.1465 [2,] 105.7915 103.2735 $out [1] 122.00 121.81 125.15 100.00 $group [1] 1 1 1 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(123.93, 123.975, 124.15, 124.445, 124.62, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6bt7g1258195793.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,] 6.667564 19.660 8.98000 [2,] 6.928027 20.695 9.44500 [3,] 7.344236 21.520 9.93375 [4,] 7.448140 21.830 10.20000 [5,] 7.489396 22.580 10.45500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.107010 21.00232 9.58939 [2,] 7.581463 22.03768 10.27811 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.66756410626183, 6.9280269239552, 7.34423639417132, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ahfz1258195793.ps tmp/1ahfz1258195793.png") > system("convert tmp/2q7kz1258195793.ps tmp/2q7kz1258195793.png") > system("convert tmp/3ohpk1258195793.ps tmp/3ohpk1258195793.png") > system("convert tmp/4x6hx1258195793.ps tmp/4x6hx1258195793.png") > system("convert tmp/5nejy1258195793.ps tmp/5nejy1258195793.png") > system("convert tmp/6bt7g1258195793.ps tmp/6bt7g1258195793.png") > > > proc.time() user system elapsed 1.066 0.806 2.028