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(53,43,33,45,46,55,41,55,36,45,55,50,49,47,69,51,48,62,45,37,50,50,50,58,53,57,53,61,47,56,44,46,58,48,38,74,60,32,51,50,40,61,63,56,45,61,70,59,57,69,44,56,50,56,43,48,52,62,48) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 53 49 53 60 57 [2,] 43 47 57 32 69 [3,] 33 69 53 51 44 [4,] 45 51 61 50 56 [5,] 46 48 47 40 50 [6,] 55 62 56 61 56 [7,] 41 45 44 63 43 [8,] 55 37 46 56 48 [9,] 36 50 58 45 52 [10,] 45 50 48 61 62 [11,] 55 50 38 70 48 [12,] 50 58 74 59 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -10 -2 4 -28 12 [2,] -10 22 -4 19 -25 [3,] 12 -18 8 -1 12 [4,] 1 -3 -14 -10 -6 [5,] 9 14 9 21 6 [6,] -14 -17 -12 2 -13 [7,] 14 -8 2 -7 5 [8,] -19 13 12 -11 4 [9,] 9 0 -10 16 10 [10,] 10 0 -10 9 -14 [11,] -5 8 36 -11 NA [12,] -1 -5 -14 -2 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/1omqz1290458448.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/2omqz1290458448.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/3hv7k1290458448.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/4hv7k1290458448.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,] 49 32 33 45 46 55 41 37 36 45 38 50.0 [2,] 53 43 44 50 46 56 43 46 45 48 48 54.0 [3,] 53 47 51 51 47 56 44 48 50 50 50 58.5 [4,] 57 57 53 56 48 61 45 55 52 61 55 66.5 [5,] 60 69 53 61 50 62 45 56 58 62 55 74.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 50.17361 37.10764 44.64062 46.76042 45.58681 52.46701 42.58681 41.64062 [2,] 55.82639 56.89236 57.35938 55.23958 48.41319 59.53299 45.41319 54.35938 [,9] [,10] [,11] [,12] [1,] 45.05382 40.81423 45.05382 48.625 [2,] 54.94618 59.18577 54.94618 68.375 $out [1] 69 40 63 70 $group [1] 3 5 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(49, 53, 53, 57, 60, 32, 43, 47, 57, 69, 33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5a57n1290458448.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,] -28 -25 -18 -14 6 -17 -8 -19 -10 -14 -11.0 -14.0 [2,] -10 -10 -1 -10 9 -14 -7 -11 0 -10 -8.0 -9.5 [3,] -2 -4 8 -6 9 -13 2 4 9 0 1.5 -3.5 [4,] 4 19 12 -3 14 -12 5 12 10 9 22.0 -1.5 [5,] 12 22 12 1 21 -12 14 13 16 10 36.0 -1.0 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.892365 -24.49133 -1.185767 -10.946182 5.467013 -14.41319 -6.47917 [2,] 7.892365 16.49133 17.185767 -1.053818 12.532987 -11.58681 10.47917 [,8] [,9] [,10] [,11] [,12] [1,] -12.25174 1.934025 -13.42535 -22.2 -9.82 [2,] 20.25174 16.065975 13.42535 25.2 2.82 $out [1] 2 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-28, -10, -2, 4, 12, -25, -10, -4, 19, 22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6a57n1290458448.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] [1,] 33.0 37.0 38.0 32.0 43.0 [2,] 42.0 47.5 46.5 47.5 48.0 [3,] 45.5 50.0 53.0 57.5 52.0 [4,] 54.0 54.5 57.5 61.0 56.5 [5,] 55.0 62.0 74.0 70.0 69.0 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 40.02672 46.80725 47.98283 51.34256 47.9507 [2,] 50.97328 53.19275 58.01717 63.65744 56.0493 $out [1] 69 $group [1] 2 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(33, 42, 45.5, 54, 55, 37, 47.5, 50, 54.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7a57n1290458448.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,] 46.20 44.0 44.000 [2,] 48.30 47.5 48.500 [3,] 51.10 50.0 51.000 [4,] 53.80 52.0 54.750 [5,] 60.25 58.5 59.375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 48.59141 47.94752 48.14933 [2,] 53.60859 52.05248 53.85067 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(46.2, 48.3, 51.1, 53.8, 60.25, 44, 47.5, 50, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1omqz1290458448.ps tmp/1omqz1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/2omqz1290458448.ps tmp/2omqz1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/3hv7k1290458448.ps tmp/3hv7k1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/4hv7k1290458448.ps tmp/4hv7k1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/5a57n1290458448.ps tmp/5a57n1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/6a57n1290458448.ps tmp/6a57n1290458448.png",intern=TRUE)) character(0) > try(system("convert tmp/7a57n1290458448.ps tmp/7a57n1290458448.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.207 0.950 2.888