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(83.1,89.6,105.7,110.7,110.4,109,106,100.9,114.3,101.2,109.2,111.6,91.7,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.7) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 83.1 91.7 97.1 95.2 100.3 107.5 123.3 138.5 146.7 [2,] 89.6 93.7 92.2 89.0 100.7 113.5 128.1 135.9 NA [3,] 105.7 105.7 112.2 112.5 123.4 134.4 144.3 151.5 NA [4,] 110.7 109.5 111.6 116.8 127.1 126.8 153.0 164.0 NA [5,] 110.4 105.3 115.7 107.2 124.1 135.6 149.9 159.1 NA [6,] 109.0 102.8 111.3 113.6 131.2 139.9 150.9 157.0 NA [7,] 106.0 100.6 104.2 101.8 111.6 129.8 141.0 142.1 NA [8,] 100.9 97.6 103.2 102.6 114.2 131.0 138.9 144.8 NA [9,] 114.3 110.3 112.7 122.7 130.1 153.1 157.4 152.1 NA [10,] 101.2 107.2 106.4 110.3 125.9 134.1 142.9 154.6 NA [11,] 109.2 107.2 102.6 110.5 119.0 144.1 151.7 148.7 NA [12,] 111.6 108.1 110.6 121.6 133.8 155.9 161.0 157.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 6.5 2.0 -4.9 -6.2 0.4 6.0 4.8 -2.6 NA [2,] 16.1 12.0 20.0 23.5 22.7 20.9 16.2 15.6 NA [3,] 5.0 3.8 -0.6 4.3 3.7 -7.6 8.7 12.5 NA [4,] -0.3 -4.2 4.1 -9.6 -3.0 8.8 -3.1 -4.9 NA [5,] -1.4 -2.5 -4.4 6.4 7.1 4.3 1.0 -2.1 NA [6,] -3.0 -2.2 -7.1 -11.8 -19.6 -10.1 -9.9 -14.9 NA [7,] -5.1 -3.0 -1.0 0.8 2.6 1.2 -2.1 2.7 NA [8,] 13.4 12.7 9.5 20.1 15.9 22.1 18.5 7.3 NA [9,] -13.1 -3.1 -6.3 -12.4 -4.2 -19.0 -14.5 2.5 NA [10,] 8.0 0.0 -3.8 0.2 -6.9 10.0 8.8 -5.9 NA [11,] 2.4 0.9 8.0 11.1 14.8 11.8 9.3 9.0 NA [12,] -19.9 -11.0 -15.4 -21.3 -26.3 -32.6 -22.5 -11.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/17u761225293437.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/273jw1225293437.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/3byv81225293437.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/48rwf1225293437.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,] 83.1 89.0 105.70 109.50 105.30 102.80 100.6 97.60 110.3 101.2 102.60 [2,] 95.2 90.9 108.95 111.15 108.80 110.15 103.0 101.75 113.5 106.8 108.20 [3,] 100.3 97.2 117.95 121.80 119.90 122.40 108.8 108.70 126.4 118.1 114.75 [4,] 123.3 120.8 139.35 140.05 142.75 145.40 135.4 134.95 152.6 138.5 146.40 [5,] 146.7 135.9 151.50 164.00 159.10 157.00 142.1 144.80 157.4 154.6 151.70 [,12] [1,] 108.1 [2,] 111.1 [3,] 127.7 [4,] 156.8 [5,] 161.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 85.50067 80.49743 100.9681 105.6560 100.9350 102.7088 90.7009 90.154 [2,] 115.09933 113.90257 134.9319 137.9440 138.8650 142.0912 126.8991 127.246 [,9] [,10] [,11] [,12] [1,] 104.5582 100.3919 93.41093 102.1713 [2,] 148.2418 135.8081 136.08907 153.2287 $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(83.1, 95.2, 100.3, 123.3, 146.7, 89, 90.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ijaf1225293437.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,] -6.20 12.00 -0.60 -9.60 -4.40 -19.60 -5.10 7.30 -19.00 -6.90 0.90 -32.6 [2,] -3.75 15.85 1.55 -4.55 -2.30 -13.35 -2.55 11.10 -13.80 -4.85 5.20 -24.4 [3,] 1.20 18.10 4.05 -3.05 -0.20 -10.00 -0.10 14.65 -9.35 0.10 9.15 -20.6 [4,] 5.40 21.80 6.85 1.90 5.35 -5.05 1.90 19.30 -3.65 8.40 11.45 -13.2 [5,] 6.50 23.50 12.50 8.80 7.10 -2.20 2.70 22.10 2.50 10.00 14.80 -11.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.911321 14.77624 1.089344 -6.6530626 -4.4734 -14.636499 -2.585834 [2,] 6.311321 21.42376 7.010656 0.5530626 4.0734 -5.363501 2.385834 [,8] [,9] [,10] [,11] [,12] [1,] 10.06936 -15.019936 -7.30164 5.65866 -26.85648 [2,] 19.23064 -3.680064 7.50164 12.64134 -14.34352 $out [1] -7.6 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.2, -3.74999999999999, 1.20000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sp0y1225293437.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] [,9] [1,] 89.60 91.70 92.2 89.0 100.30 113.50 123.30 135.90 146.7 [2,] 101.05 99.10 102.9 102.2 112.90 128.30 139.95 143.45 146.7 [3,] 107.50 105.50 108.5 110.4 123.75 134.25 147.10 151.80 146.7 [4,] 110.55 107.65 111.9 115.2 128.60 142.00 152.35 157.35 146.7 [5,] 114.30 110.30 115.7 122.7 133.80 155.90 161.00 164.00 146.7 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.1670 101.6003 104.3950 104.4706 116.5891 128.0013 141.4443 145.4601 [2,] 111.8330 109.3997 112.6050 116.3294 130.9109 140.4987 152.7557 158.1399 [,9] [1,] 146.7 [2,] 146.7 $out [1] 83.1 107.5 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(89.6, 101.05, 107.5, 110.55, 114.3, 91.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7e9ho1225293437.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,] 105.3375 97.200 104.3500 [2,] 116.8938 108.750 117.8375 [3,] 123.9188 118.025 123.1000 [4,] 127.2000 122.100 126.8312 [5,] 132.5375 127.700 133.8500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 119.2180 111.9360 118.9979 [2,] 128.6195 124.1140 127.2021 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.3375, 116.89375, 123.91875, 127.2, 132.5375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17u761225293437.ps tmp/17u761225293437.png") > system("convert tmp/273jw1225293437.ps tmp/273jw1225293437.png") > system("convert tmp/3byv81225293437.ps tmp/3byv81225293437.png") > system("convert tmp/48rwf1225293437.ps tmp/48rwf1225293437.png") > system("convert tmp/5ijaf1225293437.ps tmp/5ijaf1225293437.png") > system("convert tmp/6sp0y1225293437.ps tmp/6sp0y1225293437.png") > system("convert tmp/7e9ho1225293437.ps tmp/7e9ho1225293437.png") > > > proc.time() user system elapsed 1.446 0.969 1.718