R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(51,50,49,47,45,44,45,47,48,48,49,51,45,42,40,37,28,33,32,38,38,34,38,48,41,41,43,37,22,30,32,41,44,37,53,67,62,63,68,62,50,64,71,76,73,68,78,89,74,74,73,65,55,69,80,81,80,86,90,100,90,89,83,63,48,62,69,73,76,77,75,77,78,73,74,55,36,41,52,53,49,47,44,55) > 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)) > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 51 45 41 62 74 90 78 NA [2,] 50 42 41 63 74 89 73 NA [3,] 49 40 43 68 73 83 74 NA [4,] 47 37 37 62 65 63 55 NA [5,] 45 28 22 50 55 48 36 NA [6,] 44 33 30 64 69 62 41 NA [7,] 45 32 32 71 80 69 52 NA [8,] 47 38 41 76 81 73 53 NA [9,] 48 38 44 73 80 76 49 NA [10,] 48 34 37 68 86 77 47 NA [11,] 49 38 53 78 90 75 44 NA [12,] 51 48 67 89 100 77 55 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -3 0 1 0 -1 -5 NA [2,] -1 -2 2 5 -1 -6 1 NA [3,] -2 -3 -6 -6 -8 -20 -19 NA [4,] -2 -9 -15 -12 -10 -15 -19 NA [5,] -1 5 8 14 14 14 5 NA [6,] 1 -1 2 7 11 7 11 NA [7,] 2 6 9 5 1 4 1 NA [8,] 1 0 3 -3 -1 3 -4 NA [9,] 0 -4 -7 -5 6 1 -2 NA [10,] 1 4 16 10 4 -2 -3 NA [11,] 2 10 14 11 10 2 11 NA [12,] -6 -7 -5 -15 -10 1 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/rcomp/tmp/16lfe1282249222.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/rcomp/tmp/26lfe1282249222.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/rcomp/tmp/36lfe1282249222.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/rcomp/tmp/4hvwh1282249222.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,] 41 41.0 40.0 37.0 22 30 32.0 38.0 38.0 34.0 38.0 48 [2,] 48 46.0 46.0 42.0 32 37 38.5 44.0 46.0 42.0 46.5 53 [3,] 62 63.0 68.0 55.0 45 44 52.0 53.0 49.0 48.0 53.0 67 [4,] 76 73.5 73.5 62.5 49 63 70.0 74.5 74.5 72.5 76.5 83 [5,] 90 89.0 83.0 65.0 55 69 80.0 81.0 80.0 86.0 90.0 100 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 45.27885 46.57744 51.57744 42.75773 34.84787 28.47322 33.18871 34.78589 [2,] 78.72115 79.42256 84.42256 67.24227 55.15213 59.52678 70.81129 71.21411 [,9] [,10] [,11] [,12] [1,] 31.98026 29.78589 35.08448 49.08448 [2,] 66.01974 66.21411 70.91552 84.91552 $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(41, 48, 62, 76, 90, 41, 46, 63, 73.5, 89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5hvwh1282249222.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,] -5 -6.0 -20.0 -19.0 -1 -1.0 1.0 -4 -7.0 -3.0 2 -15.0 [2,] -2 -1.5 -13.5 -15.0 5 1.5 1.5 -2 -4.5 -0.5 6 -10.0 [3,] -1 -1.0 -6.0 -12.0 8 7.0 4.0 0 -2.0 4.0 10 -6.5 [4,] 0 1.5 -4.5 -9.5 14 9.0 5.5 2 0.5 7.0 11 -5.0 [5,] 1 5.0 -2.0 -2.0 14 11.0 9.0 3 6.0 16.0 14 1.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.1943677 -2.7915516 -11.3746548 -15.284511 2.625345 2.521121 1.611265 [2,] 0.1943677 0.7915516 -0.6253452 -8.715489 13.374655 11.478879 6.388735 [,8] [,9] [,10] [,11] [,12] [1,] -2.388735 -4.9859193 -0.478879 7.01408 -9.725161 [2,] 2.388735 0.9859193 8.478879 12.98592 -3.274839 $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(-5, -2, -1, 0, 1, -6, -1.5, -1, 1.5, 5, -20, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6r4d21282249222.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,] 44.0 28.0 22.0 50.0 55.0 48.0 36.0 NA [2,] 46.0 33.5 34.5 62.5 71.0 66.0 45.5 NA [3,] 48.0 38.0 41.0 68.0 77.0 75.5 52.5 NA [4,] 49.5 41.0 43.5 74.5 83.5 80.0 64.0 NA [5,] 51.0 48.0 53.0 89.0 100.0 90.0 78.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 46.40363 34.5792 36.89504 62.52672 71.29867 69.1145 44.06203 NA [2,] 49.59637 41.4208 45.10496 73.47328 82.70133 81.8855 60.93797 NA $out [1] 67 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(44, 46, 48, 49.5, 51, 28, 33.5, 38, 41, 48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7r4d21282249222.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,] 49.00000 44.0 50.000 [2,] 53.35714 48.5 53.250 [3,] 58.35714 53.0 59.500 [4,] 61.57143 62.5 60.875 [5,] 69.57143 68.0 68.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 54.61055 46.61451 56.02219 [2,] 62.10373 59.38549 62.97781 $out [1] 40.57143 40.50000 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(49, 53.3571428571429, 58.3571428571429, 61.5714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16lfe1282249222.ps tmp/16lfe1282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/26lfe1282249222.ps tmp/26lfe1282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/36lfe1282249222.ps tmp/36lfe1282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/4hvwh1282249222.ps tmp/4hvwh1282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/5hvwh1282249222.ps tmp/5hvwh1282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/6r4d21282249222.ps tmp/6r4d21282249222.png",intern=TRUE)) character(0) > try(system("convert tmp/7r4d21282249222.ps tmp/7r4d21282249222.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.870 1.410 3.273