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(1954,2302,3054,2414,2226,2725,2589,3470,2400,3180,4009,3924,2072,2434,2956,2828,2687,2629,3150,4119,3030,3055,3821,4001,2529,2472,3134,2789,2758,2993,3282,3437,2804,3076,3782,3889,2271,2452,3084,2522,2769,3438,2839,3746,2632,2851,3871,3618,2389,2344,2678,2492,2858,2246,2800,3869,3007,3023,3907,4209,2353,2570,2903,2910,3782,2759,2931,3641,2794,3070,3576,4106,2452,2206,2488,2416,2534,2521,3093,3903,2907,3025,3812,4209) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1954 2072 2529 2271 2389 2353 2452 NA [2,] 2302 2434 2472 2452 2344 2570 2206 NA [3,] 3054 2956 3134 3084 2678 2903 2488 NA [4,] 2414 2828 2789 2522 2492 2910 2416 NA [5,] 2226 2687 2758 2769 2858 3782 2534 NA [6,] 2725 2629 2993 3438 2246 2759 2521 NA [7,] 2589 3150 3282 2839 2800 2931 3093 NA [8,] 3470 4119 3437 3746 3869 3641 3903 NA [9,] 2400 3030 2804 2632 3007 2794 2907 NA [10,] 3180 3055 3076 2851 3023 3070 3025 NA [11,] 4009 3821 3782 3871 3907 3576 3812 NA [12,] 3924 4001 3889 3618 4209 4106 4209 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/1mk2v1274987833.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/2mk2v1274987833.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/3fb1g1274987833.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/4p2011274987833.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] [1,] 1954.0 2206 2488.0 2414.0 2534.0 2246 2589.0 3437.0 2400 3023 3782 [2,] 2171.5 2323 2790.5 2454.0 2610.5 2575 2819.5 3555.5 2713 3024 3797 [3,] 2353.0 2434 2956.0 2522.0 2758.0 2725 2931.0 3746.0 2804 3055 3821 [4,] 2420.5 2462 3069.0 2808.5 2813.5 2876 3121.5 3886.0 2957 3073 3889 [5,] 2529.0 2570 3134.0 2910.0 2858.0 2993 3282.0 4119.0 3030 3076 4009 [,12] [1,] 3618.0 [2,] 3906.5 [3,] 4001.0 [4,] 4157.5 [5,] 4209.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2204.301 2350.991 2789.684 2310.298 2636.772 2545.248 2750.650 3548.631 [2,] 2501.699 2517.009 3122.316 2733.702 2879.228 2904.752 3111.350 3943.369 [,9] [,10] [,11] [,12] [1,] 2658.287 3025.738 3766.059 3851.107 [2,] 2949.713 3084.262 3875.941 4150.893 $out [1] 2226 3782 3438 3180 2851 3576 $group [1] 5 5 6 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1954, 2171.5, 2353, 2420.5, 2529, 2206, 2323, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5p2011274987833.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] [1,] 1954 2072.0 2472.0 2271 2246.0 2353.0 2206.0 NA [2,] 2351 2658.0 2773.5 2577 2440.5 2776.5 2470.0 NA [3,] 2657 2993.0 3034.5 2845 2829.0 2920.5 2720.5 NA [4,] 3325 3485.5 3359.5 3528 3446.0 3608.5 3452.5 NA [5,] 4009 4119.0 3889.0 3871 4209.0 4106.0 4209.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2212.752 2615.572 2767.221 2411.243 2370.385 2541.019 2272.375 NA [2,] 3101.248 3370.428 3301.779 3278.757 3287.615 3299.981 3168.625 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1954, 2351, 2657, 3325, 4009, 2072, 2658, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60uz41274987833.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,] 98.53595 329.0 49.0 [2,] 170.34882 464.5 171.0 [3,] 216.18200 610.5 250.0 [4,] 241.03479 687.5 301.5 [5,] 245.42257 693.0 354.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 183.9417 508.7882 190.4781 [2,] 248.4223 712.2118 309.5219 $out [1] 480.1712 377.1970 1556.0000 1192.0000 $group [1] 1 1 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(98.5359494465514, 170.348822030759, 216.182001827069, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1mk2v1274987833.ps tmp/1mk2v1274987833.png",intern=TRUE)) character(0) > try(system("convert tmp/2mk2v1274987833.ps tmp/2mk2v1274987833.png",intern=TRUE)) character(0) > try(system("convert tmp/3fb1g1274987833.ps tmp/3fb1g1274987833.png",intern=TRUE)) character(0) > try(system("convert tmp/4p2011274987833.ps tmp/4p2011274987833.png",intern=TRUE)) character(0) > try(system("convert tmp/5p2011274987833.ps tmp/5p2011274987833.png",intern=TRUE)) character(0) > try(system("convert tmp/60uz41274987833.ps tmp/60uz41274987833.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.050 0.802 1.986