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. 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(118.4,121.4,128.8,131.7,141.7,142.9,139.4,134.7,125,113.6,111.5,108.5,112.3,116.6,115.5,120.1,132.9,128.1,129.3,132.5,131,124.9,120.8,122,122.1,127.4,135.2,137.3,135,136,138.4,134.7,138.4,133.9,133.6,141.2,151.8,155.4,156.6,161.6,160.7,156,159.5,168.7,169.9,169.9,185.9,190.8,195.8,211.9,227.1,251.3,256.7,251.9,251.2,270.3,267.2,243,229.9,187.2,178.2) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 118.4 112.3 122.1 151.8 195.8 178.2 [2,] 121.4 116.6 127.4 155.4 211.9 NA [3,] 128.8 115.5 135.2 156.6 227.1 NA [4,] 131.7 120.1 137.3 161.6 251.3 NA [5,] 141.7 132.9 135.0 160.7 256.7 NA [6,] 142.9 128.1 136.0 156.0 251.9 NA [7,] 139.4 129.3 138.4 159.5 251.2 NA [8,] 134.7 132.5 134.7 168.7 270.3 NA [9,] 125.0 131.0 138.4 169.9 267.2 NA [10,] 113.6 124.9 133.9 169.9 243.0 NA [11,] 111.5 120.8 133.6 185.9 229.9 NA [12,] 108.5 122.0 141.2 190.8 187.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.0 4.3 5.3 3.6 16.1 NA [2,] 7.4 -1.1 7.8 1.2 15.2 NA [3,] 2.9 4.6 2.1 5.0 24.2 NA [4,] 10.0 12.8 -2.3 -0.9 5.4 NA [5,] 1.2 -4.8 1.0 -4.7 -4.8 NA [6,] -3.5 1.2 2.4 3.5 -0.7 NA [7,] -4.7 3.2 -3.7 9.2 19.1 NA [8,] -9.7 -1.5 3.7 1.2 -3.1 NA [9,] -11.4 -6.1 -4.5 0.0 -24.2 NA [10,] -2.1 -4.1 -0.3 16.0 -13.1 NA [11,] -3.0 1.2 7.6 4.9 -42.7 NA [12,] 3.8 0.1 10.6 5.0 -9.0 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/1yikz1229864882.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/2kisy1229864882.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/399811229864882.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/4ubp51229864882.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,] 112.30 116.6 115.5 120.1 132.9 128.1 129.3 132.5 125.0 113.6 111.5 108.5 [2,] 118.40 121.4 128.8 131.7 135.0 136.0 138.4 134.7 131.0 124.9 120.8 122.0 [3,] 136.95 127.4 135.2 137.3 141.7 142.9 139.4 134.7 138.4 133.9 133.6 141.2 [4,] 178.20 155.4 156.6 161.6 160.7 156.0 159.5 168.7 169.9 169.9 185.9 187.2 [5,] 195.80 155.4 156.6 161.6 160.7 156.0 159.5 168.7 169.9 169.9 229.9 190.8 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.37707 103.3757 115.5566 116.1727 123.5404 128.7681 124.4908 110.6757 [2,] 175.52293 151.4243 154.8434 158.4273 159.8596 157.0319 154.3092 158.7243 [,9] [,10] [,11] [,12] [1,] 110.9134 102.1031 87.6005 95.12984 [2,] 165.8866 165.6969 179.5995 187.27016 $out [1] 211.9 227.1 251.3 256.7 251.9 251.2 270.3 267.2 243.0 $group [1] 2 3 4 5 6 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(112.3, 118.4, 136.95, 178.2, 195.8, 116.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58j1d1229864882.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,] 3.0 -1.1 2.1 -2.3 -4.8 -3.5 -4.7 -3.1 -11.4 -4.1 -3.0 0.1 [2,] 3.6 1.2 2.9 -0.9 -4.8 -0.7 -3.7 -3.1 -11.4 -4.1 -3.0 0.1 [3,] 4.3 7.4 4.6 5.4 -4.7 1.2 3.2 -1.5 -6.1 -2.1 1.2 3.8 [4,] 5.3 7.8 5.0 10.0 1.0 2.4 9.2 1.2 -4.5 -0.3 4.9 5.0 [5,] 5.3 15.2 5.0 12.8 1.2 3.5 19.1 3.7 0.0 -0.3 7.6 10.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.098784 2.736457 3.116145 -2.301913 -8.7982654 -0.9904522 -5.915108 [2,] 5.501216 12.063543 6.083855 13.101913 -0.6017346 3.3904522 12.315108 [,8] [,9] [,10] [,11] [,12] [1,] -4.538369 -10.975523 -4.7850704 -4.38212 0.3376723 [2,] 1.538369 -1.224477 0.5850704 6.78212 7.2623277 $out [1] 16.1 24.2 -9.7 -24.2 16.0 -13.1 -42.7 -9.0 $group [1] 1 3 8 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3, 3.59999999999999, 4.3, 5.30000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/647e91229864882.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,] 108.50 112.30 133.60 151.80 187.2 178.2 [2,] 116.00 118.35 133.75 156.30 219.5 178.2 [3,] 126.90 123.45 135.10 161.15 247.1 178.2 [4,] 137.05 130.15 137.85 169.90 254.3 178.2 [5,] 142.90 132.90 141.20 185.90 270.3 178.2 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 117.2990 118.0679 133.2300 154.9469 231.2275 178.2 [2,] 136.5010 128.8321 136.9700 167.3531 262.9725 178.2 $out [1] 122.1 127.4 190.8 $group [1] 3 3 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(108.5, 116, 126.9, 137.05, 142.9, 112.3, 118.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78myf1229864882.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,] 146.4333 127.400 138.4000 [2,] 151.2900 134.300 145.7312 [3,] 158.7300 137.125 147.6250 [4,] 164.4800 140.300 151.0750 [5,] 168.1800 142.900 154.6000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 152.7140 134.3884 145.1877 [2,] 164.7460 139.8616 150.0623 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(146.433333333333, 151.29, 158.73, 164.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yikz1229864882.ps tmp/1yikz1229864882.png") > system("convert tmp/2kisy1229864882.ps tmp/2kisy1229864882.png") > system("convert tmp/399811229864882.ps tmp/399811229864882.png") > system("convert tmp/4ubp51229864882.ps tmp/4ubp51229864882.png") > system("convert tmp/58j1d1229864882.ps tmp/58j1d1229864882.png") > system("convert tmp/647e91229864882.ps tmp/647e91229864882.png") > system("convert tmp/78myf1229864882.ps tmp/78myf1229864882.png") > > > proc.time() user system elapsed 1.184 0.931 1.444