R version 2.10.1 (2009-12-14) 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(266,145.9,183.1,119.3,180.3,168.5,231.8,224.5,192.8,122.9,336.5,185.9,194.3,149.5,210.1,273.3,191.4,287,226,303.6,289.9,421.6,264.5,342.3,339.7,440.4,315.9,439.3,401.3,437.4,575.5,407.6,682,475.3,581.3,646.9) > 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] 36 > (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] 3 3 3 3 3 3 3 3 3 3 3 3 > arr [,1] [,2] [,3] [,4] [1,] 266.0 194.3 339.7 NA [2,] 145.9 149.5 440.4 NA [3,] 183.1 210.1 315.9 NA [4,] 119.3 273.3 439.3 NA [5,] 180.3 191.4 401.3 NA [6,] 168.5 287.0 437.4 NA [7,] 231.8 226.0 575.5 NA [8,] 224.5 303.6 407.6 NA [9,] 192.8 289.9 682.0 NA [10,] 122.9 421.6 475.3 NA [11,] 336.5 264.5 581.3 NA [12,] 185.9 342.3 646.9 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/yougetitorg/rcomp/tmp/1tkmv1304938538.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/yougetitorg/rcomp/tmp/2dcy41304938538.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/yougetitorg/rcomp/tmp/35ene1304938538.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/yougetitorg/rcomp/tmp/46jj51304938538.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] [,11] [1,] 194.30 145.90 183.1 119.3 180.30 168.50 226.00 224.50 192.80 122.90 264.5 [2,] 230.15 147.70 196.6 196.3 185.85 227.75 228.90 264.05 241.35 272.25 300.5 [3,] 266.00 149.50 210.1 273.3 191.40 287.00 231.80 303.60 289.90 421.60 336.5 [4,] 302.85 294.95 263.0 356.3 296.35 362.20 403.65 355.60 485.95 448.45 458.9 [5,] 339.70 440.40 315.9 439.3 401.30 437.40 575.50 407.60 682.00 475.30 581.3 [,12] [1,] 185.9 [2,] 264.1 [3,] 342.3 [4,] 494.6 [5,] 646.9 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 199.6821 15.17657 149.5290 127.3459 90.60042 164.3529 72.3907 220.0869 [2,] 332.3179 283.82343 270.6710 419.2541 292.19958 409.6471 391.2093 387.1131 [,9] [,10] [,11] [,12] [1,] 66.7726 260.868 192.0054 132.0348 [2,] 513.0274 582.332 480.9946 552.5652 $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(194.3, 230.15, 266, 302.85, 339.7, 145.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5u4rb1304938538.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] [1,] 119.30 149.50 315.90 NA [2,] 157.20 202.20 404.45 NA [3,] 184.50 268.90 439.85 NA [4,] 228.15 296.75 578.40 NA [5,] 266.00 421.60 682.00 NA $n [1] 12 12 12 0 $conf [,1] [,2] [,3] [,4] [1,] 152.1392 225.7751 360.5102 NA [2,] 216.8608 312.0249 519.1898 NA $out [1] 336.5 $group [1] 1 $names [1] "1" "2" "3" NA Warning message: In bxp(list(stats = c(119.3, 157.2, 184.5, 228.15, 266, 149.5, 202.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6ezkn1304938538.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,] 70.18841 132.80 66.400 [2,] 108.17281 202.05 101.025 [3,] 163.05320 305.65 152.825 [4,] 194.99755 350.95 175.475 [5,] 259.00047 489.20 244.600 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 123.4519 237.7357 118.8679 [2,] 202.6545 373.5643 186.7821 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(70.1884130988394, 108.172808179434, 163.053198484879, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tkmv1304938538.ps tmp/1tkmv1304938538.png",intern=TRUE)) character(0) > try(system("convert tmp/2dcy41304938538.ps tmp/2dcy41304938538.png",intern=TRUE)) character(0) > try(system("convert tmp/35ene1304938538.ps tmp/35ene1304938538.png",intern=TRUE)) character(0) > try(system("convert tmp/46jj51304938538.ps tmp/46jj51304938538.png",intern=TRUE)) character(0) > try(system("convert tmp/5u4rb1304938538.ps tmp/5u4rb1304938538.png",intern=TRUE)) character(0) > try(system("convert tmp/6ezkn1304938538.ps tmp/6ezkn1304938538.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.290 1.090 1.788