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(20.3,20.4,20.2,20.2,20.3,20.2,20.1,20.3,20.2,20.2,20.3,20.3,20.3,20.5,20.5,20.6,20.5,20.6,20.8,20.8,20.8,20.9,20.9,21.0,21.1,21.1,21.3,21.6,21.8,22.1,22.0,22.3,22.5,22.8,23.0,23.3,23.1,23.6,23.6,23.8,23.9,24.1,24.4,24.5,24.5,24.5,24.8,25.0,25.0,25.1,25.1,25.1,25.3,25.3,25.3,25.3,25.5,25.6,25.9,25.9,26.1) > par1 = '10' > #'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] 61 > (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] 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.3 20.3 20.8 22.0 23.9 25.1 26.1 [2,] 20.4 20.3 20.9 22.3 24.1 25.1 NA [3,] 20.2 20.3 20.9 22.5 24.4 25.3 NA [4,] 20.2 20.5 21.0 22.8 24.5 25.3 NA [5,] 20.3 20.5 21.1 23.0 24.5 25.3 NA [6,] 20.2 20.6 21.1 23.3 24.5 25.3 NA [7,] 20.1 20.5 21.3 23.1 24.8 25.5 NA [8,] 20.3 20.6 21.6 23.6 25.0 25.6 NA [9,] 20.2 20.8 21.8 23.6 25.0 25.9 NA [10,] 20.2 20.8 22.1 23.8 25.1 25.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1 0.0 0.1 0.3 0.2 0.0 NA [2,] -0.2 0.0 0.0 0.2 0.3 0.2 NA [3,] 0.0 0.2 0.1 0.3 0.1 0.0 NA [4,] 0.1 0.0 0.1 0.2 0.0 0.0 NA [5,] -0.1 0.1 0.0 0.3 0.0 0.0 NA [6,] -0.1 -0.1 0.2 -0.2 0.3 0.2 NA [7,] 0.2 0.1 0.3 0.5 0.2 0.1 NA [8,] -0.1 0.2 0.2 0.0 0.0 0.3 NA [9,] 0.0 0.0 0.3 0.2 0.1 0.0 NA [10,] 0.1 0.0 -0.1 0.1 0.0 0.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/19zt61290706098.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/2krbr1290706098.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/3krbr1290706098.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/4krbr1290706098.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] [1,] 20.30 20.3 20.2 20.2 20.30 20.2 20.1 20.3 20.2 20.20 [2,] 20.55 20.4 20.3 20.5 20.50 20.6 20.5 20.6 20.8 20.80 [3,] 22.00 21.6 21.7 21.9 22.05 22.2 22.2 22.6 22.7 22.95 [4,] 24.50 24.1 24.4 24.5 24.50 24.5 24.8 25.0 25.0 25.10 [5,] 26.10 25.1 25.3 25.3 25.30 25.3 25.5 25.6 25.9 25.90 $n [1] 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.64112 19.21338 19.05537 19.31987 19.46987 19.68437 19.42636 19.76186 [2,] 24.35888 23.98662 24.34463 24.48013 24.63013 24.71563 24.97364 25.43814 [,9] [,10] [1,] 19.99086 20.17636 [2,] 25.40914 25.72364 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(20.3, 20.55, 22, 24.5, 26.1, 20.3, 20.4, 21.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ciau1290706098.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] [1,] 0.0 -0.2 0.0 0.00 -0.1 -0.20 0.1 -0.1 0.00 -0.10 [2,] 0.0 0.0 0.0 0.00 0.0 -0.10 0.1 0.0 0.00 0.00 [3,] 0.1 0.1 0.1 0.05 0.0 0.05 0.2 0.1 0.05 0.05 [4,] 0.2 0.2 0.2 0.10 0.1 0.20 0.3 0.2 0.20 0.10 [5,] 0.3 0.3 0.3 0.20 0.1 0.30 0.5 0.3 0.30 0.20 $n [1] 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.02900646 -0.02900646 -0.02900646 -0.01450323 -0.06450323 -0.1435097 [2,] 0.22900646 0.22900646 0.22900646 0.11450323 0.06450323 0.2435097 [,7] [,8] [,9] [,10] [1,] 0.07099354 -0.02900646 -0.07900646 -0.01450323 [2,] 0.32900646 0.22900646 0.17900646 0.11450323 $out [1] 0.3 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(0, 0, 0.0999999999999979, 0.200000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ciau1290706098.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,] 20.1 20.3 20.8 22.00 23.9 25.1 26.1 [2,] 20.2 20.3 20.9 22.50 24.4 25.3 26.1 [3,] 20.2 20.5 21.1 23.05 24.5 25.3 26.1 [4,] 20.3 20.6 21.6 23.60 25.0 25.6 26.1 [5,] 20.4 20.8 22.1 23.80 25.1 25.9 26.1 $n [1] 10 10 10 10 10 10 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.15004 20.35011 20.75025 22.50040 24.20022 25.15011 26.1 [2,] 20.24996 20.64989 21.44975 23.59960 24.79978 25.44989 26.1 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(20.1, 20.2, 20.2, 20.3, 20.4, 20.3, 20.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75r9x1290706098.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,] 22.18333 21.600 22.08750 [2,] 22.38333 21.900 22.35000 [3,] 22.52500 22.125 22.49375 [4,] 22.78333 22.600 22.75000 [5,] 22.98333 22.950 22.95000 $n [1] 10 10 10 $conf [,1] [,2] [,3] [1,] 22.32514 21.77525 22.29389 [2,] 22.72486 22.47475 22.69361 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22.1833333333333, 22.3833333333333, 22.525, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/19zt61290706098.ps tmp/19zt61290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/2krbr1290706098.ps tmp/2krbr1290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/3krbr1290706098.ps tmp/3krbr1290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/4krbr1290706098.ps tmp/4krbr1290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/5ciau1290706098.ps tmp/5ciau1290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/6ciau1290706098.ps tmp/6ciau1290706098.png",intern=TRUE)) character(0) > try(system("convert tmp/75r9x1290706098.ps tmp/75r9x1290706098.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.226 0.988 3.012