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 > x <- x[x>quantile(x,0.05) & x (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,] 88.6 97.2 81.5 [2,] 94.3 94.1 85.3 [3,] 98.3 80.7 84.2 [4,] 86.4 87.8 90.7 [5,] 80.6 89.5 100.3 [6,] 93.4 99.6 NA [7,] 71.9 84.2 NA [8,] 94.1 75.1 NA [9,] 94.9 92.0 NA [10,] 96.4 80.8 NA [11,] 91.1 73.1 NA [12,] 84.4 99.8 NA [13,] 86.4 90.0 NA [14,] 88.0 83.1 NA [15,] 75.1 72.4 NA [16,] 103.0 78.8 NA [17,] 82.1 87.3 NA [18,] 96.4 91.0 NA [19,] 94.3 80.1 NA [20,] 90.0 73.6 NA [21,] 88.0 86.4 NA [22,] 76.1 74.5 NA [23,] 82.5 71.2 NA [24,] 81.4 92.4 NA > darr [,1] [,2] [,3] [1,] 5.7 -3.1 3.8 [2,] 4.0 -13.4 -1.1 [3,] -11.9 7.1 6.5 [4,] -5.8 1.7 9.6 [5,] 12.8 10.1 NA [6,] -21.5 -15.4 NA [7,] 22.2 -9.1 NA [8,] 0.8 16.9 NA [9,] 1.5 -11.2 NA [10,] -5.3 -7.7 NA [11,] -6.7 26.7 NA [12,] 2.0 -9.8 NA [13,] 1.6 -6.9 NA [14,] -12.9 -10.7 NA [15,] 27.9 6.4 NA [16,] -20.9 8.5 NA [17,] 14.3 3.7 NA [18,] -2.1 -10.9 NA [19,] -4.3 -6.5 NA [20,] -2.0 12.8 NA [21,] -11.9 -11.9 NA [22,] 6.4 -3.3 NA [23,] -1.1 21.2 NA [24,] 15.8 -10.9 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/1tuih1225319144.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/2oj0m1225319144.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/3z0xp1225319144.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/47r9s1225319144.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,] 81.50 85.3 80.70 86.40 80.60 93.4 71.90 75.1 92.00 80.8 73.1 84.4 [2,] 85.05 89.7 82.45 87.10 85.05 93.4 71.90 75.1 92.00 80.8 73.1 84.4 [3,] 88.60 94.1 84.20 87.80 89.50 96.5 78.05 84.6 93.45 88.6 82.1 92.1 [4,] 92.90 94.2 91.25 89.25 94.90 99.6 84.20 94.1 94.90 96.4 91.1 99.8 [5,] 97.20 94.3 98.30 90.70 100.30 99.6 84.20 94.1 94.90 96.4 91.1 99.8 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 86.4 83.10 72.40 78.8 82.1 91.0 80.1 73.6 86.4 74.5 71.20 81.4 [2,] 86.4 83.10 72.40 78.8 82.1 91.0 80.1 73.6 86.4 74.5 71.20 81.4 [3,] 88.2 85.55 73.75 90.9 84.7 93.7 87.2 81.8 87.2 75.3 76.85 86.9 [4,] 90.0 88.00 75.10 103.0 87.3 96.4 94.3 90.0 88.0 76.1 82.50 92.4 [5,] 90.0 88.00 75.10 103.0 87.3 96.4 94.3 90.0 88.0 76.1 82.50 92.4 $n [1] 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 81.43912 89.99504 76.17252 85.83874 80.5147 89.57318 64.30809 63.37265 [2,] 95.76088 98.20496 92.22748 89.76126 98.4853 103.42682 91.79191 105.82735 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [1,] 90.21004 71.17123 61.98988 74.89468 84.17798 80.07558 70.73348 [2,] 96.68996 106.02877 102.21012 109.30532 92.22202 91.02442 76.76652 [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [1,] 63.86307 78.89041 87.66696 71.33535 63.47745 85.41243 73.51243 64.22532 [2,] 117.93693 90.50959 99.73304 103.06465 100.12255 88.98757 77.08757 89.47468 [,24] [1,] 74.61048 [2,] 99.18952 $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(81.5, 85.05, 88.6, 92.9, 97.2, 85.3, 89.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5xuh81225319144.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.10 -13.40 -11.9 -5.80 10.10 -21.50 -9.10 0.80 -11.20 -7.7 -6.7 -9.8 [2,] 0.35 -7.25 -2.7 -2.05 10.10 -21.50 -9.10 0.80 -11.20 -7.7 -6.7 -9.8 [3,] 3.80 -1.10 6.5 1.70 11.45 -18.45 6.55 8.85 -4.85 -6.5 10.0 -3.9 [4,] 4.75 1.45 6.8 5.65 12.80 -15.40 22.20 16.90 1.50 -5.3 26.7 2.0 [5,] 5.70 4.00 7.1 9.60 12.80 -15.40 22.20 16.90 1.50 -5.3 26.7 2.0 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -6.90 -12.9 6.40 -20.9 3.7 -10.9 -6.5 -2.0 -11.9 -3.30 -1.10 -10.90 [2,] -6.90 -12.9 6.40 -20.9 3.7 -10.9 -6.5 -2.0 -11.9 -3.30 -1.10 -10.90 [3,] -2.65 -11.8 17.15 -6.2 9.0 -6.5 -5.4 5.4 -11.9 1.55 10.05 2.45 [4,] 1.60 -10.7 27.90 8.5 14.3 -2.1 -4.3 12.8 -11.9 6.40 21.20 15.80 [5,] 1.60 -10.7 27.90 8.5 14.3 -2.1 -4.3 12.8 -11.9 6.40 21.20 15.80 $n [1] 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.2137391 -9.036257 -2.166028 -5.324043 8.433482 -25.26510 -28.41926 [2,] 7.8137391 6.836257 15.166028 8.724043 14.466518 -11.63490 41.51926 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -9.137382 -19.038805 -9.181349 -27.31544 -17.083299 -12.146444 -14.257903 [2,] 26.837382 9.338805 -3.818651 47.31544 9.283299 6.846444 -9.342097 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -6.870417 -39.04652 -2.842624 -16.331613 -7.857903 -11.13498 -11.9 [2,] 41.170417 26.64652 20.842624 3.331613 -2.942097 21.93498 -11.9 [,22] [,23] [,24] [1,] -9.287119 -14.8642 -27.38001 [2,] 12.387119 34.9642 32.28001 $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(-3.10000000000001, 0.349999999999994, 3.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/61fzm1225319144.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,] 71.9 71.20 81.5 [2,] 82.3 76.95 84.2 [3,] 88.3 85.30 85.3 [4,] 94.3 91.50 90.7 [5,] 103.0 99.80 100.3 $n [1] 24 24 5 $conf [,1] [,2] [,3] [1,] 84.4298 80.60739 80.70712 [2,] 92.1702 89.99261 89.89288 $out numeric(0) $group numeric(0) $names [1] "1" "2" NA Warning message: In bxp(list(stats = c(71.9, 82.3, 88.3, 94.3, 103, 71.2, 76.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7ujvx1225319144.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,] 73.75000 73.75 73.7500 [2,] 83.35000 83.15 83.3500 [3,] 87.46667 87.20 87.2000 [4,] 90.51667 90.20 90.4375 [5,] 96.50000 96.50 96.5000 $n [1] 24 24 24 $conf [,1] [,2] [,3] [1,] 85.15530 84.92626 84.91417 [2,] 89.77803 89.47374 89.48583 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1tuih1225319144.ps tmp/1tuih1225319144.png") > system("convert tmp/2oj0m1225319144.ps tmp/2oj0m1225319144.png") > system("convert tmp/3z0xp1225319144.ps tmp/3z0xp1225319144.png") > system("convert tmp/47r9s1225319144.ps tmp/47r9s1225319144.png") > system("convert tmp/5xuh81225319144.ps tmp/5xuh81225319144.png") > system("convert tmp/61fzm1225319144.ps tmp/61fzm1225319144.png") > system("convert tmp/7ujvx1225319144.ps tmp/7ujvx1225319144.png") > > > proc.time() user system elapsed 2.207 1.491 2.417