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(98.6,98,106.8,96.7,100.2,107.7,92,98.4,107.4,117.7,105.7,97.5,99.9,98.2,104.5,100.8,101.5,103.9,99.6,98.4,112.7,118.4,108.1,105.4,114.6,106.9,115.9,109.8,101.8,114.2,110.8,108.4,127.5,128.6,116.6,127.4,105,108.3,125,111.6,106.5,130.3,115,116.1,134,126.5,125.8,136.4,114.9,110.9,125.5,116.8,116.8,125.5,104.2,115.1,132.8,123.3,124.8,122,117.4,117.9,137.4,114.6,124.7,129.6,109.4,120.9,134.9,136.3,133.2,127.2,122.7,120.5,137.8,119.1,124.3,134.4,121.1,122.2,127.7,137.4,132.2,129.2,124.9,124.8,128.2,134.4,118.6,132.6,123.2,112.8,138.3) > 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] 93 > (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 8 8 8 8 8 8 8 8 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.6 99.9 114.6 105.0 114.9 117.4 122.7 124.9 [2,] 98.0 98.2 106.9 108.3 110.9 117.9 120.5 124.8 [3,] 106.8 104.5 115.9 125.0 125.5 137.4 137.8 128.2 [4,] 96.7 100.8 109.8 111.6 116.8 114.6 119.1 134.4 [5,] 100.2 101.5 101.8 106.5 116.8 124.7 124.3 118.6 [6,] 107.7 103.9 114.2 130.3 125.5 129.6 134.4 132.6 [7,] 92.0 99.6 110.8 115.0 104.2 109.4 121.1 123.2 [8,] 98.4 98.4 108.4 116.1 115.1 120.9 122.2 112.8 [9,] 107.4 112.7 127.5 134.0 132.8 134.9 127.7 138.3 [10,] 117.7 118.4 128.6 126.5 123.3 136.3 137.4 NA [11,] 105.7 108.1 116.6 125.8 124.8 133.2 132.2 NA [12,] 97.5 105.4 127.4 136.4 122.0 127.2 129.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.6 -1.7 -7.7 3.3 -4.0 0.5 -2.2 -0.1 [2,] 8.8 6.3 9.0 16.7 14.6 19.5 17.3 3.4 [3,] -10.1 -3.7 -6.1 -13.4 -8.7 -22.8 -18.7 6.2 [4,] 3.5 0.7 -8.0 -5.1 0.0 10.1 5.2 -15.8 [5,] 7.5 2.4 12.4 23.8 8.7 4.9 10.1 14.0 [6,] -15.7 -4.3 -3.4 -15.3 -21.3 -20.2 -13.3 -9.4 [7,] 6.4 -1.2 -2.4 1.1 10.9 11.5 1.1 -10.4 [8,] 9.0 14.3 19.1 17.9 17.7 14.0 5.5 25.5 [9,] 10.3 5.7 1.1 -7.5 -9.5 1.4 9.7 NA [10,] -12.0 -10.3 -12.0 -0.7 1.5 -3.1 -5.2 NA [11,] -8.2 -2.7 10.8 10.6 -2.8 -6.0 -3.0 NA [12,] 2.4 9.2 -22.4 -21.5 -4.6 -4.5 -4.3 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/1zxco1229686546.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/2leu21229686546.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/3m6z41229686546.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/45eu21229686546.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] [1,] 98.60 98.00 104.50 96.70 100.20 103.90 92.00 98.40 107.40 117.70 [2,] 102.45 102.55 111.35 105.30 101.65 110.95 101.90 103.40 120.10 120.85 [3,] 114.75 109.60 125.25 113.10 111.65 127.55 110.10 113.95 130.25 126.50 [4,] 120.05 119.20 132.80 117.95 121.45 131.45 118.05 118.50 134.45 132.45 [5,] 124.90 124.80 137.80 134.40 124.70 134.40 123.20 122.20 138.30 137.40 [,11] [,12] [1,] 105.70 97.5 [2,] 112.35 113.7 [3,] 124.80 127.2 [4,] 129.00 128.3 [5,] 133.20 136.4 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.9184 100.2991 113.2677 106.0335 100.5894 116.0984 101.0784 105.5149 [2,] 124.5816 118.9009 137.2323 120.1665 122.7106 139.0016 119.1216 122.3851 [,9] [,10] [,11] [,12] [1,] 122.2339 119.5727 114.8569 118.4811 [2,] 138.2661 133.4273 134.7431 135.9189 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(98.6, 102.45, 114.75, 120.05, 124.9, 98, 102.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5d6jf1229686546.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,] -7.70 3.40 -22.80 -15.80 2.4 -21.30 -10.40 5.5 -9.5 -12.00 -8.20 -22.40 [2,] -3.10 7.55 -16.05 -6.55 6.2 -17.95 -1.80 11.5 -3.2 -11.15 -4.50 -13.05 [3,] -1.15 11.80 -9.40 0.35 9.4 -14.30 1.10 16.0 1.4 -5.20 -2.80 -4.50 [4,] 0.20 17.00 -4.90 4.35 13.2 -6.85 8.65 18.5 7.7 -1.90 3.95 -0.95 [5,] 3.30 19.50 6.20 10.10 14.0 -3.40 11.50 25.5 10.3 1.50 10.80 9.20 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.9934274 6.521094 -15.62855 -5.738896 5.4897 -20.50062 -4.73752 [2,] 0.6934274 17.078906 -3.17145 6.438896 13.3103 -8.09938 6.93752 [,8] [,9] [,10] [,11] [,12] [1,] 12.0897 -5.109304 -10.7239508 -7.846204 -11.725925 [2,] 19.9103 7.909304 0.3239508 2.246204 2.725925 $out [1] 23.8 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7.69999999999999, -3.1, -1.15000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nn1e1229686546.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,] 92.00 98.20 101.8 105.00 104.20 109.40 119.10 112.8 [2,] 97.75 99.75 109.1 109.95 115.00 117.65 121.65 123.2 [3,] 99.40 102.70 114.4 120.55 119.40 125.95 126.00 124.9 [4,] 107.10 106.75 122.0 128.40 125.15 134.05 133.30 132.6 [5,] 117.70 112.70 128.6 136.40 132.80 137.40 137.80 138.3 $n [1] 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 95.1354 99.50725 108.5162 112.1348 114.7705 118.4698 120.6864 119.9493 [2,] 103.6646 105.89275 120.2838 128.9652 124.0295 133.4302 131.3136 129.8507 $out [1] 118.4 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(92, 97.75, 99.4, 107.1, 117.7, 98.2, 99.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/73jgm1229686546.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,] 109.4125 109.600 109.7875 [2,] 111.6687 112.375 111.4125 [3,] 116.8518 119.775 116.5687 [4,] 122.4563 126.850 121.8937 [5,] 126.9125 130.250 129.0125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 111.9315 113.1729 111.7882 [2,] 121.7720 126.3771 121.3493 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1zxco1229686546.ps tmp/1zxco1229686546.png") > system("convert tmp/2leu21229686546.ps tmp/2leu21229686546.png") > system("convert tmp/3m6z41229686546.ps tmp/3m6z41229686546.png") > system("convert tmp/45eu21229686546.ps tmp/45eu21229686546.png") > system("convert tmp/5d6jf1229686546.ps tmp/5d6jf1229686546.png") > system("convert tmp/6nn1e1229686546.ps tmp/6nn1e1229686546.png") > system("convert tmp/73jgm1229686546.ps tmp/73jgm1229686546.png") > > > proc.time() user system elapsed 2.588 1.584 2.821