R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(57.7,63.6,78,77.4,74.1,85.9,82,78.4,68.1,70.9,85.2,149.6,57.9,63.7,85,66.1,80.2,83.4,85.7,81.8,69.4,76.4,90.3,157.3,65.3,68.4,72.7,86.6,82.6,84.8,93.4,82.2,75.2,83.9,85.4,166.3,70.4,73.9,82.4,92.3,82.7,95.8,105.8,84.2,82.7,88.4,90.2,176.6,69.5,77.3,98.6,86.4,90.8,101.5,112.2,93.6,93.8,90.8,98.1,187.6,75,83.7,99.7,104.9,98.9,117.3,115.7,102.2,101.9,96.6,110,203.7,82.3,93.3,121.9,100.9,107.7,130,123.2,116.1,105.3,107.7,123.9,205.2,90.3,106.9,122.4,111.3,122.6,124.8,139.5,118.8,111,121.2,120.6,219.1,101.3,105,113.4,133.6,123.9,136.2,151.7,121.9,120.2,132.2,125.2,233.8) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 57.7 57.9 65.3 70.4 69.5 75.0 82.3 90.3 101.3 NA [2,] 63.6 63.7 68.4 73.9 77.3 83.7 93.3 106.9 105.0 NA [3,] 78.0 85.0 72.7 82.4 98.6 99.7 121.9 122.4 113.4 NA [4,] 77.4 66.1 86.6 92.3 86.4 104.9 100.9 111.3 133.6 NA [5,] 74.1 80.2 82.6 82.7 90.8 98.9 107.7 122.6 123.9 NA [6,] 85.9 83.4 84.8 95.8 101.5 117.3 130.0 124.8 136.2 NA [7,] 82.0 85.7 93.4 105.8 112.2 115.7 123.2 139.5 151.7 NA [8,] 78.4 81.8 82.2 84.2 93.6 102.2 116.1 118.8 121.9 NA [9,] 68.1 69.4 75.2 82.7 93.8 101.9 105.3 111.0 120.2 NA [10,] 70.9 76.4 83.9 88.4 90.8 96.6 107.7 121.2 132.2 NA [11,] 85.2 90.3 85.4 90.2 98.1 110.0 123.9 120.6 125.2 NA [12,] 149.6 157.3 166.3 176.6 187.6 203.7 205.2 219.1 233.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5.9 5.8 3.1 3.5 7.8 8.7 11.0 16.6 3.7 NA [2,] 14.4 21.3 4.3 8.5 21.3 16.0 28.6 15.5 8.4 NA [3,] -0.6 -18.9 13.9 9.9 -12.2 5.2 -21.0 -11.1 20.2 NA [4,] -3.3 14.1 -4.0 -9.6 4.4 -6.0 6.8 11.3 -9.7 NA [5,] 11.8 3.2 2.2 13.1 10.7 18.4 22.3 2.2 12.3 NA [6,] -3.9 2.3 8.6 10.0 10.7 -1.6 -6.8 14.7 15.5 NA [7,] -3.6 -3.9 -11.2 -21.6 -18.6 -13.5 -7.1 -20.7 -29.8 NA [8,] -10.3 -12.4 -7.0 -1.5 0.2 -0.3 -10.8 -7.8 -1.7 NA [9,] 2.8 7.0 8.7 5.7 -3.0 -5.3 2.4 10.2 12.0 NA [10,] 14.3 13.9 1.5 1.8 7.3 13.4 16.2 -0.6 -7.0 NA [11,] 64.4 67.0 80.9 86.4 89.5 93.7 81.3 98.5 108.6 NA [12,] -91.7 -92.0 -95.9 -107.1 -112.6 -121.4 -114.9 -117.8 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/1grjg1290269488.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/2grjg1290269488.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/3grjg1290269488.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/491001290269488.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,] 57.7 63.6 72.7 66.1 74.1 83.4 82.0 78.4 68.1 70.9 85.2 149.6 [2,] 65.3 68.4 82.4 86.4 82.6 85.9 93.4 82.2 75.2 83.9 90.2 166.3 [3,] 70.4 77.3 98.6 92.3 90.8 101.5 112.2 93.6 93.8 90.8 98.1 187.6 [4,] 82.3 93.3 113.4 104.9 107.7 124.8 123.2 116.1 105.3 107.7 120.6 205.2 [5,] 101.3 106.9 122.4 111.3 123.9 136.2 151.7 121.9 120.2 132.2 125.2 233.8 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 61.44667 64.186 82.27333 82.55667 77.58067 81.01267 96.50533 75.746 [2,] 79.35333 90.414 114.92667 102.04333 104.01933 121.98733 127.89467 111.454 [,9] [,10] [,11] [,12] [1,] 77.94733 78.26533 82.08933 167.1127 [2,] 109.65267 103.33467 114.11067 208.0873 $out [1] 133.6 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(57.7, 65.3, 70.4, 82.3, 101.3, 63.6, 68.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/591001290269488.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,] 3.1 4.3 -21.0 -9.7 2.2 -6.8 -29.8 -12.4 -5.3 -7.0 64.4 -121.40 [2,] 3.7 8.5 -12.2 -6.0 3.2 -1.6 -20.7 -10.3 2.4 1.5 80.9 -116.35 [3,] 5.9 15.5 -0.6 -3.3 11.8 8.6 -13.5 -7.0 5.7 7.3 86.4 -109.85 [4,] 8.7 21.3 9.9 6.8 13.1 10.7 -7.1 -1.5 8.7 13.9 93.7 -93.95 [5,] 11.0 28.6 20.2 14.1 22.3 15.5 -3.6 0.2 12.0 16.2 108.6 -91.70 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.266667 8.758667 -12.23933 -10.041333 6.586 2.122 -20.662667 [2,] 8.533333 22.241333 11.03933 3.441333 17.014 15.078 -6.337333 [,8] [,9] [,10] [,11] [,12] [1,] -11.634667 2.382 0.7693333 79.65867 -122.36296 [2,] -2.365333 9.018 13.8306667 93.14133 -97.33704 $out [1] 16.6 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3.10000000000001, 3.7, 5.9, 8.7, 11, 4.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jsz31290269488.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] [,10] [1,] 57.7 57.90 65.30 70.40 77.30 83.70 82.30 106.90 101.30 NA [2,] 69.5 67.75 73.95 82.55 88.60 97.75 103.10 111.15 116.80 NA [3,] 77.7 81.00 83.25 86.30 93.70 102.05 111.90 120.90 124.55 NA [4,] 83.6 85.35 86.00 94.05 100.05 112.85 123.55 123.70 134.90 NA [5,] 85.9 90.30 93.40 105.80 112.20 117.30 130.00 139.50 151.70 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 71.2689 72.97252 77.75391 81.05477 88.47758 95.16279 102.5726 115.1759 [2,] 84.1311 89.02748 88.74609 91.54523 98.92242 108.93721 121.2274 126.6241 [,9] [,10] [1,] 116.2945 NA [2,] 132.8055 NA $out [1] 149.6 157.3 166.3 176.6 69.5 187.6 75.0 203.7 205.2 90.3 219.1 233.8 $group [1] 1 2 3 4 5 5 6 6 7 8 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(57.7, 69.5, 77.7, 83.6, 85.9, 57.9, 67.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7jsz31290269488.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,] 81.75556 77.30 73.800 [2,] 93.72778 90.80 92.700 [3,] 96.78889 93.70 96.850 [4,] 104.92222 100.05 105.375 [5,] 112.13333 112.20 108.300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 91.68303 89.48101 91.06885 [2,] 101.89475 97.91899 102.63115 $out [1] 74.41111 188.80000 70.40000 187.60000 185.75000 $group [1] 1 1 2 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(81.7555555555556, 93.7277777777778, 96.7888888888889, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1grjg1290269488.ps tmp/1grjg1290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/2grjg1290269488.ps tmp/2grjg1290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/3grjg1290269488.ps tmp/3grjg1290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/491001290269488.ps tmp/491001290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/591001290269488.ps tmp/591001290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/6jsz31290269488.ps tmp/6jsz31290269488.png",intern=TRUE)) character(0) > try(system("convert tmp/7jsz31290269488.ps tmp/7jsz31290269488.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.202 0.948 2.988