R version 2.7.2 (2008-08-25) 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(93.7,105.7,109.5,105.3,102.8,100.6,97.6,110.3,107.2,107.2,108.1,97.1,92.2,112.2,111.6,115.7,111.3,104.2,103.2,112.7,106.4,102.6,110.6,95.2,89,112.5,116.8,107.2,113.6,101.8,102.6,122.7,110.3,110.5,121.6,100.3,100.7,123.4,127.1,124.1,131.2,111.6,114.2,130.1,125.9,119,133.8,107.5,113.5,134.4,126.8,135.6,139.9,129.8,131,153.1,134.1,144.1,155.9,123.3,128.1,144.3,153,149.9,150.9,141,138.9,157.4,142.9,151.7,161,138.5,135.9,151.5,164,159.1,157,142.1,144.8,152.1,154.6,148.7,157.7,146.4,136.5) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93.7 92.2 89.0 100.7 113.5 128.1 135.9 136.5 [2,] 105.7 112.2 112.5 123.4 134.4 144.3 151.5 NA [3,] 109.5 111.6 116.8 127.1 126.8 153.0 164.0 NA [4,] 105.3 115.7 107.2 124.1 135.6 149.9 159.1 NA [5,] 102.8 111.3 113.6 131.2 139.9 150.9 157.0 NA [6,] 100.6 104.2 101.8 111.6 129.8 141.0 142.1 NA [7,] 97.6 103.2 102.6 114.2 131.0 138.9 144.8 NA [8,] 110.3 112.7 122.7 130.1 153.1 157.4 152.1 NA [9,] 107.2 106.4 110.3 125.9 134.1 142.9 154.6 NA [10,] 107.2 102.6 110.5 119.0 144.1 151.7 148.7 NA [11,] 108.1 110.6 121.6 133.8 155.9 161.0 157.7 NA [12,] 97.1 95.2 100.3 107.5 123.3 138.5 146.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12.0 20.0 23.5 22.7 20.9 16.2 15.6 NA [2,] 3.8 -0.6 4.3 3.7 -7.6 8.7 12.5 NA [3,] -4.2 4.1 -9.6 -3.0 8.8 -3.1 -4.9 NA [4,] -2.5 -4.4 6.4 7.1 4.3 1.0 -2.1 NA [5,] -2.2 -7.1 -11.8 -19.6 -10.1 -9.9 -14.9 NA [6,] -3.0 -1.0 0.8 2.6 1.2 -2.1 2.7 NA [7,] 12.7 9.5 20.1 15.9 22.1 18.5 7.3 NA [8,] -3.1 -6.3 -12.4 -4.2 -19.0 -14.5 2.5 NA [9,] 0.0 -3.8 0.2 -6.9 10.0 8.8 -5.9 NA [10,] 0.9 8.0 11.1 14.8 11.8 9.3 9.0 NA [11,] -11.0 -15.4 -21.3 -26.3 -32.6 -22.5 -11.3 NA [12,] -4.9 -6.2 0.4 6.0 4.8 -2.6 -9.9 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/1nrm21226003119.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/2y8u51226003119.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/3ble91226003119.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/435nq1226003119.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] [1,] 89.00 105.70 109.50 105.30 102.80 100.6 97.60 110.3 106.40 102.60 108.1 [2,] 92.95 112.35 114.20 111.45 112.45 103.0 102.90 117.7 108.75 108.85 116.1 [3,] 107.10 123.40 126.80 124.10 131.20 111.6 114.20 130.1 125.90 119.00 133.8 [4,] 132.00 139.35 140.05 142.75 145.40 135.4 134.95 152.6 138.50 146.40 156.8 [5,] 136.50 151.50 164.00 159.10 157.00 142.1 144.80 157.4 154.60 151.70 161.0 [,12] [1,] 95.2 [2,] 98.7 [3,] 107.5 [4,] 130.9 [5,] 146.4 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 85.28611 107.2760 111.3628 105.4081 111.5228 92.25124 95.06026 109.2583 [2,] 128.91389 139.5240 142.2372 142.7919 150.8772 130.94876 133.33974 150.9417 [,9] [,10] [,11] [,12] [1,] 108.1338 96.57575 109.4946 88.27068 [2,] 143.6662 141.42425 158.1054 126.72932 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89, 92.95, 107.1, 132, 136.5, 105.7, 112.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50lyd1226003119.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,] 12.0 -0.60 -9.60 -4.40 -19.60 -3.00 7.3 -19.00 -6.90 8.00 -32.60 -9.90 [2,] 15.9 1.55 -4.55 -2.30 -13.35 -1.55 11.1 -13.45 -4.85 8.50 -24.40 -5.55 [3,] 20.0 3.80 -3.10 1.00 -10.10 0.80 15.9 -6.30 0.00 9.30 -21.30 -2.60 [4,] 21.8 6.50 0.55 5.35 -8.50 1.90 19.3 -3.65 4.50 11.45 -13.35 2.60 [5,] 23.5 12.50 4.10 7.10 -2.20 2.70 22.1 2.50 10.00 14.80 -11.00 6.00 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 16.47662 0.8439399 -6.14563772 -3.568457 -12.996342 -1.260284 11.00309 [2,] 23.52338 6.7560601 -0.05436228 5.568457 -7.203658 2.860284 20.79691 [,8] [,9] [,10] [,11] [,12] [1,] -12.1524019 -5.583669 7.538308 -27.89888 -7.467049 [2,] -0.4475981 5.583669 11.061692 -14.70112 2.267049 $out [1] -7.6 8.8 0.9 $group [1] 2 3 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(12, 15.9, 20, 21.8, 23.5, -0.600000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hcx81226003119.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] [,8] [1,] 93.70 92.2 89.0 100.70 113.50 128.10 135.90 136.5 [2,] 99.10 102.9 102.2 112.90 128.30 139.95 145.60 136.5 [3,] 105.50 108.5 110.4 123.75 134.25 147.10 151.80 136.5 [4,] 107.65 111.9 115.2 128.60 142.00 152.35 157.35 136.5 [5,] 110.30 115.7 122.7 133.80 155.90 161.00 164.00 136.5 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.6003 104.3950 104.4706 116.5891 128.0013 141.4443 146.4407 136.5 [2,] 109.3997 112.6050 116.3294 130.9109 140.4987 152.7557 157.1593 136.5 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(93.7, 99.1, 105.5, 107.65, 110.3, 92.2, 102.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wl9n1226003119.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,] 111.2000 107.10 111.6875 [2,] 118.8143 112.90 119.0625 [3,] 126.2714 123.75 126.4750 [4,] 129.6786 128.45 128.2750 [5,] 135.5286 133.80 136.4500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 121.3162 116.6575 122.2731 [2,] 131.2267 130.8425 130.6769 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(111.2, 118.814285714286, 126.271428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nrm21226003119.ps tmp/1nrm21226003119.png") > system("convert tmp/2y8u51226003119.ps tmp/2y8u51226003119.png") > system("convert tmp/3ble91226003119.ps tmp/3ble91226003119.png") > system("convert tmp/435nq1226003119.ps tmp/435nq1226003119.png") > system("convert tmp/50lyd1226003119.ps tmp/50lyd1226003119.png") > system("convert tmp/6hcx81226003119.ps tmp/6hcx81226003119.png") > system("convert tmp/7wl9n1226003119.ps tmp/7wl9n1226003119.png") > > > proc.time() user system elapsed 1.488 1.007 1.893