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(109.20,88.60,94.30,98.30,86.40,80.60,104.10,108.20,93.40,71.90,94.10,94.90,96.40,91.10,84.40,86.40,88.00,75.10,109.70,103.00,82.10,68.00,96.40,94.30,90.00,88.00,76.10,82.50,81.40,66.50,97.20,94.10,80.70,70.50,87.80,89.50,99.60,84.20,75.10,92.00,80.80,73.10,99.80,90.00,83.10,72.40,78.80,87.30,91.00,80.10,73.60,86.40,74.50,71.20,92.40,81.50,85.30,69.90,84.20,90.70,100.30) > par1 = '24' > #'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] 61 > (np <- floor(n / par1)) [1] 2 > 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] 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 109.2 90.0 91.0 [2,] 88.6 88.0 80.1 [3,] 94.3 76.1 73.6 [4,] 98.3 82.5 86.4 [5,] 86.4 81.4 74.5 [6,] 80.6 66.5 71.2 [7,] 104.1 97.2 92.4 [8,] 108.2 94.1 81.5 [9,] 93.4 80.7 85.3 [10,] 71.9 70.5 69.9 [11,] 94.1 87.8 84.2 [12,] 94.9 89.5 90.7 [13,] 96.4 99.6 100.3 [14,] 91.1 84.2 NA [15,] 84.4 75.1 NA [16,] 86.4 92.0 NA [17,] 88.0 80.8 NA [18,] 75.1 73.1 NA [19,] 109.7 99.8 NA [20,] 103.0 90.0 NA [21,] 82.1 83.1 NA [22,] 68.0 72.4 NA [23,] 96.4 78.8 NA [24,] 94.3 87.3 NA > darr [,1] [,2] [,3] [1,] -20.6 -2.0 -10.9 [2,] 5.7 -11.9 -6.5 [3,] 4.0 6.4 12.8 [4,] -11.9 -1.1 -11.9 [5,] -5.8 -14.9 -3.3 [6,] 23.5 30.7 21.2 [7,] 4.1 -3.1 -10.9 [8,] -14.8 -13.4 3.8 [9,] -21.5 -10.2 -15.4 [10,] 22.2 17.3 14.3 [11,] 0.8 1.7 6.5 [12,] 1.5 10.1 9.6 [13,] -5.3 -15.4 NA [14,] -6.7 -9.1 NA [15,] 2.0 16.9 NA [16,] 1.6 -11.2 NA [17,] -12.9 -7.7 NA [18,] 34.6 26.7 NA [19,] -6.7 -9.8 NA [20,] -20.9 -6.9 NA [21,] -14.1 -10.7 NA [22,] 28.4 6.4 NA [23,] -2.1 8.5 NA [24,] -4.3 3.7 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/freestat/rcomp/tmp/1uog21225378350.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/freestat/rcomp/tmp/20feg1225378350.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/freestat/rcomp/tmp/3hp001225378350.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/freestat/rcomp/tmp/4t2gr1225378350.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,] 90.0 80.10 73.60 82.50 74.50 66.50 92.40 81.50 80.70 69.9 84.20 89.5 [2,] 90.5 84.05 74.85 84.45 77.95 68.85 94.80 87.80 83.00 70.2 86.00 90.1 [3,] 91.0 88.00 76.10 86.40 81.40 71.20 97.20 94.10 85.30 70.5 87.80 90.7 [4,] 100.1 88.30 85.20 92.35 83.90 75.90 100.65 101.15 89.35 71.2 90.95 92.8 [5,] 109.2 88.60 94.30 98.30 86.40 80.60 104.10 108.20 93.40 71.9 94.10 94.9 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 96.40 84.20 75.10 86.4 80.8 73.1 99.80 90.0 82.1 68.0 78.8 87.3 [2,] 98.00 84.20 75.10 86.4 80.8 73.1 99.80 90.0 82.1 68.0 78.8 87.3 [3,] 99.60 87.65 79.75 89.2 84.4 74.1 104.75 96.5 82.6 70.2 87.6 90.8 [4,] 99.95 91.10 84.40 92.0 88.0 75.1 109.70 103.0 83.1 72.4 96.4 94.3 [5,] 100.30 91.10 84.40 92.0 88.0 75.1 109.70 103.0 83.1 72.4 96.4 94.3 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82.24275 84.1231 66.65859 79.19351 75.97233 64.7689 91.86355 81.92195 [2,] 99.75725 91.8769 85.54141 93.60649 86.82767 77.6311 102.53645 106.27805 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 79.50744 69.58779 83.28454 88.23702 97.82118 79.94112 69.35977 82.94352 [2,] 91.09256 71.41221 92.31546 93.16298 101.37882 95.35888 90.14023 95.45648 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 76.35595 71.86554 93.68944 81.97603 81.48277 65.2842 67.93677 82.9794 [2,] 92.44405 76.33446 115.81056 111.02397 83.71723 75.1158 107.26323 98.6206 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" Warning message: In bxp(list(stats = c(90, 90.5, 91, 100.1, 109.2, 80.1, 84.05, 88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/544wg1225378350.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,] -20.60 -11.9 4.0 -11.9 -14.90 21.20 -10.9 -14.8 -21.50 14.30 0.80 1.50 [2,] -15.75 -9.2 5.2 -11.9 -10.35 22.35 -7.0 -14.1 -18.45 15.80 1.25 5.55 [3,] -10.90 -6.5 6.4 -11.9 -5.80 23.50 -3.1 -13.4 -15.40 17.30 1.70 9.60 [4,] -6.45 -0.4 9.6 -6.5 -4.55 27.10 0.5 -4.8 -12.80 19.75 4.10 9.85 [5,] -2.00 5.7 12.8 -1.1 -3.30 30.70 4.1 3.8 -10.20 22.20 6.50 10.10 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -15.40 -9.1 2.00 -11.2 -12.9 26.70 -9.80 -20.9 -14.1 6.4 -2.1 -4.3 [2,] -15.40 -9.1 2.00 -11.2 -12.9 26.70 -9.80 -20.9 -14.1 6.4 -2.1 -4.3 [3,] -10.35 -7.9 9.45 -4.8 -10.3 30.65 -8.25 -13.9 -12.4 17.4 3.2 -0.3 [4,] -5.30 -6.7 16.90 1.6 -7.7 34.60 -6.70 -6.9 -10.7 28.4 8.5 3.7 [5,] -5.30 -6.7 16.90 1.6 -7.7 34.60 -6.70 -6.9 -10.7 28.4 8.5 3.7 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -19.383585 -14.527478 2.386261 -16.825952 -11.0908379 19.16699 -9.941601 [2,] -2.416415 1.527478 10.413739 -6.974048 -0.5091621 27.83301 3.741601 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -21.883585 -20.55401 13.69676 -0.8998083 5.677482 -21.63401 -10.581349 [2,] -4.916415 -10.24599 20.90324 4.2998083 13.522518 0.93401 -5.218651 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -7.196708 -19.100528 -16.109589 21.82389 -11.713409 -29.541202 -16.198578 [2,] 26.096708 9.500528 -4.490411 39.47611 -4.786591 1.741202 -8.601422 [,22] [,23] [,24] [1,] -7.179032 -8.642624 -9.23783 [2,] 41.979032 15.042624 8.63783 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" Warning message: In bxp(list(stats = c(-20.6, -15.75, -10.9, -6.45, -2, -11.9, -9.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6f1011225378350.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] [1,] 68.00 66.50 69.9 [2,] 85.40 77.45 74.5 [3,] 93.75 83.65 84.2 [4,] 97.35 90.00 90.7 [5,] 109.70 99.80 100.3 $n [1] 24 24 13 $conf [,1] [,2] [,3] [1,] 89.89593 79.60242 77.10095 [2,] 97.60407 87.69758 91.29905 $out numeric(0) $group numeric(0) $names [1] "1" "2" NA Warning message: In bxp(list(stats = c(68, 85.4, 93.75, 97.35, 109.7, 66.5, 77.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7jf7b1225378350.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,] 70.200 70.200 70.2000 [2,] 81.050 80.575 80.4750 [3,] 87.625 87.625 87.6250 [4,] 93.150 90.900 92.9625 [5,] 104.750 104.750 104.7500 $n [1] 24 24 24 $conf [,1] [,2] [,3] [1,] 83.72255 84.29502 83.59758 [2,] 91.52745 90.95498 91.65242 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(70.2, 81.05, 87.625, 93.15, 104.75, 70.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uog21225378350.ps tmp/1uog21225378350.png") > system("convert tmp/20feg1225378350.ps tmp/20feg1225378350.png") > system("convert tmp/3hp001225378350.ps tmp/3hp001225378350.png") > system("convert tmp/4t2gr1225378350.ps tmp/4t2gr1225378350.png") > system("convert tmp/544wg1225378350.ps tmp/544wg1225378350.png") > system("convert tmp/6f1011225378350.ps tmp/6f1011225378350.png") > system("convert tmp/7jf7b1225378350.ps tmp/7jf7b1225378350.png") > > > proc.time() user system elapsed 2.242 1.499 2.479