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(85.9,76.8,96.2,83.9,88.7,105.4,86.7,76.3,93.2,105.1,121,163,94.7,78.4,101.4,91.2,89.9,112.2,81.5,78.8,99.1,101.3,91.5,152.6,86.6,86.6,98.5,86.7,89.1,111,92.6,85.1,116.1,98.3,97.7,177.9,94.2,83.8,109.5,102.3,102.5,162.7,85.3,88.2,104.7,99.4,113.8,166.6,89.2,93.2,115,97.2,112.5,121.8,100.2,93.8,113.6,110.7,127.6,185.9) > 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,] 85.9 94.7 86.6 94.2 89.2 NA [2,] 76.8 78.4 86.6 83.8 93.2 NA [3,] 96.2 101.4 98.5 109.5 115.0 NA [4,] 83.9 91.2 86.7 102.3 97.2 NA [5,] 88.7 89.9 89.1 102.5 112.5 NA [6,] 105.4 112.2 111.0 162.7 121.8 NA [7,] 86.7 81.5 92.6 85.3 100.2 NA [8,] 76.3 78.8 85.1 88.2 93.8 NA [9,] 93.2 99.1 116.1 104.7 113.6 NA [10,] 105.1 101.3 98.3 99.4 110.7 NA [11,] 121.0 91.5 97.7 113.8 127.6 NA [12,] 163.0 152.6 177.9 166.6 185.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -9.1 -16.3 0.0 -10.4 4.0 NA [2,] 19.4 23.0 11.9 25.7 21.8 NA [3,] -12.3 -10.2 -11.8 -7.2 -17.8 NA [4,] 4.8 -1.3 2.4 0.2 15.3 NA [5,] 16.7 22.3 21.9 60.2 9.3 NA [6,] -18.7 -30.7 -18.4 -77.4 -21.6 NA [7,] -10.4 -2.7 -7.5 2.9 -6.4 NA [8,] 16.9 20.3 31.0 16.5 19.8 NA [9,] 11.9 2.2 -17.8 -5.3 -2.9 NA [10,] 15.9 -9.8 -0.6 14.4 16.9 NA [11,] 42.0 61.1 80.2 52.8 58.3 NA [12,] -68.3 -66.0 -83.7 -77.4 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/16ngz1258124359.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/2dbba1258124359.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/34yy11258124359.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/4jtc91258124359.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,] 85.9 76.8 96.2 83.9 88.7 105.4 81.5 76.3 93.2 98.3 91.5 152.6 [2,] 86.6 78.4 98.5 86.7 89.1 111.0 85.3 78.8 99.1 99.4 97.7 163.0 [3,] 89.2 83.8 101.4 91.2 89.9 112.2 86.7 85.1 104.7 101.3 113.8 166.6 [4,] 94.2 86.6 109.5 97.2 102.5 121.8 92.6 88.2 113.6 105.1 121.0 177.9 [5,] 94.7 93.2 115.0 102.3 112.5 121.8 100.2 93.8 116.1 110.7 127.6 185.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 83.82986 78.0059 93.62743 83.78073 80.4316 104.5687 81.54184 78.45798 [2,] 94.57014 89.5941 109.17257 98.61927 99.3684 119.8313 91.85816 91.74202 [,9] [,10] [,11] [,12] [1,] 94.45434 97.2724 97.33628 156.0717 [2,] 114.94566 105.3276 130.26372 177.1283 $out [1] 162.7 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(85.9, 86.6, 89.2, 94.2, 94.7, 76.8, 78.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lf121258124359.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,] -16.3 19.4 -12.3 -1.3 9.3 -30.7 -10.4 16.5 -5.3 -9.8 42.0 -83.70 [2,] -10.4 19.4 -12.3 0.2 16.7 -30.7 -7.5 16.9 -5.3 -0.6 52.8 -80.55 [3,] -9.1 21.8 -11.8 2.4 21.9 -21.6 -6.4 19.8 -2.9 14.4 58.3 -72.85 [4,] 0.0 23.0 -10.2 4.8 22.3 -18.7 -2.7 20.3 2.2 15.9 61.1 -67.15 [5,] 4.0 25.7 -7.2 4.8 22.3 -18.4 2.9 20.3 11.9 16.9 61.1 -66.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -16.448614 19.25625 -13.28385 -0.8503484 17.94305 -30.07917 -9.791668 [2,] -1.751386 24.34375 -10.31615 5.6503484 25.85695 -13.12083 -3.008332 [,8] [,9] [,10] [,11] [,12] [1,] 17.39757 -8.199481 2.741142 52.43524 -83.436 [2,] 22.20243 2.399481 26.058858 64.16476 -62.264 $out [1] 11.9 -17.8 15.3 60.2 -77.4 31.0 -17.8 80.2 $group [1] 2 3 4 5 6 8 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-16.3, -10.4, -9.1, 0, 4, 19.4, 19.4, 21.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6a65x1258124359.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,] 76.30 78.40 85.10 83.80 89.2 NA [2,] 84.90 85.70 86.65 91.20 95.5 NA [3,] 90.95 93.10 95.15 102.40 111.6 NA [4,] 105.25 101.35 104.75 111.65 118.4 NA [5,] 121.00 112.20 116.10 113.80 127.6 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 81.66823 85.96193 86.89447 93.07262 101.1552 NA [2,] 100.23177 100.23807 103.40553 111.72738 122.0448 NA $out [1] 163.0 152.6 177.9 162.7 166.6 185.9 $group [1] 1 2 3 4 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(76.3, 84.9, 90.95, 105.25, 121, 78.4, 85.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qc0p1258124359.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.76 83.80 82.500 [2,] 89.69 87.95 89.675 [3,] 99.75 96.25 99.025 [4,] 107.83 108.45 107.850 [5,] 122.62 113.80 116.400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 91.47622 86.89981 90.73526 [2,] 108.02378 105.60019 107.31474 $out [1] 169.20 166.60 170.45 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(83.76, 89.69, 99.75, 107.83, 122.62, 83.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16ngz1258124359.ps tmp/16ngz1258124359.png") > system("convert tmp/2dbba1258124359.ps tmp/2dbba1258124359.png") > system("convert tmp/34yy11258124359.ps tmp/34yy11258124359.png") > system("convert tmp/4jtc91258124359.ps tmp/4jtc91258124359.png") > system("convert tmp/5lf121258124359.ps tmp/5lf121258124359.png") > system("convert tmp/6a65x1258124359.ps tmp/6a65x1258124359.png") > system("convert tmp/7qc0p1258124359.ps tmp/7qc0p1258124359.png") > > > proc.time() user system elapsed 1.213 0.954 1.825