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(72.5,72.0,98.8,75.2,81.2,88.0,54.6,68.6,101.5,93.4,84.5,91.4,64.5,64.5,117.3,73.5,79.7,102.6,57.9,73.1,102.4,82.3,89.1,84.7,81.4,67.5,113.9,83.8,73.9,103.9,67.9,62.5,125.4,79.1,106.3,96.2,94.3,85.6,117.4,88.5,124.2,119.3,76.8,70.6,122.1,109.5,119.9,102.3,79.6,78.2,103.6,77.8,99.1,105.7,84.1,88.7,108.0,98.1,101.0,82.0) > 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,] 72.5 64.5 81.4 94.3 79.6 NA [2,] 72.0 64.5 67.5 85.6 78.2 NA [3,] 98.8 117.3 113.9 117.4 103.6 NA [4,] 75.2 73.5 83.8 88.5 77.8 NA [5,] 81.2 79.7 73.9 124.2 99.1 NA [6,] 88.0 102.6 103.9 119.3 105.7 NA [7,] 54.6 57.9 67.9 76.8 84.1 NA [8,] 68.6 73.1 62.5 70.6 88.7 NA [9,] 101.5 102.4 125.4 122.1 108.0 NA [10,] 93.4 82.3 79.1 109.5 98.1 NA [11,] 84.5 89.1 106.3 119.9 101.0 NA [12,] 91.4 84.7 96.2 102.3 82.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.5 0.0 -13.9 -8.7 -1.4 NA [2,] 26.8 52.8 46.4 31.8 25.4 NA [3,] -23.6 -43.8 -30.1 -28.9 -25.8 NA [4,] 6.0 6.2 -9.9 35.7 21.3 NA [5,] 6.8 22.9 30.0 -4.9 6.6 NA [6,] -33.4 -44.7 -36.0 -42.5 -21.6 NA [7,] 14.0 15.2 -5.4 -6.2 4.6 NA [8,] 32.9 29.3 62.9 51.5 19.3 NA [9,] -8.1 -20.1 -46.3 -12.6 -9.9 NA [10,] -8.9 6.8 27.2 10.4 2.9 NA [11,] 6.9 -4.4 -10.1 -17.6 -19.0 NA [12,] -26.9 -3.3 -1.9 -22.7 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/html/rcomp/tmp/12x0p1228482484.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/2l4gl1228482484.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/3mk631228482484.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/4vi1k1228482484.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] [,12] [1,] 64.5 64.5 98.8 73.5 73.9 102.6 54.6 62.5 101.5 79.1 84.5 82.0 [2,] 72.5 67.5 103.6 75.2 79.7 102.6 57.9 68.6 102.4 82.3 89.1 84.7 [3,] 79.6 72.0 113.9 77.8 81.2 103.9 67.9 70.6 108.0 93.4 101.0 91.4 [4,] 81.4 78.2 117.3 83.8 99.1 105.7 76.8 73.1 122.1 98.1 106.3 96.2 [5,] 94.3 85.6 117.4 88.5 124.2 105.7 84.1 73.1 125.4 109.5 119.9 102.3 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 73.31128 64.43941 104.2196 71.72326 67.49201 101.7095 54.54531 67.42031 [2,] 85.88872 79.56059 123.5804 83.87674 94.90799 106.0905 81.25469 73.77969 [,9] [,10] [,11] [,12] [1,] 94.08003 82.23576 88.84652 83.27413 [2,] 121.91997 104.56424 113.15348 99.52587 $out [1] 88.0 119.3 88.7 $group [1] 6 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(64.5, 72.5, 79.6, 81.4, 94.3, 64.5, 67.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5y4961228482484.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,] -13.9 25.4 -30.1 -9.9 -4.9 -44.7 -6.2 19.3 -20.1 2.9 -19.0 -26.9 [2,] -8.7 26.8 -30.1 6.0 6.6 -42.5 -5.4 29.3 -20.1 2.9 -17.6 -24.8 [3,] -1.4 31.8 -28.9 6.2 6.8 -36.0 4.6 32.9 -12.6 6.8 -10.1 -13.0 [4,] -0.5 46.4 -25.8 21.3 22.9 -33.4 14.0 51.5 -9.9 10.4 -4.4 -2.6 [5,] 0.0 52.8 -23.6 35.7 30.0 -21.6 15.2 62.9 -8.1 10.4 6.9 -1.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.194099 17.95069 -31.93837 -4.610941 -4.717539 -42.43004 -9.107991 [2,] 4.394099 45.64931 -25.86163 17.010941 18.317539 -29.56996 18.307991 [,8] [,9] [,10] [,11] [,12] [1,] 17.21354 -19.807294 1.500519 -19.4270867 -30.538 [2,] 48.58646 -5.392706 12.099481 -0.7729133 4.538 $out [1] -43.8 -46.3 -8.9 27.2 $group [1] 3 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-13.9, -8.7, -1.39999999999999, -0.5, 0, 25.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nmx61228482484.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] [1,] 54.60 57.90 62.5 70.60 77.8 NA [2,] 72.25 68.80 70.9 87.05 80.8 NA [3,] 82.85 81.00 82.6 105.90 93.4 NA [4,] 92.40 95.75 105.1 119.60 102.3 NA [5,] 101.50 117.30 125.4 124.20 108.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 73.65945 68.70792 67.00115 91.05373 83.5937 NA [2,] 92.04055 93.29208 98.19885 120.74627 103.2063 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(54.6, 72.25, 82.85, 92.4, 101.5, 57.9, 68.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7k7nn1228482484.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,] 68.26 67.90 67.350 [2,] 76.01 74.90 74.900 [3,] 91.47 86.30 89.800 [4,] 102.03 102.45 100.925 [5,] 111.88 113.90 112.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 79.6021 73.73426 77.92982 [2,] 103.3379 98.86574 101.67018 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(68.26, 76.01, 91.47, 102.03, 111.88, 67.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12x0p1228482484.ps tmp/12x0p1228482484.png") > system("convert tmp/2l4gl1228482484.ps tmp/2l4gl1228482484.png") > system("convert tmp/3mk631228482484.ps tmp/3mk631228482484.png") > system("convert tmp/4vi1k1228482484.ps tmp/4vi1k1228482484.png") > system("convert tmp/5y4961228482484.ps tmp/5y4961228482484.png") > system("convert tmp/6nmx61228482484.ps tmp/6nmx61228482484.png") > system("convert tmp/7k7nn1228482484.ps tmp/7k7nn1228482484.png") > > > proc.time() user system elapsed 1.224 0.960 1.519