R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(43,30,42,23,19,19,36,20,27,24,23,26,31,51,39,32,30,46,31,31,40,29,43,17,53,47,49,44,48,51,47,44,33,47,41,36,46,24,17,22,30,24,18,24,24,28,19,22,26,14,16,21,15,23,29,17,24,18,22,8,26,22,34,25,20,35,38,24,14,25,31,17,32,27,30,19,36,27,28,38,26,25,30,27) > 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,] 43 31 53 46 26 26 32 NA [2,] 30 51 47 24 14 22 27 NA [3,] 42 39 49 17 16 34 30 NA [4,] 23 32 44 22 21 25 19 NA [5,] 19 30 48 30 15 20 36 NA [6,] 19 46 51 24 23 35 27 NA [7,] 36 31 47 18 29 38 28 NA [8,] 20 31 44 24 17 24 38 NA [9,] 27 40 33 24 24 14 26 NA [10,] 24 29 47 28 18 25 25 NA [11,] 23 43 41 19 22 31 30 NA [12,] 26 17 36 22 8 17 27 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -13 20 -6 -22 -12 -4 -5 NA [2,] 12 -12 2 -7 2 12 3 NA [3,] -19 -7 -5 5 5 -9 -11 NA [4,] -4 -2 4 8 -6 -5 17 NA [5,] 0 16 3 -6 8 15 -9 NA [6,] 17 -15 -4 -6 6 3 1 NA [7,] -16 0 -3 6 -12 -14 10 NA [8,] 7 9 -11 0 7 -10 -12 NA [9,] -3 -11 14 4 -6 11 -1 NA [10,] -1 14 -6 -9 4 6 5 NA [11,] 3 -26 -5 3 -14 -14 -3 NA [12,] 5 36 10 4 18 15 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/wessaorg/rcomp/tmp/1dlpx1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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/wessaorg/rcomp/tmp/294sg1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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/wessaorg/rcomp/tmp/37h7w1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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/wessaorg/rcomp/tmp/4gxie1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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.0 14.0 16.0 19.0 15.0 19.0 18.0 17.0 24 24.0 19.0 8.0 [2,] 28.5 23.0 23.5 21.5 19.5 23.5 28.5 22.0 24 24.5 22.5 17.0 [3,] 32.0 27.0 34.0 23.0 30.0 27.0 31.0 24.0 26 25.0 30.0 22.0 [4,] 44.5 38.5 40.5 28.5 33.0 40.5 37.0 34.5 30 28.5 36.0 26.5 [5,] 53.0 51.0 49.0 32.0 48.0 51.0 47.0 44.0 33 29.0 43.0 36.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.44506 17.74365 23.84787 18.81971 21.93802 16.84787 25.92394 16.5352 [2,] 41.55494 36.25635 44.15213 27.18029 38.06198 37.15213 36.07606 31.4648 [,9] [,10] [,11] [,12] [1,] 22.4169 22.61126 21.93802 16.32675 [2,] 29.5831 27.38874 38.06198 27.67325 $out [1] 44 40 14 47 18 $group [1] 4 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(26, 28.5, 32, 44.5, 53, 14, 23, 27, 38.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5d7gt1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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,] -22.0 -12.0 -19 -6.0 -9.0 -15.0 -16 -12.0 -11.0 -9.0 -26 4.0 [2,] -12.5 -2.5 -10 -4.5 -3.0 -5.0 -13 -10.5 -4.5 -3.5 -14 5.0 [3,] -6.0 2.0 -7 -2.0 3.0 1.0 -3 0.0 -1.0 4.0 -5 12.5 [4,] -4.5 7.5 0 6.0 11.5 4.5 3 7.0 7.5 5.5 0 18.0 [5,] -4.0 12.0 5 17.0 16.0 17.0 10 9.0 14.0 14.0 3 36.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -10.777471 -3.971839 -12.971839 -8.270431 -5.659166 -4.673247 -12.554942 [2,] -1.222529 7.971839 -1.028161 4.270431 11.659166 6.673247 6.554942 [,8] [,9] [,10] [,11] [,12] [1,] -10.45072 -8.166206 -1.374655 -13.360574 4.11458 [2,] 10.45072 6.166206 9.374655 3.360574 20.88542 $out [1] 20 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-22, -12.5, -6, -4.5, -4, -12, -2.5, 2, 7.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/638gj1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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,] 19.0 17.0 36.0 17.0 8.0 14.0 25.0 NA [2,] 21.5 30.5 42.5 20.5 15.5 21.0 26.5 NA [3,] 25.0 31.5 47.0 24.0 19.5 25.0 27.5 NA [4,] 33.0 41.5 48.5 26.0 23.5 32.5 31.0 NA [5,] 43.0 51.0 53.0 30.0 29.0 38.0 36.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.75477 26.48283 44.26336 21.49141 15.85115 19.75477 25.44752 NA [2,] 30.24523 36.51717 49.73664 26.50859 23.14885 30.24523 29.55248 NA $out [1] 33 46 19 38 $group [1] 3 4 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(19, 21.5, 25, 33, 43, 17, 30.5, 31.5, 41.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7gujg1319534199.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=11.111111111111) > 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,] 21.85714 22.0 21.750 [2,] 27.42857 24.5 26.375 [3,] 29.07143 27.0 28.750 [4,] 32.28571 30.5 32.000 [5,] 36.71429 34.0 36.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 26.85605 24.26336 26.1844 [2,] 31.28680 29.73664 31.3156 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(21.8571428571429, 27.4285714285714, 29.0714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dlpx1319534199.ps tmp/1dlpx1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/294sg1319534199.ps tmp/294sg1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/37h7w1319534199.ps tmp/37h7w1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/4gxie1319534199.ps tmp/4gxie1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/5d7gt1319534199.ps tmp/5d7gt1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/638gj1319534199.ps tmp/638gj1319534199.png",intern=TRUE)) character(0) > try(system("convert tmp/7gujg1319534199.ps tmp/7gujg1319534199.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.919 0.390 3.360