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(7089,77102,35123,23109,11115,48105,7896,79102,2494,76101,9484,8183,9092,49109,27127,31116,77120,80115,67117,18110,3099,3105,5786,7387,5089,288,65108,44100,68102,8798,8183,288,3680,9374,2271,4671,3466,8068,2780,9883,6479,3373,6468,460,5553,6157,2345,3744,6144,9948,2049,9549,6049,745,9643,9938,5535,6932,1827,9726,7624,9529,7631,6132,7534,2137,8738,8836,3230,633,9126,123) > 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] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7089 9092 5089 3466 6144 7624 NA [2,] 77102 49109 288 8068 9948 9529 NA [3,] 35123 27127 65108 2780 2049 7631 NA [4,] 23109 31116 44100 9883 9549 6132 NA [5,] 11115 77120 68102 6479 6049 7534 NA [6,] 48105 80115 8798 3373 745 2137 NA [7,] 7896 67117 8183 6468 9643 8738 NA [8,] 79102 18110 288 460 9938 8836 NA [9,] 2494 3099 3680 5553 5535 3230 NA [10,] 76101 3105 9374 6157 6932 633 NA [11,] 9484 5786 2271 2345 1827 9126 NA [12,] 8183 7387 4671 3744 9726 123 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 70013 40017 -4801 4602 3804 1905 NA [2,] -41979 -21982 64820 -5288 -7899 -1898 NA [3,] -12014 3989 -21008 7103 7500 -1499 NA [4,] -11994 46004 24002 -3404 -3500 1402 NA [5,] 36990 2995 -59304 -3106 -5304 -5397 NA [6,] -40209 -12998 -615 3095 8898 6601 NA [7,] 71206 -49007 -7895 -6008 295 98 NA [8,] -76608 -15011 3392 5093 -4403 -5606 NA [9,] 73607 6 5694 604 1397 -2597 NA [10,] -66617 2681 -7103 -3812 -5105 8493 NA [11,] -1301 1601 2400 1399 7899 -9003 NA [12,] 909 -2298 -1205 2400 -2102 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1qvxh1272375475.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2qvxh1272375475.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3qvxh1272375475.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/41mwk1272375475.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,] 3466.0 288.0 2049 6132 6049.0 745.0 6468.0 288 2494 633.0 1827.0 [2,] 5089.0 8068.0 2780 9549 6479.0 2137.0 7896.0 460 3099 3105.0 2271.0 [3,] 6616.5 9738.5 17379 16496 9324.5 6085.5 8460.5 9387 3455 6544.5 4065.5 [4,] 7624.0 49109.0 35123 31116 68102.0 48105.0 9643.0 18110 5535 9374.0 9126.0 [5,] 9092.0 77102.0 65108 44100 77120.0 80115.0 9643.0 18110 5553 9374.0 9484.0 [,12] [1,] 123 [2,] 3744 [3,] 6029 [4,] 8183 [5,] 9726 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4981.343 -16734.27 -3483.280 2584.588 -30424.33 -23565.34 7333.629 [2,] 8251.657 36211.27 38241.280 30407.412 49073.33 35736.34 9587.371 [,8] [,9] [,10] [,11] [,12] [1,] -1997.82 1883.701 2500.793 -356.1964 3165.702 [2,] 20771.82 5026.299 10588.207 8487.1964 8892.298 $out [1] 67117 79102 76101 $group [1] 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3466, 5089, 6616.5, 7624, 9092, 288, 8068, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51mwk1272375475.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -4801 -41979.0 -21008 -11994 -5397 -40209 -7895 -15011.0 -2597.0 -7103.0 [2,] 1905 -21982.0 -12014 -3500 -5397 -12998 -7895 -15011.0 6.0 -7103.0 [3,] 4203 -6593.5 1245 -1001 -4205 1240 -2955 -5004.5 1000.5 -4458.5 [4,] 40017 -1898.0 7103 24002 2995 6601 295 3392.0 5694.0 2681.0 [5,] 70013 -1898.0 7500 46004 2995 8898 295 5093.0 5694.0 8493.0 [,11] [,12] [1,] -1301 -2298 [2,] -1301 -2102 [3,] 1500 -1205 [4,] 2400 909 [5,] 7899 2400 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -20380.47 -19548.329 -11086.08 -18740.68 -9618.111 -11401.99 -8237.815 [2,] 28786.47 6361.329 13576.08 16738.68 1208.111 13881.99 2327.815 [,8] [,9] [,10] [,11] [,12] [1,] -16875.03 -2668.444 -10769.496 -887.2645 -3332.565 [2,] 6866.03 4669.444 1852.496 3887.2645 922.565 $out [1] 64820 36990 -59304 71206 -49007 -76608 73607 -66617 -9003 $group [1] 2 5 5 7 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4801, 1905, 4203, 40017, 70013, -41979, -21982, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61mwk1272375475.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,] 2494.0 3099.0 288.0 460.0 745.0 123.0 NA [2,] 8039.5 6586.5 2975.5 3076.5 3792.0 2683.5 NA [3,] 17112.0 22618.5 6636.0 4648.5 6538.0 7579.0 NA [4,] 62103.0 58113.0 26737.0 6473.5 9684.5 8787.0 NA [5,] 79102.0 80115.0 44100.0 9883.0 9948.0 9529.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7546.725 -883.0825 -4201.78 3099.105 3850.391 4795.153 NA [2,] 41770.725 46120.0825 17473.78 6197.895 9225.609 10362.847 NA $out [1] 65108 68102 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2494, 8039.5, 17112, 62103, 79102, 3099, 6586.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7udd41272375475.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 3931.833 3455.00 4101.500 [2,] 6028.167 6057.25 6147.812 [3,] 18731.583 7538.50 9001.375 [4,] 23590.917 9562.75 19867.750 [5,] 29399.833 9738.50 30299.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10721.10 5939.618 2743.619 [2,] 26742.07 9137.382 15259.131 $out [1] 17379 16496 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3931.83333333333, 6028.16666666667, 18731.5833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qvxh1272375475.ps tmp/1qvxh1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/2qvxh1272375475.ps tmp/2qvxh1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/3qvxh1272375475.ps tmp/3qvxh1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/41mwk1272375475.ps tmp/41mwk1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/51mwk1272375475.ps tmp/51mwk1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/61mwk1272375475.ps tmp/61mwk1272375475.png",intern=TRUE)) character(0) > try(system("convert tmp/7udd41272375475.ps tmp/7udd41272375475.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.183 0.933 2.952