R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(900,899,898,896,916,915,900,890,891,891,892,894,896,889,878,883,901,897,881,866,867,866,862,871,865,856,847,859,870,872,856,839,829,825,822,827,822,812,810,816,820,823,810,793,777,772,765,765,753,742,736,740,742,742,728,707,699,696,689,692,673,653,642,648,654,653,630,609,598,601,592,591,568,538,523,530,529,534,513,491,480,478,462,461,437,411,400,405,395,407,385,366,349,343,332,327,306,276,269,268,260,274,247,226,212,199,188,179,155,124,117,116,105,112,86,64,53,42,32,24) > 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,] 900 896 865 822 753 673 568 437 306 155 NA [2,] 899 889 856 812 742 653 538 411 276 124 NA [3,] 898 878 847 810 736 642 523 400 269 117 NA [4,] 896 883 859 816 740 648 530 405 268 116 NA [5,] 916 901 870 820 742 654 529 395 260 105 NA [6,] 915 897 872 823 742 653 534 407 274 112 NA [7,] 900 881 856 810 728 630 513 385 247 86 NA [8,] 890 866 839 793 707 609 491 366 226 64 NA [9,] 891 867 829 777 699 598 480 349 212 53 NA [10,] 891 866 825 772 696 601 478 343 199 42 NA [11,] 892 862 822 765 689 592 462 332 188 32 NA [12,] 894 871 827 765 692 591 461 327 179 24 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/rcomp/tmp/1g4e81279988488.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/rcomp/tmp/2g4e81279988488.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/rcomp/tmp/3g4e81279988488.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/rcomp/tmp/4g4e81279988488.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,] 155 124.0 117 116 105 112.0 86 64 53.0 42.0 32.0 24.0 [2,] 437 411.0 400 405 395 407.0 385 366 349.0 343.0 332.0 327.0 [3,] 713 697.5 689 694 698 697.5 679 658 648.5 648.5 640.5 641.5 [4,] 865 856.0 847 859 870 872.0 856 839 829.0 825.0 822.0 827.0 [5,] 900 899.0 898 896 916 915.0 900 890 891.0 891.0 892.0 894.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 499.1541 475.1603 465.661 467.1635 460.6711 465.1675 443.6696 421.6703 [2,] 926.8459 919.8397 912.339 920.8365 935.3289 929.8325 914.3304 894.3297 [,9] [,10] [,11] [,12] [1,] 408.6729 407.6736 395.6765 391.6801 [2,] 888.3271 889.3264 885.3235 891.3199 $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(155, 437, 713, 865, 900, 124, 411, 697.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5rvds1279988488.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,] 890.0 862.0 822.0 765.0 689.0 591.0 461 327 179.0 24.0 NA [2,] 891.5 866.5 828.0 774.5 697.5 599.5 479 346 205.5 47.5 NA [3,] 897.0 879.5 851.5 810.0 732.0 636.0 518 390 253.5 95.5 NA [4,] 900.0 892.5 862.0 818.0 742.0 653.0 532 406 271.5 116.5 NA [5,] 900.0 901.0 872.0 823.0 753.0 673.0 568 437 306.0 155.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,] 893.1231 867.6412 835.9924 790.1594 711.7033 611.5983 493.8263 362.6336 [2,] 900.8769 891.3588 867.0076 829.8406 752.2967 660.4017 542.1737 417.3664 [,9] [,10] [,11] [1,] 223.3970 64.02864 NA [2,] 283.6030 126.97136 NA $out [1] 916 915 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(890, 891.5, 897, 900, 900, 862, 866.5, 879.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6rvds1279988488.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,] 263.2815 745.0 384.500 [2,] 275.5740 780.5 409.500 [3,] 286.4720 812.5 428.250 [4,] 294.4262 843.5 434.625 [5,] 304.8546 870.0 451.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 277.8734 783.7653 416.7903 [2,] 295.0706 841.2347 439.7097 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(263.281534989955, 275.574033923803, 286.472022985976, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1g4e81279988488.ps tmp/1g4e81279988488.png",intern=TRUE)) character(0) > try(system("convert tmp/2g4e81279988488.ps tmp/2g4e81279988488.png",intern=TRUE)) character(0) > try(system("convert tmp/3g4e81279988488.ps tmp/3g4e81279988488.png",intern=TRUE)) character(0) > try(system("convert tmp/4g4e81279988488.ps tmp/4g4e81279988488.png",intern=TRUE)) character(0) > try(system("convert tmp/5rvds1279988488.ps tmp/5rvds1279988488.png",intern=TRUE)) character(0) > try(system("convert tmp/6rvds1279988488.ps tmp/6rvds1279988488.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.280 0.130 1.368