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(568,567,566,564,584,583,568,558,559,559,560,562,563,552,552,555,575,567,548,541,544,546,551,550,546,532,523,528,555,543,525,517,519,521,520,516,509,494,484,482,508,500,480,467,471,482,481,477,471,455,441,434,459,448,432,414,415,423,425,427,415,399,386,377,397,379,361,350,348,363,367,365,354,327,312,307,335,317,298,286,288,303,310,301,293,264,255,251,279,253,233,226,232,245,250,242,230,196,188,181,212,186,166,155,157,173,182,182,168,131,114,106,134,103,83,74,83,96,95,100) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 568 563 546 509 471 415 354 293 230 168 NA [2,] 567 552 532 494 455 399 327 264 196 131 NA [3,] 566 552 523 484 441 386 312 255 188 114 NA [4,] 564 555 528 482 434 377 307 251 181 106 NA [5,] 584 575 555 508 459 397 335 279 212 134 NA [6,] 583 567 543 500 448 379 317 253 186 103 NA [7,] 568 548 525 480 432 361 298 233 166 83 NA [8,] 558 541 517 467 414 350 286 226 155 74 NA [9,] 559 544 519 471 415 348 288 232 157 83 NA [10,] 559 546 521 482 423 363 303 245 173 96 NA [11,] 560 551 520 481 425 367 310 250 182 95 NA [12,] 562 550 516 477 427 365 301 242 182 100 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/1d3ug1279625879.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/2d3ug1279625879.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/3ocbj1279625879.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/4ocbj1279625879.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] [,12] [1,] 168 131 114.0 106.0 134 103.0 83.0 74 83.0 96 95 100 [2,] 293 264 255.0 251.0 279 253.0 233.0 226 232.0 245 250 242 [3,] 443 427 413.5 405.5 428 413.5 396.5 382 381.5 393 396 396 [4,] 546 532 523.0 528.0 555 543.0 525.0 517 519.0 521 520 516 [5,] 568 567 566.0 564.0 584 583.0 568.0 558 559.0 559 560 562 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 316.5911 293.0965 279.5965 267.0998 290.0994 268.6044 250.6052 236.6048 [2,] 569.4089 560.9035 547.4035 543.9002 565.9006 558.3956 542.3948 527.3952 [,9] [,10] [,11] [,12] [1,] 238.1034 255.0994 261.0972 259.0987 [2,] 524.8966 530.9006 530.9028 532.9013 $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(168, 293, 443, 546, 568, 131, 264, 427, 532, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ocbj1279625879.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] [,9] [,10] [,11] [1,] 558.0 541.0 516.0 467.0 414.0 348.0 286.0 226.0 155.0 74.0 NA [2,] 559.5 547.0 519.5 478.5 424.0 362.0 299.5 237.5 169.5 89.0 NA [3,] 565.0 551.5 524.0 482.0 433.0 372.0 308.5 250.5 182.0 101.5 NA [4,] 568.0 559.0 537.5 497.0 451.5 391.5 322.0 259.5 192.0 122.5 NA [5,] 568.0 575.0 555.0 509.0 471.0 415.0 354.0 279.0 212.0 168.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 561.1231 546.0267 515.7901 473.562 420.4571 358.5449 298.2376 240.4657 [2,] 568.8769 556.9733 532.2099 490.438 445.5429 385.4551 318.7624 260.5343 [,9] [,10] [,11] [1,] 171.7376 86.22043 NA [2,] 192.2624 116.77957 NA $out [1] 584 583 293 230 $group [1] 1 1 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(558, 559.5, 565, 568, 568, 541, 547, 551.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ylsm1279625879.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,] 155.4178 436.0 228.500 [2,] 159.0785 451.0 244.625 [3,] 161.9079 462.5 250.875 [4,] 168.2124 478.0 262.125 [5,] 169.5983 485.0 264.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 157.7419 450.1851 242.8931 [2,] 166.0740 474.8149 258.8569 $out [1] 144.5976 400.0000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(155.417752453759, 159.078481430131, 161.907902894569, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d3ug1279625879.ps tmp/1d3ug1279625879.png",intern=TRUE)) character(0) > try(system("convert tmp/2d3ug1279625879.ps tmp/2d3ug1279625879.png",intern=TRUE)) character(0) > try(system("convert tmp/3ocbj1279625879.ps tmp/3ocbj1279625879.png",intern=TRUE)) character(0) > try(system("convert tmp/4ocbj1279625879.ps tmp/4ocbj1279625879.png",intern=TRUE)) character(0) > try(system("convert tmp/5ocbj1279625879.ps tmp/5ocbj1279625879.png",intern=TRUE)) character(0) > try(system("convert tmp/6ylsm1279625879.ps tmp/6ylsm1279625879.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.048 0.810 1.422