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(108.87,106.38,104.77,105.38,106.74,110,110.73,115.7,115.44,113.66,118.4,116.71,119.7,114.17,110.52,111.27,111.41,111.62,113.91,118.54,122.26,120.44,121.37,121.49,125,117.24,117.18,115.15,115.27,114.6,117.48,120.8,118.62,116.79,115.46,112.83,115.56,106.66,103.39,102.65,103.22,104.1,104.32) > 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] 43 > (np <- floor(n / par1)) [1] 3 > 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] 4 4 4 4 4 4 4 3 3 3 3 3 > arr [,1] [,2] [,3] [,4] [1,] 108.87 119.70 125.00 115.56 [2,] 106.38 114.17 117.24 106.66 [3,] 104.77 110.52 117.18 103.39 [4,] 105.38 111.27 115.15 102.65 [5,] 106.74 111.41 115.27 103.22 [6,] 110.00 111.62 114.60 104.10 [7,] 110.73 113.91 117.48 104.32 [8,] 115.70 118.54 120.80 NA [9,] 115.44 122.26 118.62 NA [10,] 113.66 120.44 116.79 NA [11,] 118.40 121.37 115.46 NA [12,] 116.71 121.49 112.83 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/freestat/rcomp/tmp/1p3ji1250589647.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/freestat/rcomp/tmp/2mksz1250589647.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/freestat/rcomp/tmp/3h0hs1250589647.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/freestat/rcomp/tmp/4y8gl1250589647.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,] 108.870 106.380 103.390 102.650 103.220 104.10 104.320 115.70 115.44 [2,] 112.215 106.520 104.080 104.015 104.980 107.05 107.525 117.12 117.03 [3,] 117.630 110.415 107.645 108.325 109.075 110.81 112.320 118.54 118.62 [4,] 122.350 115.705 113.850 113.210 113.340 113.11 115.695 119.67 120.44 [5,] 125.000 117.240 117.180 115.150 115.270 114.60 117.480 120.80 122.26 [,10] [,11] [,12] [1,] 113.660 115.460 112.83 [2,] 115.225 116.930 114.77 [3,] 116.790 118.400 116.71 [4,] 118.615 119.885 119.10 [5,] 120.440 121.370 121.49 $n [1] 4 4 4 4 4 4 4 3 3 3 3 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 109.6234 103.1588 99.9267 101.0609 102.4706 106.0226 105.8657 116.2139 [2,] 125.6366 117.6711 115.3633 115.5891 115.6794 115.5974 118.7743 120.8661 [,9] [,10] [,11] [,12] [1,] 115.5094 113.6976 115.7044 112.7601 [2,] 121.7306 119.8824 121.0956 120.6599 $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(108.87, 112.215, 117.63, 122.35, 125, 106.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5oxlv1250589647.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] [1,] 104.770 110.520 112.830 102.650 [2,] 106.560 111.515 115.210 103.305 [3,] 110.365 116.355 116.985 104.100 [4,] 115.570 120.905 118.050 105.490 [5,] 118.400 122.260 120.800 106.660 $n [1] 12 12 12 7 $conf [,1] [,2] [,3] [,4] [1,] 106.2555 112.0722 115.6897 102.7952 [2,] 114.4745 120.6378 118.2803 105.4048 $out [1] 125.00 115.56 $group [1] 3 4 $names [1] "1" "2" "3" NA Warning message: In bxp(list(stats = c(104.77, 106.56, 110.365, 115.57, 118.4, 110.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6pd0q1250589647.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.555491 5.10 2.5500 [2,] 3.402953 6.80 3.4000 [3,] 4.847650 10.68 5.0025 [4,] 5.619328 12.83 7.3400 [5,] 6.810318 16.13 8.3475 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.836747 7.929677 3.205440 [2,] 5.858553 13.430323 6.799560 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.55549082043613, 3.4029532131106, 4.84764994913653, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1p3ji1250589647.ps tmp/1p3ji1250589647.png") > system("convert tmp/2mksz1250589647.ps tmp/2mksz1250589647.png") > system("convert tmp/3h0hs1250589647.ps tmp/3h0hs1250589647.png") > system("convert tmp/4y8gl1250589647.ps tmp/4y8gl1250589647.png") > system("convert tmp/5oxlv1250589647.ps tmp/5oxlv1250589647.png") > system("convert tmp/6pd0q1250589647.ps tmp/6pd0q1250589647.png") > > > proc.time() user system elapsed 1.613 1.255 1.799