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(20,32,11,14,199,162,88,89,24,36,142,193,39,25,95,144,33,131,31,24,160,52,57,210,13,52,96,133,74,131,129,74,127,55,175,185,34,115,95,58,63,56,70,32,32,14,6,23,18,4,6,17,20,20,44,32,20,14,9,59,10,47,43,34,5,49,130,10,117,108,17,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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20 39 13 34 18 10 NA [2,] 32 25 52 115 4 47 NA [3,] 11 95 96 95 6 43 NA [4,] 14 144 133 58 17 34 NA [5,] 199 33 74 63 20 5 NA [6,] 162 131 131 56 20 49 NA [7,] 88 31 129 70 44 130 NA [8,] 89 24 74 32 32 10 NA [9,] 24 160 127 32 20 117 NA [10,] 36 52 55 14 14 108 NA [11,] 142 57 175 6 9 17 NA [12,] 193 210 185 23 59 55 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 12 -14 39 81 -14 37 NA [2,] -21 70 44 -20 2 -4 NA [3,] 3 49 37 -37 11 -9 NA [4,] 185 -111 -59 5 3 -29 NA [5,] -37 98 57 -7 0 44 NA [6,] -74 -100 -2 14 24 81 NA [7,] 1 -7 -55 -38 -12 -120 NA [8,] -65 136 53 0 -12 107 NA [9,] 12 -108 -72 -18 -6 -9 NA [10,] 106 5 120 -8 -5 -91 NA [11,] 51 153 10 17 50 38 NA [12,] -154 -197 -151 -5 -49 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/1fgm11319183149.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2wf861319183149.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3fcpp1319183149.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4iu3p1319183149.ps",horizontal=F,onefile=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,] 10 4.0 6 14 5 20.0 31 10 20.0 14 6 23 [2,] 13 25.0 11 17 20 49.0 44 24 24.0 14 9 55 [3,] 19 39.5 69 46 48 93.5 79 32 74.5 44 37 122 [4,] 34 52.0 95 133 74 131.0 129 74 127.0 55 142 193 [5,] 39 52.0 96 144 74 162.0 130 89 160.0 108 175 210 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.454322 22.08413 14.81729 -28.82375 13.16826 40.60735 24.17225 [2,] 32.545678 56.91587 123.18271 120.82375 82.83174 146.39265 133.82775 [,8] [,9] [,10] [,11] [,12] [1,] -0.2516149 8.061673 17.55368 -48.7893 32.98554 [2,] 64.2516149 140.938327 70.44632 122.7893 211.01446 $out [1] 115 199 $group [1] 2 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(10, 13, 19, 34, 39, 4, 25, 39.5, 52, 52, 6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5pykd1319183149.ps",horizontal=F,onefile=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,] -14.0 -21 -37 -111 -37 -100 -120 -65.0 -108.0 -91 10 -197 [2,] -14.0 -20 -9 -59 -7 -74 -55 -12.0 -72.0 -8 17 -154 [3,] 24.5 -1 7 -13 22 6 -25 26.5 -13.5 0 44 -151 [4,] 39.0 44 37 5 57 24 -7 107.0 -6.0 106 51 -49 [5,] 81.0 70 49 5 98 81 1 136.0 12.0 120 51 -5 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.686712 -42.28207 -22.67149 -54.28207 -19.28207 -57.21317 -55.96155 [2,] 58.686712 40.28207 36.67149 28.28207 63.28207 69.21317 5.96155 [,8] [,9] [,10] [,11] [,12] [1,] -50.25884 -56.07213 -73.53368 22.0689 -225.19274 [2,] 103.25884 29.07213 73.53368 65.9311 -76.80726 $out [1] 185 153 $group [1] 4 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-14, -14, 24.5, 39, 81, -21, -20, -1, 44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/61x3w1319183149.ps",horizontal=F,onefile=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] [1,] 11 24.0 13.0 6.0 4.0 5.0 NA [2,] 22 32.0 64.5 27.5 11.5 13.5 NA [3,] 62 54.5 111.5 45.0 19.0 45.0 NA [4,] 152 137.5 132.0 66.5 26.0 81.5 NA [5,] 199 210.0 185.0 115.0 44.0 130.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.706127 6.380742 80.7128 27.21184 12.38645 13.98474 NA [2,] 121.293873 102.619258 142.2872 62.78816 25.61355 76.01526 NA $out [1] 59 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(11, 22, 62, 152, 199, 24, 32, 54.5, 137.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/790951319183149.ps",horizontal=F,onefile=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,] 22.33333 19.00 22.3750 [2,] 46.16667 38.25 41.7500 [3,] 66.16667 47.00 61.4375 [4,] 81.00000 76.75 79.9375 [5,] 120.83333 122.00 123.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 50.27895 29.43989 44.01992 [2,] 82.05438 64.56011 78.85508 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22.3333333333333, 46.1666666666667, 66.1666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fgm11319183149.ps tmp/1fgm11319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/2wf861319183149.ps tmp/2wf861319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/3fcpp1319183149.ps tmp/3fcpp1319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/4iu3p1319183149.ps tmp/4iu3p1319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/5pykd1319183149.ps tmp/5pykd1319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/61x3w1319183149.ps tmp/61x3w1319183149.png",intern=TRUE)) character(0) > try(system("convert tmp/790951319183149.ps tmp/790951319183149.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.564 0.331 1.903