R version 2.7.0 (2008-04-22) 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 = '30' > #'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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 109.2 97.2 100.3 [2,] 88.6 94.1 NA [3,] 94.3 80.7 NA [4,] 98.3 70.5 NA [5,] 86.4 87.8 NA [6,] 80.6 89.5 NA [7,] 104.1 99.6 NA [8,] 108.2 84.2 NA [9,] 93.4 75.1 NA [10,] 71.9 92.0 NA [11,] 94.1 80.8 NA [12,] 94.9 73.1 NA [13,] 96.4 99.8 NA [14,] 91.1 90.0 NA [15,] 84.4 83.1 NA [16,] 86.4 72.4 NA [17,] 88.0 78.8 NA [18,] 75.1 87.3 NA [19,] 109.7 91.0 NA [20,] 103.0 80.1 NA [21,] 82.1 73.6 NA [22,] 68.0 86.4 NA [23,] 96.4 74.5 NA [24,] 94.3 71.2 NA [25,] 90.0 92.4 NA [26,] 88.0 81.5 NA [27,] 76.1 85.3 NA [28,] 82.5 69.9 NA [29,] 81.4 84.2 NA [30,] 66.5 90.7 NA > darr [,1] [,2] [,3] [1,] -20.6 -3.1 NA [2,] 5.7 -13.4 NA [3,] 4.0 -10.2 NA [4,] -11.9 17.3 NA [5,] -5.8 1.7 NA [6,] 23.5 10.1 NA [7,] 4.1 -15.4 NA [8,] -14.8 -9.1 NA [9,] -21.5 16.9 NA [10,] 22.2 -11.2 NA [11,] 0.8 -7.7 NA [12,] 1.5 26.7 NA [13,] -5.3 -9.8 NA [14,] -6.7 -6.9 NA [15,] 2.0 -10.7 NA [16,] 1.6 6.4 NA [17,] -12.9 8.5 NA [18,] 34.6 3.7 NA [19,] -6.7 -10.9 NA [20,] -20.9 -6.5 NA [21,] -14.1 12.8 NA [22,] 28.4 -11.9 NA [23,] -2.1 -3.3 NA [24,] -4.3 21.2 NA [25,] -2.0 -10.9 NA [26,] -11.9 3.8 NA [27,] 6.4 -15.4 NA [28,] -1.1 14.3 NA [29,] -14.9 6.5 NA [30,] 30.7 9.6 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/1mmhs1225400711.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/2cx0j1225400711.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/3584x1225400711.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/4qfql1225400711.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,] 97.20 88.60 80.7 70.5 86.4 80.60 99.60 84.2 75.10 71.90 80.80 73.1 [2,] 98.75 88.60 80.7 70.5 86.4 80.60 99.60 84.2 75.10 71.90 80.80 73.1 [3,] 100.30 91.35 87.5 84.4 87.1 85.05 101.85 96.2 84.25 81.95 87.45 84.0 [4,] 104.75 94.10 94.3 98.3 87.8 89.50 104.10 108.2 93.40 92.00 94.10 94.9 [5,] 109.20 94.10 94.3 98.3 87.8 89.50 104.10 108.2 93.40 92.00 94.10 94.9 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 96.4 90.00 83.10 72.4 78.8 75.1 91.00 80.10 73.60 68.0 74.50 71.20 [2,] 96.4 90.00 83.10 72.4 78.8 75.1 91.00 80.10 73.60 68.0 74.50 71.20 [3,] 98.1 90.55 83.75 79.4 83.4 81.2 100.35 91.55 77.85 77.2 85.45 82.75 [4,] 99.8 91.10 84.40 86.4 88.0 87.3 109.70 103.00 82.10 86.4 96.40 94.30 [5,] 99.8 91.10 84.40 86.4 88.0 87.3 109.70 103.00 82.10 86.4 96.40 94.30 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 90.0 81.50 76.1 69.9 81.4 66.5 [2,] 90.0 81.50 76.1 69.9 81.4 66.5 [3,] 91.2 84.75 80.7 76.2 82.8 78.6 [4,] 92.4 88.00 85.3 82.5 84.2 90.7 [5,] 92.4 88.00 85.3 82.5 84.2 90.7 $n [1] 3 2 2 2 2 2 2 2 2 2 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,] 94.82672 85.20524 72.30569 53.34104 85.53588 75.10666 96.82247 [2,] 105.77328 97.49476 102.69431 115.45896 88.66412 94.99334 106.87753 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 69.38651 63.80471 59.4937 72.59086 59.64441 94.30142 89.32105 [2,] 123.01349 104.69529 104.4063 102.30914 108.35559 101.89858 91.77895 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] 82.2976 63.7588 73.1215 67.56981 79.45782 65.96546 68.35356 56.64299 [2,] 85.2024 95.0412 93.6785 94.83019 121.24218 117.13454 87.34644 97.75701 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [1,] 60.98269 56.94202 88.51865 77.48801 70.4215 62.12292 79.67176 51.56307 [2,] 109.91731 108.55798 93.88135 92.01199 90.9785 90.27708 85.92824 105.63693 $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" "25" "26" "27" "28" "29" "30" Warning message: In bxp(list(stats = c(97.2, 98.75, 100.3, 104.75, 109.2, 88.6, 88.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5phe51225400711.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 -13.40 -10.2 -11.9 -5.80 10.1 -15.40 -14.80 -21.5 -11.2 -7.70 1.5 [2,] -20.60 -13.40 -10.2 -11.9 -5.80 10.1 -15.40 -14.80 -21.5 -11.2 -7.70 1.5 [3,] -11.85 -3.85 -3.1 2.7 -2.05 16.8 -5.65 -11.95 -2.3 5.5 -3.45 14.1 [4,] -3.10 5.70 4.0 17.3 1.70 23.5 4.10 -9.10 16.9 22.2 0.80 26.7 [5,] -3.10 5.70 4.0 17.3 1.70 23.5 4.10 -9.10 16.9 22.2 0.80 26.7 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -9.80 -6.9 -10.70 1.6 -12.9 3.70 -10.9 -20.9 -14.10 -11.90 -3.3 -4.30 [2,] -9.80 -6.9 -10.70 1.6 -12.9 3.70 -10.9 -20.9 -14.10 -11.90 -3.3 -4.30 [3,] -7.55 -6.8 -4.35 4.0 -2.2 19.15 -8.8 -13.7 -0.65 8.25 -2.7 8.45 [4,] -5.30 -6.7 2.00 6.4 8.5 34.60 -6.7 -6.5 12.80 28.40 -2.1 21.20 [5,] -5.30 -6.7 2.00 6.4 8.5 34.60 -6.7 -6.5 12.80 28.40 -2.1 21.20 [,25] [,26] [,27] [,28] [,29] [,30] [1,] -10.90 -11.90 -15.4 -1.1 -14.9 9.60 [2,] -10.90 -11.90 -15.4 -1.1 -14.9 9.60 [3,] -6.45 -4.05 -4.5 6.6 -4.2 20.15 [4,] -2.00 3.80 6.4 14.3 6.5 30.70 [5,] -2.00 3.80 6.4 14.3 6.5 30.70 $n [1] 2 2 2 2 2 2 2 2 2 2 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,] -31.401502 -25.18907 -18.96465 -29.92308 -10.429215 1.829135 -27.43596 [2,] 7.701502 17.48907 12.76465 35.32308 6.329215 31.770865 16.13596 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -18.318204 -45.20158 -31.81544 -12.946444 -14.05416 -12.577529 -7.023446 [2,] -5.581796 40.60158 42.81544 6.046444 42.25416 -2.522471 -6.576554 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -18.538805 -1.362698 -26.10869 -15.37237 -13.492361 -29.788093 -30.70345 [2,] 9.838805 9.362698 21.70869 53.67237 -4.107639 2.388093 29.40345 [,22] [,23] [,24] [,25] [,26] [,27] [,28] [1,] -36.77432 -4.040674 -20.03933 -16.393336 -21.59049 -28.85559 -10.60532 [2,] 53.27432 -1.359326 36.93933 3.493336 13.49049 19.85559 23.80532 [,29] [,30] [1,] -28.10869 -3.423526 [2,] 19.70869 43.723526 $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" "25" "26" "27" "28" "29" "30" Warning message: In bxp(list(stats = c(-20.6, -20.6, -11.85, -3.10000000000001, -3.10000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/618sl1225400711.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,] 66.5 69.9 100.3 [2,] 82.1 75.1 100.3 [3,] 89.3 84.2 100.3 [4,] 96.4 90.7 100.3 [5,] 109.7 99.8 100.3 $n [1] 30 30 1 $conf [,1] [,2] [,3] [1,] 85.17492 79.69991 100.3 [2,] 93.42508 88.70009 100.3 $out numeric(0) $group numeric(0) $names [1] "1" "2" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7iqs01225400711.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,] 76.2000 76.200 76.200 [2,] 81.9500 81.950 81.950 [3,] 84.5750 84.575 84.575 [4,] 91.2000 91.200 91.200 [5,] 102.2333 101.850 101.850 $n [1] 30 30 30 $conf [,1] [,2] [,3] [1,] 81.90668 81.90668 81.90668 [2,] 87.24332 87.24332 87.24332 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(76.2, 81.95, 84.575, 91.2, 102.233333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1mmhs1225400711.ps tmp/1mmhs1225400711.png") > system("convert tmp/2cx0j1225400711.ps tmp/2cx0j1225400711.png") > system("convert tmp/3584x1225400711.ps tmp/3584x1225400711.png") > system("convert tmp/4qfql1225400711.ps tmp/4qfql1225400711.png") > system("convert tmp/5phe51225400711.ps tmp/5phe51225400711.png") > system("convert tmp/618sl1225400711.ps tmp/618sl1225400711.png") > system("convert tmp/7iqs01225400711.ps tmp/7iqs01225400711.png") > > > proc.time() user system elapsed 2.722 1.636 2.959