R version 2.7.0 (2008-04-22) 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(38,38,37.93,38,38.02,38.02,38.02,37.96,37.96,37.99,38,38,38,38.01,38.06,38.02,38.05,38.05,38.05,38.05,38.03,37.98,38.03,38.04,38.04,38.08,38.14,38.37,38.49,38.55,38.55,38.55,38.48,38.51,38.48,38.48,38.48,38.43,38.43,38.45,38.48,38.47,38.47,38.42,38.55,38.56,38.57,38.57,38.57,38.57,38.62,38.73,38.74,38.68,38.69,38.69,38.61,38.77,38.78,38.81,38.81,38.81,38.76,38.93,38.95,38.97,38.97,38.96,38.92,38.95,38.95,38.97,38.97,39.05,39.08,38.83,38.86,38.87,38.87,38.75,38.86,38.93,38.96,38.95) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 38.00 38.00 38.04 38.48 38.57 38.81 38.97 NA [2,] 38.00 38.01 38.08 38.43 38.57 38.81 39.05 NA [3,] 37.93 38.06 38.14 38.43 38.62 38.76 39.08 NA [4,] 38.00 38.02 38.37 38.45 38.73 38.93 38.83 NA [5,] 38.02 38.05 38.49 38.48 38.74 38.95 38.86 NA [6,] 38.02 38.05 38.55 38.47 38.68 38.97 38.87 NA [7,] 38.02 38.05 38.55 38.47 38.69 38.97 38.87 NA [8,] 37.96 38.05 38.55 38.42 38.69 38.96 38.75 NA [9,] 37.96 38.03 38.48 38.55 38.61 38.92 38.86 NA [10,] 37.99 37.98 38.51 38.56 38.77 38.95 38.93 NA [11,] 38.00 38.03 38.48 38.57 38.78 38.95 38.96 NA [12,] 38.00 38.04 38.48 38.57 38.81 38.97 38.95 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/1spfy1212152867.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/2vyk81212152867.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/3f1pr1212152867.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/4fxbt1212152867.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] [1,] 38.00 38.000 37.93 38.000 38.020 38.020 38.02 37.960 37.960 37.98 38.000 [2,] 38.02 38.045 38.10 38.195 38.265 38.260 38.26 38.235 38.255 38.25 38.255 [3,] 38.48 38.430 38.43 38.450 38.490 38.550 38.55 38.550 38.550 38.56 38.570 [4,] 38.69 38.690 38.69 38.780 38.800 38.775 38.78 38.720 38.735 38.85 38.865 [5,] 38.97 39.050 39.08 38.930 38.950 38.970 38.97 38.960 38.920 38.95 38.960 [,12] [1,] 38.00 [2,] 38.26 [3,] 38.57 [4,] 38.88 [5,] 38.97 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 38.07989 38.04482 38.07766 38.10065 38.17051 38.24245 38.23946 38.26037 [2,] 38.88011 38.81518 38.78234 38.79935 38.80949 38.85755 38.86054 38.83963 [,9] [,10] [,11] [,12] [1,] 38.26335 38.20169 38.20572 38.19975 [2,] 38.83665 38.91831 38.93428 38.94025 $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(38, 38.02, 38.48, 38.69, 38.97, 38, 38.045, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5q7v41212152867.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] [1,] 37.930 37.980 38.040 38.420 38.570 38.760 38.750 NA [2,] 37.975 38.015 38.255 38.440 38.615 38.865 38.860 NA [3,] 38.000 38.035 38.480 38.475 38.690 38.950 38.900 NA [4,] 38.010 38.050 38.530 38.555 38.755 38.965 38.965 NA [5,] 38.020 38.060 38.550 38.570 38.810 38.970 39.080 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 37.98404 38.01904 38.35457 38.42255 38.62615 38.90439 38.85211 NA [2,] 38.01596 38.05096 38.60543 38.52745 38.75385 38.99561 38.94789 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(37.93, 37.975, 38, 38.01, 38.02, 37.98, 38.015, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/624rp1212152867.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,] 0.3676826 0.930 0.4800 [2,] 0.3711371 0.950 0.5175 [3,] 0.3871681 0.965 0.5875 [4,] 0.4048173 0.985 0.6150 [5,] 0.4160300 1.000 0.6700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3718063 0.9490363 0.5430296 [2,] 0.4025299 0.9809637 0.6319704 $out [1] 1.05 1.15 $group [1] 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.36768257531528, 0.371137055383782, 0.387168111559886, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1spfy1212152867.ps tmp/1spfy1212152867.png") > system("convert tmp/2vyk81212152867.ps tmp/2vyk81212152867.png") > system("convert tmp/3f1pr1212152867.ps tmp/3f1pr1212152867.png") > system("convert tmp/4fxbt1212152867.ps tmp/4fxbt1212152867.png") > system("convert tmp/5q7v41212152867.ps tmp/5q7v41212152867.png") > system("convert tmp/624rp1212152867.ps tmp/624rp1212152867.png") > > > proc.time() user system elapsed 2.323 1.356 2.531