R version 2.8.0 (2008-10-20) 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(81.6,84.1,88.1,85.3,82.9,84.8,71.2,68.9,94.3,97.6,85.6,91.9,75.8,79.8,99,88.5,86.7,97.9,94.3,72.9,91.8,93.2,86.5,98.9,77.2,79.4,90.4,81.4,85.8,103.6,73.6,75.7,99.2,88.7,94.6,98.7,84.2,87.7,103.3,88.2,93.4,106.3,73.1,78.6,101.6,101.4,98.5,99,89.5,83.5,97.4,87.8,90.4,101.6,80,81.7,96.4,110.2,101.1,89.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] 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,] 81.6 75.8 77.2 84.2 89.5 NA [2,] 84.1 79.8 79.4 87.7 83.5 NA [3,] 88.1 99.0 90.4 103.3 97.4 NA [4,] 85.3 88.5 81.4 88.2 87.8 NA [5,] 82.9 86.7 85.8 93.4 90.4 NA [6,] 84.8 97.9 103.6 106.3 101.6 NA [7,] 71.2 94.3 73.6 73.1 80.0 NA [8,] 68.9 72.9 75.7 78.6 81.7 NA [9,] 94.3 91.8 99.2 101.6 96.4 NA [10,] 97.6 93.2 88.7 101.4 110.2 NA [11,] 85.6 86.5 94.6 98.5 101.1 NA [12,] 91.9 98.9 98.7 99.0 89.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.5 4.0 2.2 3.5 -6.0 NA [2,] 4.0 19.2 11.0 15.6 13.9 NA [3,] -2.8 -10.5 -9.0 -15.1 -9.6 NA [4,] -2.4 -1.8 4.4 5.2 2.6 NA [5,] 1.9 11.2 17.8 12.9 11.2 NA [6,] -13.6 -3.6 -30.0 -33.2 -21.6 NA [7,] -2.3 -21.4 2.1 5.5 1.7 NA [8,] 25.4 18.9 23.5 23.0 14.7 NA [9,] 3.3 1.4 -10.5 -0.2 13.8 NA [10,] -12.0 -6.7 5.9 -2.9 -9.1 NA [11,] 6.3 12.4 4.1 0.5 -11.8 NA [12,] -16.1 -21.7 -14.5 -9.5 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/1bgwt1228246565.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/2pwy01228246565.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/3d4dx1228246565.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/4d2481228246565.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,] 75.8 79.4 88.1 81.4 82.9 97.9 71.2 68.9 91.8 88.7 85.6 89.3 [2,] 77.2 79.8 90.4 85.3 85.8 97.9 73.1 72.9 94.3 93.2 86.5 91.9 [3,] 81.6 83.5 97.4 87.8 86.7 101.6 73.6 75.7 96.4 97.6 94.6 98.7 [4,] 84.2 84.1 99.0 88.2 90.4 103.6 80.0 78.6 99.2 101.4 98.5 98.9 [5,] 89.5 87.7 103.3 88.5 93.4 106.3 80.0 81.7 101.6 110.2 101.1 99.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,] 76.65382 80.46163 91.32326 85.75087 83.44965 97.5724 68.72448 71.6724 [2,] 86.54618 86.53837 103.47674 89.84913 89.95035 105.6276 78.47552 79.7276 [,9] [,10] [,11] [,12] [1,] 92.93767 91.8059 86.12083 93.75382 [2,] 99.86233 103.3941 103.07917 103.64618 $out [1] 84.8 94.3 $group [1] 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(75.8, 77.2, 81.6, 84.2, 89.5, 79.4, 79.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5epc51228246565.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,] 2.2 11.0 -10.5 -2.4 11.2 -33.2 -2.3 14.7 -0.2 -12.0 0.5 -21.7 [2,] 2.2 11.0 -10.5 -1.8 11.2 -30.0 -2.3 18.9 -0.2 -9.1 0.5 -18.9 [3,] 2.5 13.9 -9.6 2.6 11.2 -21.6 1.7 23.0 1.4 -6.7 4.1 -15.3 [4,] 3.5 15.6 -9.0 4.4 12.9 -13.6 2.1 23.5 3.3 -2.9 6.3 -12.0 [5,] 4.0 19.2 -9.0 5.2 12.9 -3.6 5.5 25.4 3.3 5.9 12.4 -9.5 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.581423 10.64965 -10.659896 -1.780904 9.998784 -33.18820 -1.409029 [2,] 3.418577 17.15035 -8.540104 6.980904 12.401216 -10.01180 4.809029 [,8] [,9] [,10] [,11] [,12] [1,] 19.74965 -1.073091 -11.080904 0.001734611 -20.751 [2,] 26.25035 3.873091 -2.319096 8.198265389 -9.849 $out [1] -6.0 4.0 -2.8 -15.1 1.9 17.8 -21.4 -10.5 13.8 -11.8 $group [1] 1 2 3 3 5 5 7 9 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.20000000000000, 2.20000000000000, 2.5, 3.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6he341228246565.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,] 71.20 72.90 73.60 73.10 80.00 NA [2,] 82.25 83.15 78.30 85.95 85.65 NA [3,] 85.05 90.15 87.25 95.95 89.95 NA [4,] 90.00 96.10 96.65 101.50 99.25 NA [5,] 97.60 99.00 103.60 106.30 110.20 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 81.51517 84.24342 78.88044 88.85754 83.74695 NA [2,] 88.58483 96.05658 95.61956 103.04246 96.15305 NA $out [1] 68.9 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(71.2, 82.25, 85.05, 90, 97.6, 72.9, 83.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7we101228246565.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,] 75.56 73.60 75.750 [2,] 82.28 82.55 81.325 [3,] 90.55 91.20 90.300 [4,] 96.15 97.50 96.075 [5,] 98.84 101.60 100.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 84.2238 84.3812 83.57243 [2,] 96.8762 98.0188 97.02757 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(75.56, 82.28, 90.55, 96.15, 98.84, 73.6, 82.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bgwt1228246565.ps tmp/1bgwt1228246565.png") > system("convert tmp/2pwy01228246565.ps tmp/2pwy01228246565.png") > system("convert tmp/3d4dx1228246565.ps tmp/3d4dx1228246565.png") > system("convert tmp/4d2481228246565.ps tmp/4d2481228246565.png") > system("convert tmp/5epc51228246565.ps tmp/5epc51228246565.png") > system("convert tmp/6he341228246565.ps tmp/6he341228246565.png") > system("convert tmp/7we101228246565.ps tmp/7we101228246565.png") > > > proc.time() user system elapsed 1.220 0.978 1.572