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(168802,173276,172957,173558,173820,171663,174110,174338,175440,174922,172188,171330,169560,174579,173740,173427,172952,170305,172717,173019,173690,172439,171914,171968,169500,173898,172308,171568,164939,161275,160770,162466,160185,154836,154103,150495,142707,149962,149967,144572,143819,141070,144119,145330,143279,139063,139202,133632,134476,141859,140693,138047,138346,140167,146796,152228,155410,159032,160312,157687,160141,167421,167628,164403,163405) > 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] 65 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 168802 169560 169500 142707 134476 160141 [2,] 173276 174579 173898 149962 141859 167421 [3,] 172957 173740 172308 149967 140693 167628 [4,] 173558 173427 171568 144572 138047 164403 [5,] 173820 172952 164939 143819 138346 163405 [6,] 171663 170305 161275 141070 140167 NA [7,] 174110 172717 160770 144119 146796 NA [8,] 174338 173019 162466 145330 152228 NA [9,] 175440 173690 160185 143279 155410 NA [10,] 174922 172439 154836 139063 159032 NA [11,] 172188 171914 154103 139202 160312 NA [12,] 171330 171968 150495 133632 157687 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4474 5019 4398 7255 7383 7280 [2,] -319 -839 -1590 5 -1166 207 [3,] 601 -313 -740 -5395 -2646 -3225 [4,] 262 -475 -6629 -753 299 -998 [5,] -2157 -2647 -3664 -2749 1821 NA [6,] 2447 2412 -505 3049 6629 NA [7,] 228 302 1696 1211 5432 NA [8,] 1102 671 -2281 -2051 3182 NA [9,] -518 -1251 -5349 -4216 3622 NA [10,] -2734 -525 -733 139 1280 NA [11,] -858 54 -3608 -5570 -2625 NA [12,] -1770 -2468 -7788 844 2454 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/1zovs1258036388.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/2ij121258036388.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/33h8e1258036388.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/42pfl1258036388.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,] 134476.0 141859.0 140693 138047.0 138346 140167 144119 145330 143279 [2,] 142707.0 149962.0 149967 144572.0 143819 141070 146796 152228 155410 [3,] 164471.5 170348.5 169968 167985.5 164172 161275 160770 162466 160185 [4,] 169500.0 173898.0 172957 173427.0 172952 170305 172717 173019 173690 [5,] 169560.0 174579.0 173740 173558.0 173820 171663 174110 174338 175440 [,10] [,11] [,12] [1,] 139063 139202 133632 [2,] 154836 154103 150495 [3,] 159032 160312 157687 [4,] 172439 171914 171330 [5,] 174922 172188 171968 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 147189.1 154909 155138.7 149373.1 145380.3 140617.6 142454.3 147775.1 [2,] 181753.9 185788 184797.3 186597.9 182963.7 181932.4 179085.7 177156.9 [,9] [,10] [,11] [,12] [1,] 147268.4 146593.8 147726.8 142965.0 [2,] 173101.6 171470.2 172897.2 172409.0 $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(134476, 142707, 164471.5, 169500, 169560, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5objf1258036388.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,] 4398 -1590 -5395 -998 -2749 2412 228 -2281 -5349 -733 -5570 -2468 [2,] 4474 -1166 -3225 -998 -2749 2412 302 -2051 -4216 -733 -3608 -2468 [3,] 6137 -579 -1693 -614 -2647 2447 1211 671 -1251 -525 -2625 -1770 [4,] 7280 5 -313 262 -2157 3049 1696 1102 -518 139 -858 844 [5,] 7383 207 601 299 -2157 3049 1696 3182 3622 1280 54 2454 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4327.039 -1334.3328 -3571.3341 -1426.7407 -3065.306 1996.897 226.0031 [2,] 7946.961 176.3328 185.3341 198.7407 -2228.694 2897.103 2195.9969 [,8] [,9] [,10] [,11] [,12] [1,] -1556.902 -3863.997 -1141.153 -4568.1431 -4110.2509 [2,] 2898.902 1361.997 91.153 -681.8569 570.2509 $out [1] -6629 -3664 1821 -505 6629 5432 -2734 -7788 $group [1] 4 5 5 6 6 7 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4398, 4474, 6137, 7280, 7383, -1590, -1166, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6jb531258036388.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] [1,] 168802.0 169560.0 150495.0 133632 134476.0 160141 [2,] 171925.5 171941.0 157510.5 140136 139256.5 163405 [3,] 173417.0 172834.5 161870.5 143549 144327.5 164403 [4,] 174224.0 173558.5 170534.0 144951 156548.5 167421 [5,] 175440.0 174579.0 173898.0 149967 160312.0 167628 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 172368.6 172096.7 155930.4 141352.8 136440.5 161565.3 [2,] 174465.4 173572.3 167810.6 145745.2 152214.5 167240.7 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(168802, 171925.5, 173417, 174224, 175440, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/74ywp1258036389.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,] 156896.0 157687.0 155687.5 [2,] 158537.4 160248.5 159794.3 [3,] 159880.4 161870.5 161934.8 [4,] 161538.5 166228.5 163613.0 [5,] 163499.2 170348.5 164550.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 158511.6 159143.0 160193.0 [2,] 161249.2 164598.0 163676.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(156896, 158537.4, 159880.4, 161538.5, 163499.166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zovs1258036388.ps tmp/1zovs1258036388.png") > system("convert tmp/2ij121258036388.ps tmp/2ij121258036388.png") > system("convert tmp/33h8e1258036388.ps tmp/33h8e1258036388.png") > system("convert tmp/42pfl1258036388.ps tmp/42pfl1258036388.png") > system("convert tmp/5objf1258036388.ps tmp/5objf1258036388.png") > system("convert tmp/6jb531258036388.ps tmp/6jb531258036388.png") > system("convert tmp/74ywp1258036389.ps tmp/74ywp1258036389.png") > > > proc.time() user system elapsed 1.952 1.556 2.386