R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(66.6,71.7,75.4,80.9,80.7,85,91.5,87.7,95.3,102.4,114.2,111.7,113.7,118.8,129,136.4,155,166,168.7,145.5,127.3,91.5,69,54,56.3,54.2,59.3,63.4,73.3,86.7,81.3,89.6,85.3,92.4,96.8,93.6,97.6,94.2,99.9,106.4,96,94.9,94.8,95.9,96.2,103.1,106.9,114.2,118.2,123.9,137.1,146.2,136.4,133.2,135.9,127.1,128.5,126.6,132.6,130.9) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 66.6 113.7 56.3 97.6 118.2 NA [2,] 71.7 118.8 54.2 94.2 123.9 NA [3,] 75.4 129.0 59.3 99.9 137.1 NA [4,] 80.9 136.4 63.4 106.4 146.2 NA [5,] 80.7 155.0 73.3 96.0 136.4 NA [6,] 85.0 166.0 86.7 94.9 133.2 NA [7,] 91.5 168.7 81.3 94.8 135.9 NA [8,] 87.7 145.5 89.6 95.9 127.1 NA [9,] 95.3 127.3 85.3 96.2 128.5 NA [10,] 102.4 91.5 92.4 103.1 126.6 NA [11,] 114.2 69.0 96.8 106.9 132.6 NA [12,] 111.7 54.0 93.6 114.2 130.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.1 5.1 -2.1 -3.4 5.7 NA [2,] 3.7 10.2 5.1 5.7 13.2 NA [3,] 5.5 7.4 4.1 6.5 9.1 NA [4,] -0.2 18.6 9.9 -10.4 -9.8 NA [5,] 4.3 11.0 13.4 -1.1 -3.2 NA [6,] 6.5 2.7 -5.4 -0.1 2.7 NA [7,] -3.8 -23.2 8.3 1.1 -8.8 NA [8,] 7.6 -18.2 -4.3 0.3 1.4 NA [9,] 7.1 -35.8 7.1 6.9 -1.9 NA [10,] 11.8 -22.5 4.4 3.8 6.0 NA [11,] -2.5 -15.0 -3.2 7.3 -1.7 NA [12,] 2.0 2.3 4.0 4.0 NA 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/rcomp/tmp/1br0x1331684341.ps",horizontal=F,onefile=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/rcomp/tmp/2smw21331684341.ps",horizontal=F,onefile=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/rcomp/tmp/3at1g1331684341.ps",horizontal=F,onefile=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/rcomp/tmp/4hi1r1331684341.ps",horizontal=F,onefile=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,] 56.3 54.2 59.3 63.4 73.3 85.0 81.3 87.7 85.3 91.5 96.8 93.6 [2,] 66.6 71.7 75.4 80.9 80.7 86.7 91.5 89.6 95.3 92.4 96.8 93.6 [3,] 97.6 94.2 99.9 106.4 96.0 94.9 94.8 95.9 96.2 102.4 106.9 111.7 [4,] 113.7 118.8 129.0 136.4 136.4 133.2 135.9 127.1 127.3 103.1 114.2 114.2 [5,] 118.2 123.9 137.1 146.2 155.0 166.0 168.7 145.5 128.5 103.1 132.6 130.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 64.31926 60.91926 62.02638 67.18384 56.64252 62.04322 63.42707 [2,] 130.88074 127.48074 137.77362 145.61616 135.35748 127.75678 126.17293 [,8] [,9] [,10] [,11] [,12] [1,] 69.4026 73.58888 94.8394 94.6052 97.1441 [2,] 122.3974 118.81112 109.9606 119.1948 126.2559 $out [1] 126.6 69.0 54.0 $group [1] 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(56.3, 66.6, 97.6, 113.7, 118.2, 54.2, 71.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/55jo61331684341.ps",horizontal=F,onefile=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.4 3.7 4.1 -10.4 -3.2 -0.1 -23.2 -4.3 -1.9 3.8 -3.2 2.00 [2,] -2.1 5.1 5.5 -9.8 -1.1 -0.1 -8.8 -4.3 -1.9 3.8 -3.2 2.15 [3,] 5.1 5.7 6.5 -0.2 4.3 2.7 -3.8 0.3 6.9 4.4 -2.5 3.15 [4,] 5.1 10.2 7.4 9.9 11.0 2.7 1.1 1.4 7.1 6.0 -1.7 4.00 [5,] 5.7 13.2 9.1 18.6 13.4 6.5 8.3 7.6 7.1 6.0 -1.7 4.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01249814 2.096353 5.157465 -14.11997 -4.249830 0.721527 -10.795315 [2,] 10.18750186 9.303647 7.842535 13.71997 12.849830 4.678473 3.195315 [,8] [,9] [,10] [,11] [,12] [1,] -3.727606 0.5406227 2.845486 -3.559896 1.6885 [2,] 4.327606 13.2593773 5.954514 -1.440104 4.6115 $out [1] -5.4 -18.2 -35.8 11.8 -22.5 -15.0 7.3 $group [1] 6 8 9 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.39999999999999, -2.09999999999999, 5.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ytvj1331684341.ps",horizontal=F,onefile=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,] 66.60 54.00 54.20 94.20 118.20 NA [2,] 78.05 102.60 61.35 95.40 126.85 NA [3,] 86.35 128.15 83.30 96.90 131.75 NA [4,] 98.85 150.25 91.00 104.75 136.15 NA [5,] 114.20 168.70 96.80 114.20 146.20 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 76.86298 106.4165 69.77644 92.6354 127.5082 NA [2,] 95.83702 149.8835 96.82356 101.1646 135.9918 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(66.6, 78.05, 86.35, 98.85, 114.2, 54, 102.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7cmjp1331684341.ps",horizontal=F,onefile=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,] 90.48 94.2 90.150 [2,] 100.51 95.4 99.975 [3,] 105.21 96.9 106.925 [4,] 108.72 104.4 109.300 [5,] 114.44 111.7 113.700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 101.4654 92.79504 102.6718 [2,] 108.9546 101.00496 111.1782 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(90.48, 100.51, 105.21, 108.72, 114.44, 94.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1br0x1331684341.ps tmp/1br0x1331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/2smw21331684341.ps tmp/2smw21331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/3at1g1331684341.ps tmp/3at1g1331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/4hi1r1331684341.ps tmp/4hi1r1331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/55jo61331684341.ps tmp/55jo61331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/6ytvj1331684341.ps tmp/6ytvj1331684341.png",intern=TRUE)) character(0) > try(system("convert tmp/7cmjp1331684341.ps tmp/7cmjp1331684341.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.410 0.280 2.664