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(2,2.4,1.5,1.2,1.5,0.6,2.7,3.7,4.9,6.6,7.4,7.2,5.3,4.7,6.1,6.6,7,7.5,6.6,7.8,4.7,5.4,4.3,4.5,5.8,4.6,5.2,3.6,4.8,6.7,6.3,4.8,8.7,6.8,7.4,9,7.9,9.1,8.7,9.8,6.4,6.1,4.7,4.8,4.2,2.8,6.1,5.8,4.9,4.6,4.1,3.6,5.9,4.5,4.8,5.7,5,7,4.6,2.6,5,4.1,3.2,0,2.3,3.8,4.5,5.9,5,4.2,4.5,6) > 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,] 2.0 5.3 5.8 7.9 4.9 5.0 NA [2,] 2.4 4.7 4.6 9.1 4.6 4.1 NA [3,] 1.5 6.1 5.2 8.7 4.1 3.2 NA [4,] 1.2 6.6 3.6 9.8 3.6 0.0 NA [5,] 1.5 7.0 4.8 6.4 5.9 2.3 NA [6,] 0.6 7.5 6.7 6.1 4.5 3.8 NA [7,] 2.7 6.6 6.3 4.7 4.8 4.5 NA [8,] 3.7 7.8 4.8 4.8 5.7 5.9 NA [9,] 4.9 4.7 8.7 4.2 5.0 5.0 NA [10,] 6.6 5.4 6.8 2.8 7.0 4.2 NA [11,] 7.4 4.3 7.4 6.1 4.6 4.5 NA [12,] 7.2 4.5 9.0 5.8 2.6 6.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4 -0.6 -1.2 1.2 -0.3 -0.9 NA [2,] -0.9 1.4 0.6 -0.4 -0.5 -0.9 NA [3,] -0.3 0.5 -1.6 1.1 -0.5 -3.2 NA [4,] 0.3 0.4 1.2 -3.4 2.3 2.3 NA [5,] -0.9 0.5 1.9 -0.3 -1.4 1.5 NA [6,] 2.1 -0.9 -0.4 -1.4 0.3 0.7 NA [7,] 1.0 1.2 -1.5 0.1 0.9 1.4 NA [8,] 1.2 -3.1 3.9 -0.6 -0.7 -0.9 NA [9,] 1.7 0.7 -1.9 -1.4 2.0 -0.8 NA [10,] 0.8 -1.1 0.6 3.3 -2.4 0.3 NA [11,] -0.2 0.2 1.6 -0.3 -2.0 1.5 NA [12,] -1.9 1.3 -1.1 -0.9 2.4 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/1jccu1272470255.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/2jccu1272470255.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/3b3tf1272470255.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/4b3tf1272470255.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,] 4.90 4.1 1.50 0.0 1.50 0.6 2.70 3.70 4.70 2.8 4.30 2.6 [2,] 4.90 4.1 3.20 1.2 2.30 3.8 4.50 4.80 4.70 4.2 4.50 4.5 [3,] 5.15 4.6 4.65 3.6 5.35 5.3 4.75 5.25 4.95 6.0 5.35 5.9 [4,] 5.80 4.7 6.10 6.6 6.40 6.7 6.30 5.90 5.00 6.8 7.40 7.2 [5,] 5.80 4.7 8.70 9.8 7.00 7.5 6.60 5.90 5.00 7.0 7.40 9.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.569471 4.212981 2.779406 0.1168256 2.705368 3.429406 3.588942 4.540464 [2,] 5.730529 4.987019 6.520594 7.0831744 7.994632 7.170594 5.911058 5.959536 [,9] [,10] [,11] [,12] [1,] 4.75649 4.322916 3.479406 4.158413 [2,] 5.14351 7.677084 7.220594 7.641587 $out [1] 2.0 7.9 2.4 9.1 7.8 8.7 4.2 $group [1] 1 1 2 2 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4.9, 4.9, 5.15, 5.8, 5.8, 4.1, 4.1, 4.6, 4.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54ua01272470255.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,] -1.20 -0.90 -3.2 0.3 -1.4 -1.40 -1.50 -3.10 -1.90 -2.40 -2.0 -1.9 [2,] -0.90 -0.90 -1.6 0.3 -0.9 -0.90 0.10 -0.90 -1.40 -1.10 -0.3 -1.1 [3,] -0.45 -0.45 -0.4 0.8 0.1 -0.05 0.95 -0.65 -0.05 0.45 0.0 -0.9 [4,] 0.40 0.60 0.5 2.3 1.5 0.70 1.20 1.20 1.70 0.80 1.5 1.3 [5,] 1.20 1.40 1.1 2.3 1.9 2.10 1.40 3.90 2.00 3.30 1.6 2.4 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.288542 -1.4175484 -1.7545678 -0.4900646 -1.448078 -1.0820517 0.2404645 [2,] 0.388542 0.5175484 0.9545678 2.0900646 1.648078 0.9820517 1.6595355 [,8] [,9] [,10] [,11] [,12] [1,] -2.0045678 -2.0496 -0.7755614 -1.161058 -2.595834 [2,] 0.7045678 1.9496 1.6755614 1.161058 0.795834 $out [1] -3.4 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.2, -0.9, -0.45, 0.4, 1.2, -0.9, -0.9, -0.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64ua01272470255.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] [1,] 0.60 4.30 3.60 2.80 3.60 2.30 NA [2,] 1.50 4.70 4.80 4.75 4.30 3.50 NA [3,] 2.55 5.75 6.05 6.10 4.70 4.35 NA [4,] 5.75 6.80 7.10 8.30 5.35 5.00 NA [5,] 7.40 7.80 9.00 9.80 5.90 6.00 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6115465 4.792176 5.000955 4.480821 4.221088 3.66584 NA [2,] 4.4884535 6.707824 7.099045 7.719179 5.178912 5.03416 NA $out [1] 7.0 2.6 0.0 $group [1] 5 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.6, 1.5, 2.55, 5.75, 7.4, 4.3, 4.7, 5.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74ua01272470255.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,] 4.133333 4.60 3.8250 [2,] 4.833333 4.70 4.6250 [3,] 5.041667 5.20 5.2500 [4,] 5.458333 5.35 5.4750 [5,] 5.850000 6.00 5.8625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.756600 4.903531 4.862309 [2,] 5.326733 5.496469 5.637691 $out [1] 3.6 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(4.13333333333333, 4.83333333333333, 5.04166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1jccu1272470255.ps tmp/1jccu1272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/2jccu1272470255.ps tmp/2jccu1272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/3b3tf1272470255.ps tmp/3b3tf1272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/4b3tf1272470255.ps tmp/4b3tf1272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/54ua01272470255.ps tmp/54ua01272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/64ua01272470255.ps tmp/64ua01272470255.png",intern=TRUE)) character(0) > try(system("convert tmp/74ua01272470255.ps tmp/74ua01272470255.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.234 0.968 1.768