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(78.4,114.6,113.3,117,99.6,99.4,101.9,115.2,108.5,113.8,121,92.2,90.2,101.5,126.6,93.9,89.8,93.4,101.5,110.4,105.9,108.4,113.9,86.1,69.4,101.2,100.5,98,106.6,90.1,96.9,125.9,112,100,123.9,79.8,83.4,113.6,112.9,104,109.9,99,106.3,128.9,111.1,102.9,130,87,87.5,117.6,103.4,110.8,112.6,102.5,112.4,135.6,105.1,127.7,137,91,90.5,122.4,123.3,124.3,120,118.1,119,142.7,123.6,129.6,151.6,110.4,99.2,130.5,136.2,129.7,128,121.6,135.8,143.8,147.5,136.2,156.6,123.3,100.4) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 78.4 90.2 69.4 83.4 87.5 90.5 99.2 100.4 [2,] 114.6 101.5 101.2 113.6 117.6 122.4 130.5 NA [3,] 113.3 126.6 100.5 112.9 103.4 123.3 136.2 NA [4,] 117.0 93.9 98.0 104.0 110.8 124.3 129.7 NA [5,] 99.6 89.8 106.6 109.9 112.6 120.0 128.0 NA [6,] 99.4 93.4 90.1 99.0 102.5 118.1 121.6 NA [7,] 101.9 101.5 96.9 106.3 112.4 119.0 135.8 NA [8,] 115.2 110.4 125.9 128.9 135.6 142.7 143.8 NA [9,] 108.5 105.9 112.0 111.1 105.1 123.6 147.5 NA [10,] 113.8 108.4 100.0 102.9 127.7 129.6 136.2 NA [11,] 121.0 113.9 123.9 130.0 137.0 151.6 156.6 NA [12,] 92.2 86.1 79.8 87.0 91.0 110.4 123.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.2 11.3 31.8 30.2 30.1 31.9 31.3 NA [2,] -1.3 25.1 -0.7 -0.7 -14.2 0.9 5.7 NA [3,] 3.7 -32.7 -2.5 -8.9 7.4 1.0 -6.5 NA [4,] -17.4 -4.1 8.6 5.9 1.8 -4.3 -1.7 NA [5,] -0.2 3.6 -16.5 -10.9 -10.1 -1.9 -6.4 NA [6,] 2.5 8.1 6.8 7.3 9.9 0.9 14.2 NA [7,] 13.3 8.9 29.0 22.6 23.2 23.7 8.0 NA [8,] -6.7 -4.5 -13.9 -17.8 -30.5 -19.1 3.7 NA [9,] 5.3 2.5 -12.0 -8.2 22.6 6.0 -11.3 NA [10,] 7.2 5.5 23.9 27.1 9.3 22.0 20.4 NA [11,] -28.8 -27.8 -44.1 -43.0 -46.0 -41.2 -33.3 NA [12,] -2.0 -16.7 3.6 0.5 -0.5 -11.2 -22.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/1ncwq1225966335.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/2i5851225966335.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/3g4751225966335.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/4hzmq1225966335.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] [1,] 69.40 101.20 100.50 93.90 89.8 90.1 96.9 110.40 105.1 100.00 113.90 [2,] 80.90 107.55 108.15 101.00 103.1 96.2 101.7 120.55 107.2 105.65 122.45 [3,] 88.85 114.60 113.30 110.80 109.9 99.4 106.3 128.90 111.1 113.80 130.00 [4,] 94.85 120.00 124.95 120.65 116.3 110.3 115.7 139.15 117.8 128.65 144.30 [5,] 100.40 130.50 136.20 129.70 128.0 121.6 135.8 143.80 123.6 136.20 156.60 [,12] [1,] 79.80 [2,] 86.55 [3,] 91.00 [4,] 101.30 [5,] 123.30 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 81.05733 107.1651 103.2673 99.06534 102.0172 90.9797 97.93943 117.7924 [2,] 96.64267 122.0349 123.3327 122.53466 117.7828 107.8203 114.66057 140.0076 [,9] [,10] [,11] [,12] [1,] 104.7699 100.0648 116.9515 82.19154 [2,] 117.4301 127.5352 143.0485 99.80846 $out [1] 147.5 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(69.4, 80.9, 88.85, 94.85, 100.4, 101.2, 107.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5h46v1225966335.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] [1,] 30.10 -1.3 -8.90 -4.30 -16.50 0.90 8.00 -30.50 -12.00 5.50 -46.00 [2,] 30.15 -1.0 -7.70 -4.20 -10.50 4.65 11.10 -18.45 -9.75 8.25 -43.55 [3,] 31.30 -0.7 -2.50 -1.70 -6.40 7.30 22.60 -13.90 2.50 20.40 -41.20 [4,] 31.85 3.3 2.35 3.85 -1.05 9.00 23.45 -5.60 5.65 22.95 -31.05 [5,] 31.90 5.7 7.40 8.60 3.60 14.20 29.00 3.70 22.60 27.10 -27.80 [,12] [1,] -22.90 [2,] -13.95 [3,] -2.00 [4,] 0.00 [5,] 3.60 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 30.28479 -3.267891 -8.501698 -6.50733 -12.0433875 4.70225 15.22478 [2,] 32.31521 1.867891 3.501698 3.10733 -0.7566125 9.89775 29.97522 [,8] [,9] [,10] [,11] [,12] [1,] -21.573813 -6.696632 11.62140 -48.6648 -10.330715 [2,] -6.226187 11.696632 29.17860 -33.7352 6.330715 $out [1] 36.2 11.3 25.1 -14.2 -32.7 -17.4 $group [1] 1 1 2 2 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(30.1, 30.15, 31.3, 31.85, 31.9, -1.30000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6cmpe1225966335.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] [1,] 78.4 86.1 79.80 83.40 87.50 110.40 121.60 100.4 [2,] 99.5 91.8 93.50 100.95 102.95 118.55 125.65 100.4 [3,] 110.9 101.5 100.25 108.10 111.60 122.85 133.15 100.4 [4,] 114.9 109.4 109.30 113.25 122.65 126.95 140.00 100.4 [5,] 121.0 126.6 125.90 130.00 137.00 129.60 156.60 100.4 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.8760 93.47252 93.04351 102.4899 102.6147 119.0187 126.6049 100.4 [2,] 117.9240 109.52748 107.45649 113.7101 120.5853 126.6813 139.6951 100.4 $out [1] 69.4 90.5 142.7 151.6 99.2 $group [1] 3 6 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(78.4, 99.5, 110.9, 114.9, 121, 86.1, 91.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7r7v61225966335.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,] 95.68571 88.85 93.9250 [2,] 106.47143 102.85 105.9750 [3,] 112.79286 110.95 111.6625 [4,] 116.77143 114.20 116.8500 [5,] 128.92857 130.00 129.8500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 108.0950 105.7732 106.7023 [2,] 117.4908 116.1268 116.6227 $out [1] 87.3750 133.4286 87.4125 133.3750 $group [1] 1 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(95.6857142857143, 106.471428571429, 112.792857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ncwq1225966335.ps tmp/1ncwq1225966335.png") > system("convert tmp/2i5851225966335.ps tmp/2i5851225966335.png") > system("convert tmp/3g4751225966335.ps tmp/3g4751225966335.png") > system("convert tmp/4hzmq1225966335.ps tmp/4hzmq1225966335.png") > system("convert tmp/5h46v1225966335.ps tmp/5h46v1225966335.png") > system("convert tmp/6cmpe1225966335.ps tmp/6cmpe1225966335.png") > system("convert tmp/7r7v61225966335.ps tmp/7r7v61225966335.png") > > > proc.time() user system elapsed 2.159 1.495 3.183