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(5014,6153,6441,5584,6427,6062,5589,6216,5809,4989,6706,7174,6122,8075,6292,6337,8576,6077,5931,6288,7167,6054,6468,6401,6927,7914,7728,8699,8522,6481,7502,7778,7424,6941,8574,9169,7701,9035,7158,8195,8124,7073,7017,7390,7776,6197,6889,7087,6485,7654,6501,6313,7826,6589,6729,5684,8105,6391,5901,6758) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5014 6122 6927 7701 6485 NA [2,] 6153 8075 7914 9035 7654 NA [3,] 6441 6292 7728 7158 6501 NA [4,] 5584 6337 8699 8195 6313 NA [5,] 6427 8576 8522 8124 7826 NA [6,] 6062 6077 6481 7073 6589 NA [7,] 5589 5931 7502 7017 6729 NA [8,] 6216 6288 7778 7390 5684 NA [9,] 5809 7167 7424 7776 8105 NA [10,] 4989 6054 6941 6197 6391 NA [11,] 6706 6468 8574 6889 5901 NA [12,] 7174 6401 9169 7087 6758 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1139 1953 987 1334 1169 NA [2,] 288 -1783 -186 -1877 -1153 NA [3,] -857 45 971 1037 -188 NA [4,] 843 2239 -177 -71 1513 NA [5,] -365 -2499 -2041 -1051 -1237 NA [6,] -473 -146 1021 -56 140 NA [7,] 627 357 276 373 -1045 NA [8,] -407 879 -354 386 2421 NA [9,] -820 -1113 -483 -1579 -1714 NA [10,] 1717 414 1633 692 -490 NA [11,] 468 -67 595 198 857 NA [12,] -1052 526 -1468 -602 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/15pmr1228484263.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/2yq6y1228484263.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/3p4xb1228484263.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/4mbst1228484263.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,] 5014 7654 6292 5584 7826 6062 5589 5684 7167 6054 5901 6401 [2,] 6122 7654 6441 6313 7826 6077 5931 6216 7167 6054 6468 6758 [3,] 6485 7914 6501 6337 8124 6481 6729 6288 7424 6197 6706 7087 [4,] 6927 8075 7158 8195 8522 6589 7017 7390 7776 6391 6889 7174 [5,] 7701 8075 7728 8699 8576 7073 7502 7778 8105 6391 6889 7174 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5916.189 7616.522 5994.37 5007.184 7632.208 6119.222 5961.635 5458.455 [2,] 7053.811 8211.478 7007.63 7666.816 8615.792 6842.778 7496.365 7117.545 [,9] [,10] [,11] [,12] [1,] 6993.682 5958.877 6408.522 6793.055 [2,] 7854.318 6435.123 7003.478 7380.945 $out [1] 6153 9035 6427 5809 4989 6941 8574 9169 $group [1] 2 2 5 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(5014, 6122, 6485, 6927, 7701, 7654, 7654, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5511j1228484263.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,] 987 -1877 -857 -177 -2499 -473 276 -407 -1714 -490 -67 -1468 [2,] 1139 -1783 -188 -71 -2041 -146 276 -354 -1579 414 198 -1260 [3,] 1169 -1153 45 843 -1237 -56 357 386 -1113 692 468 -827 [4,] 1334 -186 971 1513 -1051 140 373 879 -820 1633 595 -38 [5,] 1334 288 1037 2239 -365 140 373 2421 -483 1717 857 526 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1031.213 -2281.43618 -773.9465 -276.2504 -1936.5315 -258.0869 288.4600 [2,] 1306.787 -24.56382 863.9465 1962.2504 -537.4685 146.0869 425.5400 [,8] [,9] [,10] [,11] [,12] [1,] -485.2347 -1649.3075 -169.3423 187.4808 -1792.38 [2,] 1257.2347 -576.6925 1553.3423 748.5192 138.38 $out [1] 1953 1021 627 -1045 $group [1] 1 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(987, 1139, 1169, 1334, 1334, -1877, -1783, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ambr1228484263.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,] 4989.0 5931.0 6481.0 6197 5684 NA [2,] 5586.5 6099.5 7182.5 7045 6352 NA [3,] 6107.5 6314.5 7753.0 7274 6545 NA [4,] 6434.0 6817.5 8548.0 7950 7206 NA [5,] 7174.0 7167.0 9169.0 9035 8105 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5720.95 5987.015 7130.186 6861.223 6155.485 NA [2,] 6494.05 6641.985 8375.814 7686.777 6934.515 NA $out [1] 8075 8576 $group [1] 2 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(4989, 5586.5, 6107.5, 6434, 7174, 5931, 6099.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w3dj1228484263.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,] 6114.4 6197.0 6222.50 [2,] 6505.0 6409.0 6499.25 [3,] 6865.8 6603.5 6801.25 [4,] 7287.0 7255.5 7362.75 [5,] 7895.0 8124.0 8174.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6509.125 6217.406 6407.402 [2,] 7222.475 6989.594 7195.098 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6114.4, 6505, 6865.8, 7287, 7895, 6197, 6409, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15pmr1228484263.ps tmp/15pmr1228484263.png") > system("convert tmp/2yq6y1228484263.ps tmp/2yq6y1228484263.png") > system("convert tmp/3p4xb1228484263.ps tmp/3p4xb1228484263.png") > system("convert tmp/4mbst1228484263.ps tmp/4mbst1228484263.png") > system("convert tmp/5511j1228484263.ps tmp/5511j1228484263.png") > system("convert tmp/6ambr1228484263.ps tmp/6ambr1228484263.png") > system("convert tmp/7w3dj1228484263.ps tmp/7w3dj1228484263.png") > > > proc.time() user system elapsed 1.212 0.941 2.184