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(0.440,0.548,0.163,0.381,0.164,0.109,0.328,0.435,0.325,0.108,0.054,0.270,0.431,0.215,0.214,0.160,0.427,0.372,0.106,0.053,0.317,0.527,0.472,0.000,0.052,0.418,0.364,0.311,0.052,0.052,0.620,0.616,1.377,0.151,0.502,0.000,0.606,0.050,0.150,0.501,0.299,0.248,0.545,0.444,0.491,0.444,0.050,0.545,0.138,0.423,0.495,0.370,0.388,0.169,0.241,0.014,0.376,0.331,0.789,0.289,0.359,0.236,0.367,0.309,0.551,0.901,0.870,0.160,0.032,0.877,1.812,0.784,0.270,0.462,0.146,0.108,0.132,0.680,0.117,0.345,0.204,0.227,0.236,0.092,0.138,0.046,0.023,0.009,0.142,0.207,0.346,0.207,0.165,0.247,0.123,0.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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.440 0.431 0.052 0.606 0.138 0.359 0.270 0.138 NA [2,] 0.548 0.215 0.418 0.050 0.423 0.236 0.462 0.046 NA [3,] 0.163 0.214 0.364 0.150 0.495 0.367 0.146 0.023 NA [4,] 0.381 0.160 0.311 0.501 0.370 0.309 0.108 0.009 NA [5,] 0.164 0.427 0.052 0.299 0.388 0.551 0.132 0.142 NA [6,] 0.109 0.372 0.052 0.248 0.169 0.901 0.680 0.207 NA [7,] 0.328 0.106 0.620 0.545 0.241 0.870 0.117 0.346 NA [8,] 0.435 0.053 0.616 0.444 0.014 0.160 0.345 0.207 NA [9,] 0.325 0.317 1.377 0.491 0.376 0.032 0.204 0.165 NA [10,] 0.108 0.527 0.151 0.444 0.331 0.877 0.227 0.247 NA [11,] 0.054 0.472 0.502 0.050 0.789 1.812 0.236 0.123 NA [12,] 0.270 0.000 0.000 0.545 0.289 0.784 0.092 0.433 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/1ysrj1305829221.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/2i5vm1305829221.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/3li4q1305829221.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/41tr01305829221.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,] 0.0520 0.0460 0.0230 0.0090 0.0520 0.0520 0.1060 0.0140 0.0320 0.1080 [2,] 0.1380 0.1325 0.1480 0.1340 0.1370 0.1390 0.1790 0.1065 0.1845 0.1890 [3,] 0.3145 0.3270 0.1885 0.3100 0.2315 0.2275 0.3370 0.2760 0.3210 0.2890 [4,] 0.4355 0.4425 0.3655 0.3755 0.4075 0.5260 0.5825 0.4395 0.4335 0.4855 [5,] 0.6060 0.5480 0.4950 0.5010 0.5510 0.9010 0.8700 0.6160 0.4910 0.8770 [,11] [,12] [1,] 0.0500 0.0000 [2,] 0.0885 0.0460 [3,] 0.3540 0.2795 [4,] 0.6455 0.4890 [5,] 0.7890 0.7840 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1483122 0.1538295 0.06700138 0.1750946 0.08039482 0.01131624 0.1115991 [2,] 0.4806878 0.5001705 0.30999862 0.4449054 0.38260518 0.44368376 0.5624009 [,8] [,9] [,10] [,11] [,12] [1,] 0.08998142 0.1819050 0.1233708 0.0428518 0.03203384 [2,] 0.46201858 0.4600950 0.4546292 0.6651482 0.52696616 $out [1] 1.377 1.812 $group [1] 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.052, 0.138, 0.3145, 0.4355, 0.606, 0.046, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5lkht1305829221.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] [,7] [,8] [,9] [1,] 0.0540 0.000 0.0000 0.050 0.0140 0.0320 0.0920 0.0090 NA [2,] 0.1360 0.133 0.0520 0.199 0.2050 0.2725 0.1245 0.0845 NA [3,] 0.2975 0.266 0.3375 0.444 0.3505 0.4590 0.2155 0.1535 NA [4,] 0.4080 0.429 0.5590 0.523 0.4055 0.8735 0.3075 0.2270 NA [5,] 0.5480 0.527 0.6200 0.606 0.4950 0.9010 0.4620 0.4330 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1734390 0.1309924 0.1062539 0.2962214 0.2590506 0.1848799 0.1320325 [2,] 0.4215610 0.4010076 0.5687461 0.5917786 0.4419494 0.7331201 0.2989675 [,8] [,9] [1,] 0.0885048 NA [2,] 0.2184952 NA $out [1] 1.377 0.789 1.812 0.680 $group [1] 3 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.054, 0.136, 0.2975, 0.408, 0.548, 0, 0.133, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6xwi01305829221.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,] 0.1545313 0.4720 0.210500 [2,] 0.1813598 0.5005 0.241250 [3,] 0.2306465 0.6830 0.277000 [4,] 0.2875527 0.8165 0.328875 [5,] 0.4147321 0.8490 0.392000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1822112 0.5388703 0.2370336 [2,] 0.2790818 0.8271297 0.3169664 $out [1] 0.5878184 1.3450000 1.7620000 0.4680000 $group [1] 1 2 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.154531319063252, 0.181359783017274, 0.230646487536193, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ysrj1305829221.ps tmp/1ysrj1305829221.png",intern=TRUE)) character(0) > try(system("convert tmp/2i5vm1305829221.ps tmp/2i5vm1305829221.png",intern=TRUE)) character(0) > try(system("convert tmp/3li4q1305829221.ps tmp/3li4q1305829221.png",intern=TRUE)) character(0) > try(system("convert tmp/41tr01305829221.ps tmp/41tr01305829221.png",intern=TRUE)) character(0) > try(system("convert tmp/5lkht1305829221.ps tmp/5lkht1305829221.png",intern=TRUE)) character(0) > try(system("convert tmp/6xwi01305829221.ps tmp/6xwi01305829221.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.380 1.000 1.836