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(153.4,145,137.7,148.3,152.2,169.4,168.6,161.1,174.1,179,190.6,190,181.6,174.8,180.5,196.8,193.8,197,216.3,221.4,217.9,229.7,227.4,204.2,196.6,198.8,207.5,190.7,201.6,210.5,223.5,223.8,231.2,244,234.7,250.2,265.7,287.6,283.3,295.4,312.3,333.8,347.7,383.2,407.1,413.6,362.7,321.9,239.4,191,159.7,163.4,157.6,166.2,176.7,198.3,226.2,216.2,235.9,226.9) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 153.4 181.6 196.6 265.7 239.4 NA [2,] 145.0 174.8 198.8 287.6 191.0 NA [3,] 137.7 180.5 207.5 283.3 159.7 NA [4,] 148.3 196.8 190.7 295.4 163.4 NA [5,] 152.2 193.8 201.6 312.3 157.6 NA [6,] 169.4 197.0 210.5 333.8 166.2 NA [7,] 168.6 216.3 223.5 347.7 176.7 NA [8,] 161.1 221.4 223.8 383.2 198.3 NA [9,] 174.1 217.9 231.2 407.1 226.2 NA [10,] 179.0 229.7 244.0 413.6 216.2 NA [11,] 190.6 227.4 234.7 362.7 235.9 NA [12,] 190.0 204.2 250.2 321.9 226.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -8.4 -6.8 2.2 21.9 -48.4 NA [2,] -7.3 5.7 8.7 -4.3 -31.3 NA [3,] 10.6 16.3 -16.8 12.1 3.7 NA [4,] 3.9 -3.0 10.9 16.9 -5.8 NA [5,] 17.2 3.2 8.9 21.5 8.6 NA [6,] -0.8 19.3 13.0 13.9 10.5 NA [7,] -7.5 5.1 0.3 35.5 21.6 NA [8,] 13.0 -3.5 7.4 23.9 27.9 NA [9,] 4.9 11.8 12.8 6.5 -10.0 NA [10,] 11.6 -2.3 -9.3 -50.9 19.7 NA [11,] -0.6 -23.2 15.5 -40.8 -9.0 NA [12,] -8.4 -7.6 15.5 -82.5 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/1vk2a1258124529.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/20uxe1258124529.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/34yft1258124529.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/4lr2a1258124529.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,] 153.4 145.0 137.7 148.3 152.2 166.2 168.6 161.1 217.9 179.0 227.4 190.0 [2,] 181.6 174.8 159.7 163.4 157.6 169.4 176.7 198.3 217.9 216.2 227.4 204.2 [3,] 196.6 191.0 180.5 190.7 193.8 197.0 216.3 221.4 226.2 229.7 234.7 226.9 [4,] 239.4 198.8 207.5 196.8 201.6 210.5 223.5 223.8 231.2 244.0 235.9 250.2 [5,] 265.7 198.8 207.5 196.8 201.6 210.5 223.5 223.8 231.2 244.0 235.9 250.2 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 155.7587 174.0417 146.7246 167.0996 162.7097 167.9588 183.2312 203.3818 [2,] 237.4413 207.9583 214.2754 214.3004 224.8903 226.0412 249.3688 239.4182 [,9] [,10] [,11] [,12] [1,] 216.8023 210.0566 228.6939 194.3965 [2,] 235.5977 249.3434 240.7061 259.4035 $out [1] 287.6 283.3 295.4 312.3 333.8 347.7 383.2 174.1 407.1 413.6 190.6 362.7 [13] 321.9 $group [1] 2 3 4 5 6 7 8 9 9 10 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(153.4, 181.6, 196.6, 239.4, 265.7, 145, 174.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5hhd31258124530.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,] -8.4 -7.3 3.7 -5.8 3.2 10.5 -7.5 -3.5 4.9 -9.3 -40.8 -82.50 [2,] -8.4 -7.3 3.7 -3.0 8.6 10.5 0.3 7.4 4.9 -9.3 -23.2 -45.45 [3,] -6.8 -4.3 10.6 3.9 8.9 13.0 5.1 13.0 6.5 -2.3 -9.0 -8.00 [4,] 2.2 5.7 12.1 10.9 17.2 13.9 21.6 23.9 11.8 11.6 -0.6 3.95 [5,] 2.2 8.7 16.3 16.9 21.5 13.9 35.5 27.9 12.8 19.7 15.5 15.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -14.2899333 -13.485767 4.664581 -5.921705 2.823262 10.59757 -9.950526 [2,] 0.6899333 4.885767 16.535419 13.721705 14.976738 15.40243 20.150526 [,8] [,9] [,10] [,11] [,12] [1,] 1.341142 1.624477 -17.06789 -24.969103 -47.026 [2,] 24.658858 11.375523 12.46789 6.969103 31.026 $out [1] 21.9 -48.4 -31.3 -16.8 -0.8 19.3 -10.0 -50.9 $group [1] 1 1 2 3 6 6 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.4, -8.4, -6.79999999999998, 2.20000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6t77m1258124530.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] [1,] 137.70 174.80 190.70 265.70 157.60 NA [2,] 150.25 187.70 200.20 291.50 164.80 NA [3,] 164.85 200.60 217.00 327.85 194.65 NA [4,] 176.55 219.65 232.95 372.95 226.55 NA [5,] 190.60 229.70 250.20 413.60 239.40 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 152.8544 186.0274 202.0625 290.7001 166.4854 NA [2,] 176.8456 215.1726 231.9375 364.9999 222.8146 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(137.7, 150.25, 164.85, 176.55, 190.6, 174.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7nwf01258124530.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,] 193.74 180.50 179.600 [2,] 201.47 192.40 185.200 [3,] 220.97 206.65 205.300 [4,] 244.45 226.55 225.875 [5,] 256.50 234.70 231.650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 201.3665 191.0740 186.7479 [2,] 240.5735 222.2260 223.8521 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(193.74, 201.47, 220.97, 244.45, 256.5, 180.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vk2a1258124529.ps tmp/1vk2a1258124529.png") > system("convert tmp/20uxe1258124529.ps tmp/20uxe1258124529.png") > system("convert tmp/34yft1258124529.ps tmp/34yft1258124529.png") > system("convert tmp/4lr2a1258124529.ps tmp/4lr2a1258124529.png") > system("convert tmp/5hhd31258124530.ps tmp/5hhd31258124530.png") > system("convert tmp/6t77m1258124530.ps tmp/6t77m1258124530.png") > system("convert tmp/7nwf01258124530.ps tmp/7nwf01258124530.png") > > > proc.time() user system elapsed 1.217 0.956 1.686