R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(99.9,98.6,107.2,95.7,93.7,106.7,86.7,95.3,99.3,101.8,96,91.7,95.3,96.6,107.2,108,98.4,103.1,81.1,96.6,103.7,106.6,97.6,87.6,99.4,98.5,105.2,104.6,97.5,108.9,86.8,88.9,110.3,114.8,94.6,92,93.8,93.8,107.6,101,95.4,96.5,89.2,87.1,110.5,110.8,104.2,88.9,89.8,90,93.9,91.3,87.8,99.7,73.5,79.2,96.9,95.2,95.6,89.7) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.9 95.3 99.4 93.8 89.8 NA [2,] 98.6 96.6 98.5 93.8 90.0 NA [3,] 107.2 107.2 105.2 107.6 93.9 NA [4,] 95.7 108.0 104.6 101.0 91.3 NA [5,] 93.7 98.4 97.5 95.4 87.8 NA [6,] 106.7 103.1 108.9 96.5 99.7 NA [7,] 86.7 81.1 86.8 89.2 73.5 NA [8,] 95.3 96.6 88.9 87.1 79.2 NA [9,] 99.3 103.7 110.3 110.5 96.9 NA [10,] 101.8 106.6 114.8 110.8 95.2 NA [11,] 96.0 97.6 94.6 104.2 95.6 NA [12,] 91.7 87.6 92.0 88.9 89.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.3 1.3 -0.9 0.0 0.2 NA [2,] 8.6 10.6 6.7 13.8 3.9 NA [3,] -11.5 0.8 -0.6 -6.6 -2.6 NA [4,] -2.0 -9.6 -7.1 -5.6 -3.5 NA [5,] 13.0 4.7 11.4 1.1 11.9 NA [6,] -20.0 -22.0 -22.1 -7.3 -26.2 NA [7,] 8.6 15.5 2.1 -2.1 5.7 NA [8,] 4.0 7.1 21.4 23.4 17.7 NA [9,] 2.5 2.9 4.5 0.3 -1.7 NA [10,] -5.8 -9.0 -20.2 -6.6 0.4 NA [11,] -4.3 -10.0 -2.6 -15.3 -5.9 NA [12,] 3.6 11.8 1.8 0.9 NA 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/15pdu1258453956.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/2od4h1258453956.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/34aee1258453956.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/4hy9c1258453956.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,] 89.8 90.0 105.2 91.3 93.7 96.5 73.5 79.2 96.9 95.2 94.6 87.6 [2,] 93.8 93.8 105.2 95.7 93.7 99.7 81.1 87.1 99.3 101.8 95.6 88.9 [3,] 95.3 96.6 107.2 101.0 95.4 103.1 86.7 88.9 103.7 106.6 96.0 89.7 [4,] 99.4 98.5 107.2 104.6 97.5 106.7 86.8 95.3 110.3 110.8 97.6 91.7 [5,] 99.9 98.6 107.6 108.0 98.4 108.9 89.2 96.6 110.5 114.8 97.6 92.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 91.34305 93.279 105.7868 94.71128 92.71493 98.15382 82.6724 83.1059 [2,] 99.25695 99.921 108.6132 107.28872 98.08507 108.04618 90.7276 94.6941 [,9] [,10] [,11] [,12] [1,] 95.92743 100.2406 94.5868 87.72153 [2,] 111.47257 112.9594 97.4132 91.67847 $out [1] 93.9 87.8 104.2 $group [1] 3 5 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.8, 93.8, 95.3, 99.4, 99.9, 90, 93.8, 96.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tnpg1258453956.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,] -1.3 3.9 -11.5 -9.6 1.1 -22.1 -2.1 4.0 -1.7 -9.0 -15.3 0.90 [2,] -0.9 6.7 -6.6 -7.1 4.7 -22.1 2.1 7.1 0.3 -9.0 -10.0 1.35 [3,] 0.0 8.6 -2.6 -5.6 11.4 -22.0 5.7 17.7 2.5 -6.6 -5.9 2.70 [4,] 0.2 10.6 -0.6 -3.5 11.9 -20.0 8.6 21.4 2.9 -5.8 -4.3 7.70 [5,] 1.3 13.8 0.8 -2.0 13.0 -20.0 15.5 23.4 4.5 -5.8 -2.6 11.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.7772572 5.84427 -6.839585 -8.143751 6.312498 -23.48385 1.107116 [2,] 0.7772572 11.35573 1.639585 -3.056249 16.487502 -20.51615 10.292884 [,8] [,9] [,10] [,11] [,12] [1,] 7.595656 0.6628465 -8.861112 -9.927606 -2.3165 [2,] 27.804344 4.3371535 -4.338888 -1.872394 7.7165 $out [1] -7.3 -26.2 -20.2 0.4 $group [1] 6 6 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.30000000000001, -0.900000000000006, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r6521258453956.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] [1,] 86.70 87.60 86.80 87.10 79.20 NA [2,] 94.50 95.95 93.30 91.50 88.75 NA [3,] 97.30 98.00 98.95 95.95 90.65 NA [4,] 100.85 105.15 107.05 105.90 95.40 NA [5,] 107.20 108.00 114.80 110.80 99.70 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 94.40372 93.80382 92.67853 89.38206 87.61689 NA [2,] 100.19628 102.19618 105.22147 102.51794 93.68311 NA $out [1] 81.1 73.5 $group [1] 2 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(86.7, 94.5, 97.3, 100.85, 107.2, 87.6, 95.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ni3l1258453956.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,] 83.46 86.7 83.95 [2,] 92.27 92.5 93.40 [3,] 96.62 96.3 96.60 [4,] 103.56 103.4 104.00 [5,] 105.84 107.2 106.30 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 91.47056 91.32844 91.76527 [2,] 101.76944 101.27156 101.43473 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(83.46, 92.27, 96.62, 103.56, 105.84, 86.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15pdu1258453956.ps tmp/15pdu1258453956.png") > system("convert tmp/2od4h1258453956.ps tmp/2od4h1258453956.png") > system("convert tmp/34aee1258453956.ps tmp/34aee1258453956.png") > system("convert tmp/4hy9c1258453956.ps tmp/4hy9c1258453956.png") > system("convert tmp/5tnpg1258453956.ps tmp/5tnpg1258453956.png") > system("convert tmp/6r6521258453956.ps tmp/6r6521258453956.png") > system("convert tmp/7ni3l1258453956.ps tmp/7ni3l1258453956.png") > > > proc.time() user system elapsed 1.195 0.935 1.996