R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(41086,39690,43129,37863,35953,29133,24693,22205,21725,27192,21790,13253,37702,30364,32609,30212,29965,28352,25814,22414,20506,28806,22228,13971,36845,35338,35022,34777,26887,23970,22780,17351,21382,24561,17409,11514,31514,27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698) > par1 = '60' > #'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] 1 > 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] 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > arr [,1] [,2] [1,] 41086 29743 [2,] 39690 25591 [3,] 43129 29096 [4,] 37863 26482 [5,] 35953 22405 [6,] 29133 27044 [7,] 24693 17970 [8,] 22205 18730 [9,] 21725 19684 [10,] 27192 19785 [11,] 21790 18479 [12,] 13253 10698 [13,] 37702 NA [14,] 30364 NA [15,] 32609 NA [16,] 30212 NA [17,] 29965 NA [18,] 28352 NA [19,] 25814 NA [20,] 22414 NA [21,] 20506 NA [22,] 28806 NA [23,] 22228 NA [24,] 13971 NA [25,] 36845 NA [26,] 35338 NA [27,] 35022 NA [28,] 34777 NA [29,] 26887 NA [30,] 23970 NA [31,] 22780 NA [32,] 17351 NA [33,] 21382 NA [34,] 24561 NA [35,] 17409 NA [36,] 11514 NA [37,] 31514 NA [38,] 27071 NA [39,] 29462 NA [40,] 26105 NA [41,] 22397 NA [42,] 23843 NA [43,] 21705 NA [44,] 18089 NA [45,] 20764 NA [46,] 25316 NA [47,] 17704 NA [48,] 15548 NA [49,] 28029 NA [50,] 29383 NA [51,] 36438 NA [52,] 32034 NA [53,] 22679 NA [54,] 24319 NA [55,] 18004 NA [56,] 17537 NA [57,] 20366 NA [58,] 22782 NA [59,] 19169 NA [60,] 13807 NA > darr [,1] [,2] [1,] -1396 -4152 [2,] 3439 3505 [3,] -5266 -2614 [4,] -1910 -4077 [5,] -6820 4639 [6,] -4440 -9074 [7,] -2488 760 [8,] -480 954 [9,] 5467 101 [10,] -5402 -1306 [11,] -8537 -7781 [12,] 24449 NA [13,] -7338 NA [14,] 2245 NA [15,] -2397 NA [16,] -247 NA [17,] -1613 NA [18,] -2538 NA [19,] -3400 NA [20,] -1908 NA [21,] 8300 NA [22,] -6578 NA [23,] -8257 NA [24,] 22874 NA [25,] -1507 NA [26,] -316 NA [27,] -245 NA [28,] -7890 NA [29,] -2917 NA [30,] -1190 NA [31,] -5429 NA [32,] 4031 NA [33,] 3179 NA [34,] -7152 NA [35,] -5895 NA [36,] 20000 NA [37,] -4443 NA [38,] 2391 NA [39,] -3357 NA [40,] -3708 NA [41,] 1446 NA [42,] -2138 NA [43,] -3616 NA [44,] 2675 NA [45,] 4552 NA [46,] -7612 NA [47,] -2156 NA [48,] 12481 NA [49,] 1354 NA [50,] 7055 NA [51,] -4404 NA [52,] -9355 NA [53,] 1640 NA [54,] -6315 NA [55,] -467 NA [56,] 2829 NA [57,] 2416 NA [58,] -3613 NA [59,] -5362 NA [60,] 15936 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/freestat/rcomp/tmp/17w0n1241641210.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/freestat/rcomp/tmp/2nq231241641210.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/freestat/rcomp/tmp/3o6041241641210.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/freestat/rcomp/tmp/4nbve1241641210.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] [1,] 29743.0 25591.0 29096.0 26482.0 22405 27044.0 17970.0 18730.0 19684.0 [2,] 29743.0 25591.0 29096.0 26482.0 22405 27044.0 17970.0 18730.0 19684.0 [3,] 35414.5 32640.5 36112.5 32172.5 29179 28088.5 21331.5 20467.5 20704.5 [4,] 41086.0 39690.0 43129.0 37863.0 35953 29133.0 24693.0 22205.0 21725.0 [5,] 41086.0 39690.0 43129.0 37863.0 35953 29133.0 24693.0 22205.0 21725.0 [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 19785.0 18479.0 10698.0 37702 30364 32609 30212 29965 28352 25814 22414 [2,] 19785.0 18479.0 10698.0 37702 30364 32609 30212 29965 28352 25814 22414 [3,] 23488.5 20134.5 11975.5 37702 30364 32609 30212 29965 28352 25814 22414 [4,] 27192.0 21790.0 13253.0 37702 30364 32609 30212 29965 28352 25814 22414 [5,] 27192.0 21790.0 13253.0 37702 30364 32609 30212 29965 28352 25814 22414 [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 [2,] 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 [3,] 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 [4,] 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 [5,] 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [1,] 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 [2,] 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 [3,] 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 [4,] 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 [5,] 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 [,45] [,46] [,47] [,48] [,49] [,50] [,51] [,52] [,53] [,54] [,55] [,56] [1,] 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 [2,] 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 [3,] 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 [4,] 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 [5,] 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 [,57] [,58] [,59] [,60] [1,] 20366 22782 19169 13807 [2,] 20366 22782 19169 13807 [3,] 20366 22782 19169 13807 [4,] 20366 22782 19169 13807 [5,] 20366 22782 19169 13807 $n [1] 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22741.77 16888.69 20434.43 19457.32 14042.79 25754.61 13820.37 16585.13 [2,] 48087.23 48392.31 51790.57 44887.68 44315.21 30422.39 28842.63 24349.87 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [1,] 18424.24 15213.19 16435.36 9120.98 37702 30364 32609 30212 29965 28352 [2,] 22984.76 31763.81 23833.64 14830.02 37702 30364 32609 30212 29965 28352 [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [1,] 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 [2,] 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [,41] [,42] [1,] 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 [2,] 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [,51] [,52] [,53] [,54] [1,] 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 [2,] 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 [,55] [,56] [,57] [,58] [,59] [,60] [1,] 18004 17537 20366 22782 19169 13807 [2,] 18004 17537 20366 22782 19169 13807 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" Warning message: In bxp(list(stats = c(29743, 29743, 35414.5, 41086, 41086, 25591, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5q04f1241641210.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] [,11] [,12] [1,] -4152 3439 -5266 -4077.0 -6820.0 -9074 -2488 -480 101 -5402 -8537 24449 [2,] -4152 3439 -5266 -4077.0 -6820.0 -9074 -2488 -480 101 -5402 -8537 24449 [3,] -2774 3472 -3940 -2993.5 -1090.5 -6757 -864 237 2784 -3354 -8159 24449 [4,] -1396 3505 -2614 -1910.0 4639.0 -4440 760 954 5467 -1306 -7781 24449 [5,] -1396 3505 -2614 -1910.0 4639.0 -4440 760 954 5467 -1306 -7781 24449 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -7338 2245 -2397 -247 -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 [2,] -7338 2245 -2397 -247 -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 [3,] -7338 2245 -2397 -247 -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 [4,] -7338 2245 -2397 -247 -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 [5,] -7338 2245 -2397 -247 -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] -1507 -316 -245 -7890 -2917 -1190 -5429 4031 3179 -7152 -5895 20000 [2,] -1507 -316 -245 -7890 -2917 -1190 -5429 4031 3179 -7152 -5895 20000 [3,] -1507 -316 -245 -7890 -2917 -1190 -5429 4031 3179 -7152 -5895 20000 [4,] -1507 -316 -245 -7890 -2917 -1190 -5429 4031 3179 -7152 -5895 20000 [5,] -1507 -316 -245 -7890 -2917 -1190 -5429 4031 3179 -7152 -5895 20000 [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [1,] -4443 2391 -3357 -3708 1446 -2138 -3616 2675 4552 -7612 -2156 12481 [2,] -4443 2391 -3357 -3708 1446 -2138 -3616 2675 4552 -7612 -2156 12481 [3,] -4443 2391 -3357 -3708 1446 -2138 -3616 2675 4552 -7612 -2156 12481 [4,] -4443 2391 -3357 -3708 1446 -2138 -3616 2675 4552 -7612 -2156 12481 [5,] -4443 2391 -3357 -3708 1446 -2138 -3616 2675 4552 -7612 -2156 12481 [,49] [,50] [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 1354 7055 -4404 -9355 1640 -6315 -467 2829 2416 -3613 -5362 15936 [2,] 1354 7055 -4404 -9355 1640 -6315 -467 2829 2416 -3613 -5362 15936 [3,] 1354 7055 -4404 -9355 1640 -6315 -467 2829 2416 -3613 -5362 15936 [4,] 1354 7055 -4404 -9355 1640 -6315 -467 2829 2416 -3613 -5362 15936 [5,] 1354 7055 -4404 -9355 1640 -6315 -467 2829 2416 -3613 -5362 15936 $n [1] 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5853.0823 3398.263 -6902.8906 -5414.5346 -13892.82 -11934.238 -4492.759 [2,] 305.0823 3545.737 -977.1094 -572.4654 11711.82 -1579.762 2764.759 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] -1365.106 -3211.049 -7930.169 -9003.625 24449 -7338 2245 -2397 -247 [2,] 1839.106 8779.049 1222.169 -7314.375 24449 -7338 2245 -2397 -247 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [1,] -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 -1507 -316 -245 -7890 [2,] -1613 -2538 -3400 -1908 8300 -6578 -8257 22874 -1507 -316 -245 -7890 [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [1,] -2917 -1190 -5429 4031 3179 -7152 -5895 20000 -4443 2391 -3357 -3708 [2,] -2917 -1190 -5429 4031 3179 -7152 -5895 20000 -4443 2391 -3357 -3708 [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [,51] [,52] [1,] 1446 -2138 -3616 2675 4552 -7612 -2156 12481 1354 7055 -4404 -9355 [2,] 1446 -2138 -3616 2675 4552 -7612 -2156 12481 1354 7055 -4404 -9355 [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 1640 -6315 -467 2829 2416 -3613 -5362 15936 [2,] 1640 -6315 -467 2829 2416 -3613 -5362 15936 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" Warning message: In bxp(list(stats = c(-4152, -4152, -2774, -1396, -1396, 3439, 3439, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6wjqy1241641210.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] [1,] 11514 10698.0 [2,] 21073 18604.5 [3,] 24627 21095.0 [4,] 30288 26763.0 [5,] 43129 29743.0 $n [1] 60 12 $conf [,1] [,2] [1,] 22747.35 17373.85 [2,] 26506.65 24816.15 $out numeric(0) $group numeric(0) $names [1] "1" NA Warning message: In bxp(list(stats = c(11514, 21073, 24627, 30288, 43129, 10698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7txp71241641210.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,] 11514.00 11514.00 11514.00 [2,] 20486.75 20486.75 20486.75 [3,] 24144.50 24144.50 24144.50 [4,] 30088.50 30088.50 30088.50 [5,] 37702.00 37702.00 37702.00 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 22185.96 22185.96 22185.96 [2,] 26103.04 26103.04 26103.04 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/17w0n1241641210.ps tmp/17w0n1241641210.png") > system("convert tmp/2nq231241641210.ps tmp/2nq231241641210.png") > system("convert tmp/3o6041241641210.ps tmp/3o6041241641210.png") > system("convert tmp/4nbve1241641210.ps tmp/4nbve1241641210.png") > system("convert tmp/5q04f1241641210.ps tmp/5q04f1241641210.png") > system("convert tmp/6wjqy1241641210.ps tmp/6wjqy1241641210.png") > system("convert tmp/7txp71241641210.ps tmp/7txp71241641210.png") > > > proc.time() user system elapsed 2.065 1.488 2.379