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(31,30,29,27,25,24,25,27,28,28,29,31,31,27,25,16,20,21,25,24,28,27,23,36,37,30,27,22,22,25,33,35,35,29,25,34,31,29,21,19,18,25,23,22,20,15,17,25,26,26,23,24,24,42,40,45,47,40,39,49,55,54,48,44,48,62,57,60,56,57,54,62,65,68,69,67,72,82,72,77,79,78,76,79) > 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,] 31 31 37 31 26 55 65 NA [2,] 30 27 30 29 26 54 68 NA [3,] 29 25 27 21 23 48 69 NA [4,] 27 16 22 19 24 44 67 NA [5,] 25 20 22 18 24 48 72 NA [6,] 24 21 25 25 42 62 82 NA [7,] 25 25 33 23 40 57 72 NA [8,] 27 24 35 22 45 60 77 NA [9,] 28 28 35 20 47 56 79 NA [10,] 28 27 29 15 40 57 78 NA [11,] 29 23 25 17 39 54 76 NA [12,] 31 36 34 25 49 62 79 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -4 -7 -2 0 -1 3 NA [2,] -1 -2 -3 -8 -3 -6 1 NA [3,] -2 -9 -5 -2 1 -4 -2 NA [4,] -2 4 0 -1 0 4 5 NA [5,] -1 1 3 7 18 14 10 NA [6,] 1 4 8 -2 -2 -5 -10 NA [7,] 2 -1 2 -1 5 3 5 NA [8,] 1 4 0 -2 2 -4 2 NA [9,] 0 -1 -6 -5 -7 1 -1 NA [10,] 1 -4 -4 2 -1 -3 -2 NA [11,] 2 13 9 8 10 8 3 NA [12,] 0 1 -3 1 6 3 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/15a8c1281184637.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/2y18x1281184637.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/3y18x1281184637.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/4y18x1281184637.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,] 26 26 21.0 16.0 18.0 21.0 23.0 22.0 20.0 15.0 17.0 25.0 [2,] 31 28 24.0 20.5 21.0 24.5 25.0 25.5 28.0 27.5 24.0 32.5 [3,] 31 30 27.0 24.0 24.0 25.0 33.0 35.0 35.0 29.0 29.0 36.0 [4,] 46 42 38.5 35.5 36.5 52.0 48.5 52.5 51.5 48.5 46.5 55.5 [5,] 65 54 48.0 44.0 48.0 82.0 72.0 77.0 79.0 78.0 76.0 79.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22.04224 21.63943 18.34083 15.04224 14.74365 8.577444 18.96618 18.87604 [2,] 39.95776 38.36057 35.65917 32.95776 33.25635 41.422556 47.03382 51.12396 [,9] [,10] [,11] [,12] [1,] 20.96618 16.45914 15.56336 22.26477 [2,] 49.03382 41.54086 42.43664 49.73523 $out [1] 68 69 67 72 $group [1] 2 3 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(26, 31, 31, 46, 65, 26, 28, 30, 42, 54, 21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rbph1281184637.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,] -4.0 -8.0 -5.0 -2.0 -1 -10.0 -1.0 -4 -7.0 -4.0 2.0 -3 [2,] -3.0 -4.5 -4.5 -0.5 2 -3.5 0.5 -1 -5.5 -3.5 5.5 0 [3,] -1.0 -3.0 -2.0 0.0 7 -2.0 2.0 1 -1.0 -2.0 8.0 1 [4,] -0.5 -1.5 -2.0 4.0 12 2.5 4.0 2 -0.5 0.0 9.5 3 [5,] 3.0 1.0 1.0 5.0 18 8.0 5.0 4 1.0 2.0 13.0 6 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.4929597 -4.791552 -3.4929597 -2.687327 1.028161 -5.583103 -0.09014354 [2,] 0.4929597 -1.208448 -0.5070403 2.687327 12.971839 1.583103 4.09014354 [,8] [,9] [,10] [,11] [,12] [1,] -0.7915516 -3.985919 -4.09014354 5.611265 -0.9350969 [2,] 2.7915516 1.985919 0.09014354 10.388735 2.9350969 $out [1] -7 -9 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4, -3, -1, -0.5, 3, -8, -4.5, -3, -1.5, 1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rbph1281184637.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,] 24.0 16.0 22.0 15.0 23.0 44.0 65.0 NA [2,] 26.0 22.0 25.0 18.5 25.0 51.0 68.5 NA [3,] 28.0 25.0 29.5 21.5 39.5 55.5 74.0 NA [4,] 29.5 27.5 34.5 25.0 43.5 58.5 78.5 NA [5,] 31.0 31.0 37.0 31.0 49.0 62.0 82.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 26.40363 22.49141 25.16699 18.53531 31.06203 52.0792 69.43893 NA [2,] 29.59637 27.50859 33.83301 24.46469 47.93797 58.9208 78.56107 NA $out [1] 36 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(24, 26, 28, 29.5, 31, 16, 22, 25, 27.5, 31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72kol1281184637.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,] 31.28571 24.0 28.000 [2,] 36.07143 26.0 33.125 [3,] 39.21429 29.5 37.375 [4,] 40.78571 34.0 38.750 [5,] 45.14286 36.0 44.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37.06407 25.85115 34.8094 [2,] 41.36450 33.14885 39.9406 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(31.2857142857143, 36.0714285714286, 39.2142857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/15a8c1281184637.ps tmp/15a8c1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/2y18x1281184637.ps tmp/2y18x1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/3y18x1281184637.ps tmp/3y18x1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/4y18x1281184637.ps tmp/4y18x1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/5rbph1281184637.ps tmp/5rbph1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/6rbph1281184637.ps tmp/6rbph1281184637.png",intern=TRUE)) character(0) > try(system("convert tmp/72kol1281184637.ps tmp/72kol1281184637.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.200 0.958 3.019