R version 2.8.0 (2008-10-20) Copyright (C) 2008 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. Natural language support but running in an English locale 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(24,25,30,19,22,22,25,23,17,21,19,19,15,16,23,27,22,14,22,23,23,21,19,18,20,23,25,19,24,22,25,26,29,32,25,29,28,17,28,29,26,25,14,25,26,20,18,32,25,25,23,21,20,15,30,24,26,24,22,14,24,24,24,24,19,31,22,27,19,25,20,21,27,23,25,20,21,22,23,25,25,17,19,25,19,20,26,23,27,17,17,19,17,22,21,32,21,21,18,18,23,19,20,21,20,17,18,19,22,15,14,18,24,35,29,21,25,20,22,13,26,17,25,20,19,21,22,24,21,26,24,16,23,18,16,26,19,21,21,22,23,29,21,21,23,27,25,21,10,20,26,24,29,19,24,19,24,22,17) > 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] 159 > (np <- floor(n / par1)) [1] 13 > 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] 14 14 14 13 13 13 13 13 13 13 13 13 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 24 15 20 28 25 24 27 19 21 22 26 23 23 [2,] 25 16 23 17 25 24 23 20 21 15 17 18 27 [3,] 30 23 25 28 23 24 25 26 18 14 25 16 25 [4,] 19 27 19 29 21 24 20 23 18 18 20 26 21 [5,] 22 22 24 26 20 19 21 27 23 24 19 19 10 [6,] 22 14 22 25 15 31 22 17 19 35 21 21 20 [7,] 25 22 25 14 30 22 23 17 20 29 22 21 26 [8,] 23 23 26 25 24 27 25 19 21 21 24 22 24 [9,] 17 23 29 26 26 19 25 17 20 25 21 23 29 [10,] 21 21 32 20 24 25 17 22 17 20 26 29 19 [11,] 19 19 25 18 22 20 19 21 18 22 24 21 24 [12,] 19 18 29 32 14 21 25 32 19 13 16 21 19 [,14] [1,] 24 [2,] 22 [3,] 17 [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 1 1 3 -11 0 0 -4 1 0 -7 -9 -5 4 [2,] 5 7 2 11 -2 0 2 6 -3 -1 8 -2 -2 [3,] -11 4 -6 1 -2 0 -5 -3 0 4 -5 10 -4 [4,] 3 -5 5 -3 -1 -5 1 4 5 6 -1 -7 -11 [5,] 0 -8 -2 -1 -5 12 1 -10 -4 11 2 2 10 [6,] 3 8 3 -11 15 -9 1 0 1 -6 1 0 6 [7,] -2 1 1 11 -6 5 2 2 1 -8 2 1 -2 [8,] -6 0 3 1 2 -8 0 -2 -1 4 -3 1 5 [9,] 4 -2 3 -6 -2 6 -8 5 -3 -5 5 6 -10 [10,] -2 -2 -7 -2 -2 -5 2 -1 1 2 -2 -8 5 [11,] 0 -1 4 14 -8 1 6 11 1 -9 -8 0 -5 [12,] -4 2 -1 -7 10 6 -6 -11 3 13 7 2 5 [,14] [1,] -2 [2,] -5 [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/freestat/rcomp/tmp/1ah5w1290529486.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/freestat/rcomp/tmp/2ah5w1290529486.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/freestat/rcomp/tmp/3l8mz1290529486.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/freestat/rcomp/tmp/4l8mz1290529486.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,] 15.0 15.0 14.0 18 19 15 17 19 17 17 18 13 [2,] 21.0 17.0 18.0 19 19 19 21 22 20 20 19 18 [3,] 23.5 21.5 24.5 21 22 21 22 24 23 21 21 19 [4,] 25.0 24.0 25.0 24 24 22 25 25 26 25 22 25 [5,] 28.0 27.0 30.0 29 27 25 30 27 29 32 25 32 $n [1] 14 14 14 13 13 13 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 21.81091 18.54409 21.54409 18.80893 19.80893 19.68536 20.24715 22.68536 [2,] 25.18909 24.45591 27.45591 23.19107 24.19107 22.31464 23.75285 25.31464 [,9] [,10] [,11] [,12] [1,] 20.37072 18.80893 19.68536 15.93251 [2,] 25.62928 23.19107 22.31464 22.06749 $out [1] 10 14 31 35 14 $group [1] 5 6 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15, 21, 23.5, 25, 28, 15, 17, 21.5, 24, 27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5l8mz1290529486.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,] -11 -5 -11 -11 -10 0 -8 -8 -10 -5 -9 -11 [2,] -5 -2 -5 -5 -4 0 -2 -2 -5 -2 -5 -4 [3,] 0 1 -2 -1 0 1 1 0 -2 -2 0 2 [4,] 1 6 1 4 2 3 2 2 5 1 4 6 [5,] 4 11 10 6 11 6 5 5 6 5 14 13 $n [1] 14 14 13 13 13 13 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.533637 -2.378182 -4.6292789 -4.943918 -2.629279 -0.3146395 -0.7528526 [2,] 2.533637 4.378182 0.6292789 2.943918 2.629279 2.3146395 2.7528526 [,8] [,9] [,10] [,11] [,12] [1,] -1.752853 -6.382132 -3.3146395 -3.943918 -2.382132 [2,] 1.752853 2.382132 -0.6853605 3.943918 6.382132 $out [1] 12 8 -11 15 -9 -6 11 -7 -8 $group [1] 5 6 6 6 6 6 7 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11, -5, 0, 1, 4, -5, -2, 1, 6, 11, -11, -5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6vzm21290529486.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] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 17.0 14.0 19.0 14.0 14.0 19.0 17.0 17.0 17.0 13.0 16.0 16 19.0 17.0 [2,] 19.0 17.0 22.5 19.0 20.5 20.5 20.5 18.0 18.0 16.5 19.5 20 19.5 19.5 [3,] 22.0 21.5 25.0 25.5 23.5 24.0 23.0 20.5 19.5 21.5 21.5 21 23.5 22.0 [4,] 24.5 23.0 27.5 28.0 25.0 24.5 25.0 24.5 21.0 24.5 24.5 23 25.5 23.0 [5,] 30.0 27.0 32.0 32.0 30.0 27.0 27.0 32.0 23.0 35.0 26.0 26 29.0 24.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.49141 18.76336 22.71947 21.39504 21.44752 22.17557 20.94752 17.53531 [2,] 24.50859 24.23664 27.28053 29.60496 25.55248 25.82443 25.05248 23.46469 [,9] [,10] [,11] [,12] [,13] [,14] [1,] 18.13168 17.85115 19.21947 19.63168 20.76336 18.80725 [2,] 20.86832 25.14885 23.78053 22.36832 26.23664 25.19275 $out [1] 31 29 10 $group [1] 6 12 13 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" NA Warning message: In bxp(list(stats = c(17, 19, 22, 24.5, 30, 14, 17, 21.5, 23, 27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7vzm21290529486.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,] 20.92308 19.00 20.5000 [2,] 21.30769 21.00 21.0000 [3,] 22.23077 21.75 21.8125 [4,] 22.85714 23.25 23.0000 [5,] 23.38462 24.50 23.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 21.52405 20.72376 20.90029 [2,] 22.93748 22.77624 22.72471 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(20.9230769230769, 21.3076923076923, 22.2307692307692, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1ah5w1290529486.ps tmp/1ah5w1290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/2ah5w1290529486.ps tmp/2ah5w1290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/3l8mz1290529486.ps tmp/3l8mz1290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/4l8mz1290529486.ps tmp/4l8mz1290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/5l8mz1290529486.ps tmp/5l8mz1290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/6vzm21290529486.ps tmp/6vzm21290529486.png",intern=TRUE)) character(0) > try(system("convert tmp/7vzm21290529486.ps tmp/7vzm21290529486.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.990 1.507 6.715