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(15.5,15.1,11.7,16.3,16.7,15,14.9,14.6,15.3,17.9,16.4,15.4,17.9,15.9,13.9,17.8,17.9,17.4,16.7,16,16.6,19.1,17.8,17.2,18.6,16.3,15.1,19.2,17.7,19.1,18,17.5,17.8,21.1,17.2,19.4,19.8,17.6,16.2,19.5,19.9,20,17.3,18.9,18.6,21.4,18.6,19.8,20.8,19.6,17.7,19.8,22.2,20.7,17.9,20.9,21.2,21.4,23,21.3,23.9,22.4,18.3,22.8,22.3,17.8,16.4,16,16.4,17.7,16.6,16.2,18.3) > 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] 73 > (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 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.5 17.9 18.6 19.8 20.8 23.9 18.3 [2,] 15.1 15.9 16.3 17.6 19.6 22.4 NA [3,] 11.7 13.9 15.1 16.2 17.7 18.3 NA [4,] 16.3 17.8 19.2 19.5 19.8 22.8 NA [5,] 16.7 17.9 17.7 19.9 22.2 22.3 NA [6,] 15.0 17.4 19.1 20.0 20.7 17.8 NA [7,] 14.9 16.7 18.0 17.3 17.9 16.4 NA [8,] 14.6 16.0 17.5 18.9 20.9 16.0 NA [9,] 15.3 16.6 17.8 18.6 21.2 16.4 NA [10,] 17.9 19.1 21.1 21.4 21.4 17.7 NA [11,] 16.4 17.8 17.2 18.6 23.0 16.6 NA [12,] 15.4 17.2 19.4 19.8 21.3 16.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.4 -2.0 -2.3 -2.2 -1.2 -1.5 NA [2,] -3.4 -2.0 -1.2 -1.4 -1.9 -4.1 NA [3,] 4.6 3.9 4.1 3.3 2.1 4.5 NA [4,] 0.4 0.1 -1.5 0.4 2.4 -0.5 NA [5,] -1.7 -0.5 1.4 0.1 -1.5 -4.5 NA [6,] -0.1 -0.7 -1.1 -2.7 -2.8 -1.4 NA [7,] -0.3 -0.7 -0.5 1.6 3.0 -0.4 NA [8,] 0.7 0.6 0.3 -0.3 0.3 0.4 NA [9,] 2.6 2.5 3.3 2.8 0.2 1.3 NA [10,] -1.5 -1.3 -3.9 -2.8 1.6 -1.1 NA [11,] -1.0 -0.6 2.2 1.2 -1.7 -0.4 NA [12,] 2.5 1.4 0.4 1.0 2.6 2.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/html/rcomp/tmp/1zv6k1261053199.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/2s40n1261053199.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/3rzmp1261053199.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/4maij1261053199.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.5 15.10 11.70 16.30 16.7 15.00 14.9 14.60 15.3 17.7 16.4 15.4 [2,] 18.1 15.90 13.90 17.80 17.7 17.40 16.4 16.00 16.4 17.9 16.6 16.2 [3,] 18.6 16.95 15.65 19.35 18.9 18.45 17.0 16.75 17.2 20.1 17.5 18.3 [4,] 20.3 19.60 17.70 19.80 22.2 20.00 17.9 18.90 18.6 21.4 18.6 19.8 [5,] 20.8 22.40 18.30 22.80 22.3 20.70 18.0 20.90 21.2 21.4 18.6 21.3 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.28620 14.56338 13.19888 18.05994 15.99735 16.77292 16.03245 14.87941 [2,] 19.91380 19.33662 18.10112 20.64006 21.80265 20.12708 17.96755 18.62059 [,9] [,10] [,11] [,12] [1,] 15.78093 17.84239 16.20994 15.97788 [2,] 18.61907 22.35761 18.79006 20.62212 $out [1] 23.9 23.0 $group [1] 1 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.5, 18.1, 18.6, 20.3, 20.8, 15.1, 15.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zpb11261053199.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,] -2.30 -4.10 2.1 -1.50 -1.7 -2.80 -0.70 0.30 0.20 -3.9 -1.7 0.40 [2,] -2.20 -3.40 3.3 -0.50 -1.7 -2.70 -0.50 0.30 1.30 -2.8 -1.0 1.00 [3,] -1.75 -1.95 4.0 0.25 -1.0 -1.25 -0.35 0.35 2.55 -1.4 -0.5 1.75 [4,] -1.20 -1.40 4.5 0.40 0.1 -0.70 1.60 0.60 2.80 -1.1 1.2 2.50 [5,] -0.40 -1.20 4.6 0.40 1.4 -0.10 3.00 0.70 3.30 -1.1 2.2 2.60 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.395032 -3.2400646 3.225961 -0.3305291 -2.1610581 -2.5400646 -1.704568 [2,] -1.104968 -0.6599354 4.774039 0.8305291 0.1610581 0.0400646 1.004568 [,8] [,9] [,10] [,11] [,12] [1,] 0.1564903 1.582452 -2.4965549 -1.919071 0.7824516 [2,] 0.5435097 3.517548 -0.3034451 0.919071 2.7175484 $out [1] 2.4 -4.5 -0.3 1.6 $group [1] 4 5 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.3, -2.2, -1.75, -1.2, -0.4, -4.1, -3.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tmzu1261053199.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,] 14.60 15.90 15.10 16.20 17.70 16.00 18.3 [2,] 14.95 16.30 17.35 18.10 19.70 16.40 18.3 [3,] 15.35 17.30 17.90 19.20 20.85 17.75 18.3 [4,] 16.35 17.85 19.15 19.85 21.35 22.35 18.3 [5,] 17.90 19.10 21.10 21.40 23.00 23.90 18.3 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.71145 16.59303 17.07901 18.40181 20.09742 15.03617 18.3 [2,] 15.98855 18.00697 18.72099 19.99819 21.60258 20.46383 18.3 $out [1] 11.7 13.9 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(14.6, 14.95, 15.35, 16.35, 17.9, 15.9, 16.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yies1261053199.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,] 15.48333 15.650 15.76250 [2,] 17.48333 16.975 17.35000 [3,] 18.24167 17.900 17.82500 [4,] 19.24524 18.750 19.06875 [5,] 19.76667 20.100 19.76250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17.43805 17.09041 17.04107 [2,] 19.04528 18.70959 18.60893 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15.4833333333333, 17.4833333333333, 18.2416666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zv6k1261053199.ps tmp/1zv6k1261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/2s40n1261053199.ps tmp/2s40n1261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/3rzmp1261053199.ps tmp/3rzmp1261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/4maij1261053199.ps tmp/4maij1261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/5zpb11261053199.ps tmp/5zpb11261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/6tmzu1261053199.ps tmp/6tmzu1261053199.png",intern=TRUE)) character(0) > try(system("convert tmp/7yies1261053199.ps tmp/7yies1261053199.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 0.960 1.959