R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(22.8,22.9,23.0,22.8,23.0,22.6,22.5,22.6,22.6,22.5,22.8,22.8,22.7,22.8,23.1,22.8,22.8,23.1,23.1,23.2,23.2,23.1,23.3,23.2,23.1,23.5,23.8,24.0,24.2,24.4,24.7,24.8,25.2,25.4,25.4,25.5,25.7,25.8,25.9,26.2,26.1,26.3,26.5,26.5,26.7,26.9,27.1,26.8,26.7,26.9,26.8,26.9,26.9,27.1,27.4,27.1,27.5,27.5,27.6,28.1,28.2) > 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,] 22.8 22.8 23.2 24.7 26.1 26.8 28.2 [2,] 22.9 22.8 23.1 24.8 26.3 26.9 NA [3,] 23.0 22.7 23.3 25.2 26.5 26.9 NA [4,] 22.8 22.8 23.2 25.4 26.5 27.1 NA [5,] 23.0 23.1 23.1 25.4 26.7 27.4 NA [6,] 22.6 22.8 23.5 25.5 26.9 27.1 NA [7,] 22.5 22.8 23.8 25.7 27.1 27.5 NA [8,] 22.6 23.1 24.0 25.8 26.8 27.5 NA [9,] 22.6 23.1 24.2 25.9 26.7 27.6 NA [10,] 22.5 23.2 24.4 26.2 26.9 28.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1 0.0 -0.1 0.1 0.2 0.1 NA [2,] 0.1 -0.1 0.2 0.4 0.2 0.0 NA [3,] -0.2 0.1 -0.1 0.2 0.0 0.2 NA [4,] 0.2 0.3 -0.1 0.0 0.2 0.3 NA [5,] -0.4 -0.3 0.4 0.1 0.2 -0.3 NA [6,] -0.1 0.0 0.3 0.2 0.2 0.4 NA [7,] 0.1 0.3 0.2 0.1 -0.3 0.0 NA [8,] 0.0 0.0 0.2 0.1 -0.1 0.1 NA [9,] -0.1 0.1 0.2 0.3 0.2 0.5 NA [10,] 0.3 0.0 0.3 -0.1 -0.1 0.1 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/rcomp/tmp/1rh3o1290705329.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/rcomp/tmp/2rh3o1290705329.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/rcomp/tmp/3rh3o1290705329.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/rcomp/tmp/428kr1290705329.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,] 22.80 22.80 22.70 22.8 23.00 22.6 22.50 22.6 22.60 22.5 [2,] 23.00 22.90 23.00 22.8 23.10 22.8 22.80 23.1 23.10 23.2 [3,] 24.70 23.95 24.25 24.3 24.25 24.5 24.75 24.9 25.05 25.3 [4,] 26.45 26.30 26.50 26.5 26.70 26.9 27.10 26.8 26.70 26.9 [5,] 28.20 26.90 26.90 27.1 27.40 27.1 27.50 27.5 27.60 28.1 $n [1] 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22.63972 21.75689 21.99239 21.91338 21.92788 21.85537 21.97636 22.51338 [2,] 26.76028 26.14311 26.50761 26.68662 26.57212 27.14463 27.52364 27.28662 [,9] [,10] [1,] 22.72788 22.91338 [2,] 27.37212 27.68662 $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(22.8, 23, 24.7, 26.45, 28.2, 22.8, 22.9, 23.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/528kr1290705329.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.1 -0.10 -0.20 -0.1 -0.4 -0.1 0.0 -0.10 -0.1 -0.10 [2,] 0.0 0.00 -0.10 0.0 -0.3 0.0 0.0 0.00 0.1 -0.10 [3,] 0.1 0.15 0.05 0.2 -0.1 0.2 0.1 0.05 0.2 0.05 [4,] 0.1 0.20 0.20 0.3 0.2 0.3 0.2 0.10 0.3 0.30 [5,] 0.2 0.40 0.20 0.3 0.4 0.4 0.3 0.20 0.5 0.30 $n [1] 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.03549677 0.02099354 -0.1435097 0.00649031 -0.4225161 0.00649031 [2,] 0.16450323 0.27900646 0.2435097 0.39350969 0.2225161 0.39350969 [,7] [,8] [,9] [,10] [1,] -0.02900646 -0.01450323 0.07099354 -0.2080129 [2,] 0.22900646 0.11450323 0.32900646 0.3080129 $out [1] -0.3 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(-0.0999999999999979, 0, 0.0999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6dz1u1290705329.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,] 22.5 22.7 23.1 24.70 26.1 26.80 28.2 [2,] 22.6 22.8 23.2 25.20 26.5 26.90 28.2 [3,] 22.7 22.8 23.4 25.45 26.7 27.25 28.2 [4,] 22.9 23.1 24.0 25.80 26.9 27.50 28.2 [5,] 23.0 23.2 24.4 26.20 27.1 28.10 28.2 $n [1] 10 10 10 10 10 10 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 22.55011 22.65011 23.00029 25.15022 26.50014 26.95022 28.2 [2,] 22.84989 22.94989 23.79971 25.74978 26.89986 27.54978 28.2 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(22.5, 22.6, 22.7, 22.9, 23, 22.7, 22.8, 22.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7dz1u1290705329.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,] 24.46667 23.95 24.4375 [2,] 24.63333 24.25 24.6250 [3,] 24.84167 24.60 24.7500 [4,] 24.96667 24.90 24.9375 [5,] 25.21667 25.30 25.1125 $n [1] 10 10 10 $conf [,1] [,2] [,3] [1,] 24.67512 24.27523 24.59386 [2,] 25.00821 24.92477 24.90614 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(24.4666666666667, 24.6333333333333, 24.8416666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rh3o1290705329.ps tmp/1rh3o1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/2rh3o1290705329.ps tmp/2rh3o1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/3rh3o1290705329.ps tmp/3rh3o1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/428kr1290705329.ps tmp/428kr1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/528kr1290705329.ps tmp/528kr1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/6dz1u1290705329.ps tmp/6dz1u1290705329.png",intern=TRUE)) character(0) > try(system("convert tmp/7dz1u1290705329.ps tmp/7dz1u1290705329.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.890 0.740 2.617