R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(99.96,100.21,100.37,101.11,101.04,101.02,101.02,101.11,100.96,101.27,101.01,101.07,101.07,101.07,101.24,101.29,101.67,101.66,101.66,101.66,101.8,102.32,102.38,102.4,102.39,102.78,102.81,102.82,102.96,102.98,102.98,103.03,103.26,103.47,103.58,103.52,103.52,103.52,103.54,103.74,103.94,103.9,103.9,103.9,103.87,104.51,104.82,104.87,104.87,105.13,105.22,105.02,104.7,104.76,104.76,104.57,104.64,104.72,104.49,104.42) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.96 101.07 102.39 103.52 104.87 NA [2,] 100.21 101.07 102.78 103.52 105.13 NA [3,] 100.37 101.24 102.81 103.54 105.22 NA [4,] 101.11 101.29 102.82 103.74 105.02 NA [5,] 101.04 101.67 102.96 103.94 104.70 NA [6,] 101.02 101.66 102.98 103.90 104.76 NA [7,] 101.02 101.66 102.98 103.90 104.76 NA [8,] 101.11 101.66 103.03 103.90 104.57 NA [9,] 100.96 101.80 103.26 103.87 104.64 NA [10,] 101.27 102.32 103.47 104.51 104.72 NA [11,] 101.01 102.38 103.58 104.82 104.49 NA [12,] 101.07 102.40 103.52 104.87 104.42 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/rcomp/tmp/1y3es1322487392.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/rcomp/tmp/2376n1322487392.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/rcomp/tmp/3vio61322487392.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/rcomp/tmp/4kt1s1322487392.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] [1,] 99.96 100.21 100.37 101.11 101.04 101.02 101.02 101.11 100.96 101.27 [2,] 101.07 101.07 101.24 101.29 101.67 101.66 101.66 101.66 101.80 102.32 [3,] 102.39 102.78 102.81 102.82 102.96 102.98 102.98 103.03 103.26 103.47 [4,] 103.52 103.52 103.54 103.74 103.94 103.90 103.90 103.90 103.87 104.51 [5,] 104.87 105.13 105.22 105.02 104.70 104.76 104.76 104.57 104.64 104.72 [,11] [,12] [1,] 101.01 101.07 [2,] 102.38 102.40 [3,] 103.58 103.52 [4,] 104.49 104.42 [5,] 104.82 104.87 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.6588 101.0488 101.1848 101.0888 101.3560 101.3972 101.3972 101.4472 [2,] 104.1212 104.5112 104.4352 104.5512 104.5640 104.5628 104.5628 104.6128 [,9] [,10] [,11] [,12] [1,] 101.7973 101.9226 102.0891 102.0927 [2,] 104.7227 105.0174 105.0709 104.9473 $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(99.96, 101.07, 102.39, 103.52, 104.87, 100.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5rtmd1322487392.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] [1,] 100.210 101.070 102.390 103.520 104.420 NA [2,] 100.665 101.265 102.815 103.640 104.605 NA [3,] 101.020 101.660 102.980 103.900 104.740 NA [4,] 101.090 102.060 103.365 104.225 104.945 NA [5,] 101.270 102.400 103.580 104.870 105.220 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.8262 101.2974 102.7291 103.6332 104.5849 NA [2,] 101.2138 102.0226 103.2309 104.1668 104.8951 NA $out [1] 99.96 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.21, 100.665, 101.02, 101.09, 101.27, 101.07, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6rm1m1322487392.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,] 1.460900 3.45 2.020 [2,] 1.514981 3.67 2.150 [3,] 1.544038 3.77 2.240 [4,] 1.782728 4.38 2.375 [5,] 1.956775 4.92 2.450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.421917 3.446164 2.137376 [2,] 1.666160 4.093836 2.342624 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.46090040728312, 1.51498132095393, 1.54403848890597, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1y3es1322487392.ps tmp/1y3es1322487392.png",intern=TRUE)) character(0) > try(system("convert tmp/2376n1322487392.ps tmp/2376n1322487392.png",intern=TRUE)) character(0) > try(system("convert tmp/3vio61322487392.ps tmp/3vio61322487392.png",intern=TRUE)) character(0) > try(system("convert tmp/4kt1s1322487392.ps tmp/4kt1s1322487392.png",intern=TRUE)) character(0) > try(system("convert tmp/5rtmd1322487392.ps tmp/5rtmd1322487392.png",intern=TRUE)) character(0) > try(system("convert tmp/6rm1m1322487392.ps tmp/6rm1m1322487392.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.756 0.352 2.088