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(321.935,310.215,309.030,305.333,294.735,289.351,288.225,289.648,290.155,288.301,289.148,289.741,287.595,285.226,287.816,283.519,290.304,282.166,280.041,282.500,279.913,277.793,281.229,275.363,273.547,270.601,273.338,271.917,273.985,273.911,270.798,271.115,271.344,274.525,276.663,273.784,274.027,269.160,270.491,270.846,270.333,272.599,272.764,270.674,268.175,268.351,272.482,268.714,269.419,265.518,264.101,267.179,271.322,270.157,271.296,269.907,271.244,266.844,270.911,269.829,269.285,263.018,266.680,265.814,268.457,269.508,270.223,264.676,265.521,262.971,266.003,267.722,266.433) > 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] 73 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 321.935 287.595 273.547 274.027 269.419 269.285 266.433 [2,] 310.215 285.226 270.601 269.160 265.518 263.018 NA [3,] 309.030 287.816 273.338 270.491 264.101 266.680 NA [4,] 305.333 283.519 271.917 270.846 267.179 265.814 NA [5,] 294.735 290.304 273.985 270.333 271.322 268.457 NA [6,] 289.351 282.166 273.911 272.599 270.157 269.508 NA [7,] 288.225 280.041 270.798 272.764 271.296 270.223 NA [8,] 289.648 282.500 271.115 270.674 269.907 264.676 NA [9,] 290.155 279.913 271.344 268.175 271.244 265.521 NA [10,] 288.301 277.793 274.525 268.351 266.844 262.971 NA [11,] 289.148 281.229 276.663 272.482 270.911 266.003 NA [12,] 289.741 275.363 273.784 268.714 269.829 267.722 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/1xjzq1244122219.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/2q4k11244122219.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/3fbjb1244122219.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/4ucoz1244122219.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] [1,] 266.433 263.0180 264.1010 265.8140 268.4570 269.508 270.223 264.6760 [2,] 269.352 265.5180 266.6800 267.1790 270.3330 270.157 270.798 269.9070 [3,] 273.547 269.8805 271.9145 271.3815 272.6535 273.255 272.030 270.8945 [4,] 280.811 285.2260 287.8160 283.5190 290.3040 282.166 280.041 282.5000 [5,] 287.595 310.2150 309.0300 305.3330 294.7350 289.351 288.225 289.6480 [,9] [,10] [,11] [,12] [1,] 265.521 262.971 266.0030 267.7220 [2,] 268.175 266.844 270.9110 268.7140 [3,] 271.294 271.438 274.5725 271.8065 [4,] 279.913 277.793 281.2290 275.3630 [5,] 290.155 288.301 289.1480 275.3630 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 266.7039 257.1682 258.2811 260.8417 259.7716 265.5088 266.0680 262.7716 [2,] 280.3901 282.5928 285.5479 281.9213 285.5354 281.0012 277.9920 279.0174 [,9] [,10] [,11] [,12] [1,] 263.7226 264.3755 267.9171 267.5177 [2,] 278.8654 278.5005 281.2279 276.0953 $out [1] 321.935 289.741 $group [1] 1 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(266.433, 269.352, 273.547, 280.811, 287.595, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5s5km1244122219.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] [1,] 288.2250 275.3630 270.6010 268.1750 264.1010 262.9710 266.433 [2,] 289.2495 279.9770 271.2295 268.9370 267.0115 265.0985 266.433 [3,] 289.9480 282.3330 273.4425 270.5825 269.8680 266.3415 266.433 [4,] 307.1815 286.4105 273.9480 272.5405 271.0775 268.8710 266.433 [5,] 321.9350 290.3040 276.6630 274.0270 271.3220 270.2230 266.433 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 281.7691 279.3986 272.2026 268.9389 268.0135 264.6208 266.433 [2,] 298.1269 285.2674 274.6824 272.2261 271.7225 268.0622 266.433 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(288.225, 289.2495, 289.948, 307.1815, 321.935, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wdjk1244122219.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,] 7.178316 18.002 5.975500 [2,] 8.203906 22.582 8.806125 [3,] 9.252559 25.151 9.655125 [4,] 16.048934 42.224 13.832000 [5,] 19.594476 55.502 16.563750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.67439 16.19215 7.36279 [2,] 12.83073 34.10985 11.94746 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7.17831571934996, 8.20390647828175, 9.25255949154317, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xjzq1244122219.ps tmp/1xjzq1244122219.png") > system("convert tmp/2q4k11244122219.ps tmp/2q4k11244122219.png") > system("convert tmp/3fbjb1244122219.ps tmp/3fbjb1244122219.png") > system("convert tmp/4ucoz1244122219.ps tmp/4ucoz1244122219.png") > system("convert tmp/5s5km1244122219.ps tmp/5s5km1244122219.png") > system("convert tmp/6wdjk1244122219.ps tmp/6wdjk1244122219.png") > > > proc.time() user system elapsed 1.086 0.826 1.454