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(90.2,105.1,116.1,101.6,88.1,113.7,104.1,110.5,111.3,101.6,105.6,104.2,94.1,116.1,118.3,100.8,100.8,109.3,107.8,124.2,117,104.3,121.2,101.2,104.9,120.7,115.8,106.4,105.4,106.7,100.6,112.8,109.2,102.6,116.1,98.1,99.1,116.8,106.5,107.1,101.5,103.3,100.6,116.8,102.5,106.1,111.1,94.3,101.2,111,114.1,109.8,99.8,104.1,106.3,116.3,104,107.2,113.4,104.2,103,109.3,122.6,109.6,94.2,113.6,110,110.1,112.9,105.4,108.2,101.1,95.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] 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,] 90.2 94.1 104.9 99.1 101.2 103.0 95.2 [2,] 105.1 116.1 120.7 116.8 111.0 109.3 NA [3,] 116.1 118.3 115.8 106.5 114.1 122.6 NA [4,] 101.6 100.8 106.4 107.1 109.8 109.6 NA [5,] 88.1 100.8 105.4 101.5 99.8 94.2 NA [6,] 113.7 109.3 106.7 103.3 104.1 113.6 NA [7,] 104.1 107.8 100.6 100.6 106.3 110.0 NA [8,] 110.5 124.2 112.8 116.8 116.3 110.1 NA [9,] 111.3 117.0 109.2 102.5 104.0 112.9 NA [10,] 101.6 104.3 102.6 106.1 107.2 105.4 NA [11,] 105.6 121.2 116.1 111.1 113.4 108.2 NA [12,] 104.2 101.2 98.1 94.3 104.2 101.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.9 22.0 15.8 17.7 9.8 6.3 NA [2,] 11.0 2.2 -4.9 -10.3 3.1 13.3 NA [3,] -14.5 -17.5 -9.4 0.6 -4.3 -13.0 NA [4,] -13.5 0.0 -1.0 -5.6 -10.0 -15.4 NA [5,] 25.6 8.5 1.3 1.8 4.3 19.4 NA [6,] -9.6 -1.5 -6.1 -2.7 2.2 -3.6 NA [7,] 6.4 16.4 12.2 16.2 10.0 0.1 NA [8,] 0.8 -7.2 -3.6 -14.3 -12.3 2.8 NA [9,] -9.7 -12.7 -6.6 3.6 3.2 -7.5 NA [10,] 4.0 16.9 13.5 5.0 6.2 2.8 NA [11,] -1.4 -20.0 -18.0 -16.8 -9.2 -7.1 NA [12,] -10.1 3.7 1.0 6.9 -1.2 -5.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/182h71225972734.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/2i0yo1225972734.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/3sm0k1225972734.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/4h3291225972734.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,] 90.20 105.10 114.10 100.80 88.1 103.3 100.6 110.10 102.50 101.60 105.60 [2,] 94.65 109.30 114.10 101.60 94.2 104.1 100.6 110.50 104.00 102.60 108.20 [3,] 99.10 113.55 115.95 106.75 100.3 108.0 105.2 114.55 110.25 104.85 112.25 [4,] 102.10 116.80 118.30 109.60 101.5 113.6 107.8 116.80 112.90 106.10 116.10 [5,] 104.90 120.70 122.60 109.80 105.4 113.7 110.0 124.20 117.00 107.20 121.20 [,12] [1,] 94.30 [2,] 98.10 [3,] 101.15 [4,] 104.20 [5,] 104.20 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94.65098 108.7123 113.2409 101.5897 95.59126 101.8722 100.5558 110.4863 [2,] 103.54902 118.3877 118.6591 111.9103 105.00874 114.1278 109.8442 118.6137 [,9] [,10] [,11] [,12] [1,] 104.5092 102.5924 107.1542 97.2153 [2,] 115.9908 107.1076 117.3458 105.0847 $out [1] 106.5 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(90.2, 94.65, 99.1, 102.1, 104.9, 105.1, 109.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51b091225972734.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.30 -10.30 -17.5 -15.4 1.3 -9.60 0.1 -14.3 -12.70 2.8 -20.0 -10.1 [2,] 9.80 -4.90 -14.5 -13.5 1.8 -6.10 6.4 -12.3 -9.70 4.0 -18.0 -5.9 [3,] 15.35 2.65 -11.2 -7.8 6.4 -3.15 11.1 -5.4 -7.05 5.6 -13.0 -0.1 [4,] 17.70 11.00 -4.3 -1.0 19.4 -1.50 16.2 0.8 3.20 13.5 -7.1 3.7 [5,] 22.00 13.30 0.6 0.0 25.6 2.20 16.4 2.8 3.60 16.9 -1.4 6.9 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.25424 -7.606014 -17.779329 -15.8629037 -4.952568 -6.1171486 4.778683 [2,] 20.44576 12.906014 -4.620671 0.2629037 17.752568 -0.1828514 17.421317 [,8] [,9] [,10] [,11] [,12] [1,] -13.849923 -15.370917 -0.5278068 -20.030852 -6.29231 [2,] 3.049923 1.270917 11.7278068 -5.969148 6.09231 $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(6.3, 9.8, 15.35, 17.7, 22, -10.3, -4.90000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67ydg1225972734.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,] 88.10 94.10 98.10 94.30 99.80 94.20 95.2 [2,] 101.60 101.00 103.75 101.05 104.05 104.20 95.2 [3,] 104.65 108.55 106.55 104.70 106.75 109.45 95.2 [4,] 110.90 117.65 114.30 109.10 112.20 111.50 95.2 [5,] 116.10 124.20 120.70 116.80 116.30 113.60 95.2 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 100.4082 100.9558 101.7381 101.0283 103.0327 106.1204 95.2 [2,] 108.8918 116.1442 111.3619 108.3717 110.4673 112.7796 95.2 $out [1] 122.6 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(88.1, 101.6, 104.65, 110.9, 116.1, 94.1, 101, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qae11225972734.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,] 98.24286 99.100 98.3750 [2,] 102.52500 103.000 102.8000 [3,] 107.16667 107.375 107.2625 [4,] 112.88333 112.900 112.6750 [5,] 115.56667 115.950 116.1375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.4422 102.8595 102.7584 [2,] 111.8912 111.8905 111.7666 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(98.2428571428571, 102.525, 107.166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/182h71225972734.ps tmp/182h71225972734.png") > system("convert tmp/2i0yo1225972734.ps tmp/2i0yo1225972734.png") > system("convert tmp/3sm0k1225972734.ps tmp/3sm0k1225972734.png") > system("convert tmp/4h3291225972734.ps tmp/4h3291225972734.png") > system("convert tmp/51b091225972734.ps tmp/51b091225972734.png") > system("convert tmp/67ydg1225972734.ps tmp/67ydg1225972734.png") > system("convert tmp/7qae11225972734.ps tmp/7qae11225972734.png") > > > proc.time() user system elapsed 1.445 0.979 2.288