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(119.5,125.0,145.0,105.3,116.9,120.1,88.9,78.4,114.6,113.3,117.0,99.6,99.4,101.9,115.2,108.5,113.8,121.0,92.2,90.2,101.5,126.6,93.9,89.8,93.4,101.5,110.4,105.9,108.4,113.9,86.1,69.4,101.2,100.5,98.0,106.6,90.1,96.9,125.9,112.0,100.0,123.9,79.8,83.4,113.6,112.9,104.0,109.9,99.0,106.3,128.9,111.1,102.9,130.0,87.0,87.5,117.6,103.4,110.8,112.6,102.5,112.4,135.6,105.1,127.7,137.0,91.0,90.5,122.4,123.3,124.3,120.0,118.1,119.0,142.7,123.6,129.6,151.6,110.4,99.2,130.5,136.2,129.7,128.0,121.6) > 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,] 119.5 99.4 93.4 90.1 99.0 102.5 118.1 121.6 [2,] 125.0 101.9 101.5 96.9 106.3 112.4 119.0 NA [3,] 145.0 115.2 110.4 125.9 128.9 135.6 142.7 NA [4,] 105.3 108.5 105.9 112.0 111.1 105.1 123.6 NA [5,] 116.9 113.8 108.4 100.0 102.9 127.7 129.6 NA [6,] 120.1 121.0 113.9 123.9 130.0 137.0 151.6 NA [7,] 88.9 92.2 86.1 79.8 87.0 91.0 110.4 NA [8,] 78.4 90.2 69.4 83.4 87.5 90.5 99.2 NA [9,] 114.6 101.5 101.2 113.6 117.6 122.4 130.5 NA [10,] 113.3 126.6 100.5 112.9 103.4 123.3 136.2 NA [11,] 117.0 93.9 98.0 104.0 110.8 124.3 129.7 NA [12,] 99.6 89.8 106.6 109.9 112.6 120.0 128.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.5 2.5 8.1 6.8 7.3 9.9 0.9 NA [2,] 20.0 13.3 8.9 29.0 22.6 23.2 23.7 NA [3,] -39.7 -6.7 -4.5 -13.9 -17.8 -30.5 -19.1 NA [4,] 11.6 5.3 2.5 -12.0 -8.2 22.6 6.0 NA [5,] 3.2 7.2 5.5 23.9 27.1 9.3 22.0 NA [6,] -31.2 -28.8 -27.8 -44.1 -43.0 -46.0 -41.2 NA [7,] -10.5 -2.0 -16.7 3.6 0.5 -0.5 -11.2 NA [8,] 36.2 11.3 31.8 30.2 30.1 31.9 31.3 NA [9,] -1.3 25.1 -0.7 -0.7 -14.2 0.9 5.7 NA [10,] 3.7 -32.7 -2.5 -8.9 7.4 1.0 -6.5 NA [11,] -17.4 -4.1 8.6 5.9 1.8 -4.3 -1.7 NA [12,] -0.2 3.6 -16.5 -10.9 -10.1 -1.9 -6.4 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/1a75o1228233196.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/2x2te1228233196.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/3ro2l1228233196.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/4udb21228233196.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.10 96.9 110.40 105.10 100.00 113.90 79.80 69.40 101.20 100.50 93.90 [2,] 96.20 101.7 120.55 105.60 105.65 120.55 86.55 80.90 107.55 108.15 101.00 [3,] 100.95 106.3 128.90 108.50 113.80 123.90 88.90 87.50 114.60 113.30 110.80 [4,] 118.80 115.7 139.15 111.55 122.30 133.50 91.60 90.35 120.00 124.95 120.65 [5,] 121.60 125.0 145.00 112.00 129.60 151.60 92.20 99.20 130.50 136.20 129.70 [,12] [1,] 89.8 [2,] 103.1 [3,] 109.9 [4,] 116.3 [5,] 128.0 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.32532 97.93943 117.7924 104.9468 103.8569 116.1665 85.88422 81.85661 [2,] 113.57468 114.66057 140.0076 112.0532 123.7431 131.6335 91.91578 93.14339 [,9] [,10] [,11] [,12] [1,] 107.1651 103.2673 99.06534 102.0172 [2,] 122.0349 123.3327 122.53466 117.7828 $out [1] 123.6 110.4 $group [1] 4 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(90.1, 96.2, 100.95, 118.8, 121.6, 96.9, 101.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gpa51228233196.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,] 0.9 8.90 -39.7 -12.00 3.20 -46.00 -16.70 30.10 -1.3 -8.90 -4.30 -16.50 [2,] 4.0 16.65 -24.8 -2.85 6.35 -43.55 -10.85 30.15 -1.0 -7.70 -4.20 -10.50 [3,] 6.8 22.60 -17.8 5.30 9.30 -41.20 -2.00 31.30 -0.7 -2.50 -1.70 -6.40 [4,] 7.7 23.45 -10.3 8.80 22.95 -30.00 0.00 31.85 3.3 2.35 3.85 -1.05 [5,] 9.9 29.00 -4.5 22.60 27.10 -27.80 3.60 31.90 5.7 7.40 8.60 3.60 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4.59042 18.53915 -26.459166 -1.657192 -0.6132522 -49.29184 -8.479445 [2,] 9.00958 26.66085 -9.140834 12.257192 19.2132522 -33.10816 4.479445 [,8] [,9] [,10] [,11] [,12] [1,] 30.28479 -3.267891 -8.501698 -6.50733 -12.0433875 [2,] 32.31521 1.867891 3.501698 3.10733 -0.7566125 $out [1] 36.2 11.3 25.1 -14.2 -32.7 -17.4 $group [1] 8 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.900000000000006, 4, 6.80000000000001, 7.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6urcc1228233196.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,] 78.40 89.80 86.10 79.80 87.00 90.5 99.20 121.6 [2,] 102.45 93.05 95.70 93.50 100.95 103.8 118.55 121.6 [3,] 115.75 101.70 101.35 106.95 108.55 121.2 128.80 121.6 [4,] 119.80 114.50 107.50 113.25 115.10 126.0 133.35 121.6 [5,] 145.00 126.60 113.90 125.90 130.00 137.0 151.60 121.6 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 107.8365 91.91651 95.96794 97.9419 102.0961 111.0744 122.0496 121.6 [2,] 123.6635 111.48349 106.73206 115.9581 115.0039 131.3256 135.5504 121.6 $out [1] 69.4 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(78.4, 102.45, 115.75, 119.8, 145, 89.8, 93.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7o6z91228233196.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.4500 88.900 108.0250 [2,] 107.2250 103.625 108.3000 [3,] 110.6571 110.350 110.2625 [4,] 115.5429 114.200 115.2625 [5,] 116.6000 128.900 116.5500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 106.8633 105.5267 107.0869 [2,] 114.4510 115.1733 113.4381 $out [1] 129.10000 128.21429 90.77143 85.51429 87.50000 129.85000 127.02500 [8] 89.07500 85.62500 $group [1] 1 1 1 1 2 3 3 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.45, 107.225, 110.657142857143, 115.542857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1a75o1228233196.ps tmp/1a75o1228233196.png") > system("convert tmp/2x2te1228233196.ps tmp/2x2te1228233196.png") > system("convert tmp/3ro2l1228233196.ps tmp/3ro2l1228233196.png") > system("convert tmp/4udb21228233196.ps tmp/4udb21228233196.png") > system("convert tmp/5gpa51228233196.ps tmp/5gpa51228233196.png") > system("convert tmp/6urcc1228233196.ps tmp/6urcc1228233196.png") > system("convert tmp/7o6z91228233196.ps tmp/7o6z91228233196.png") > > > proc.time() user system elapsed 1.183 0.933 1.452