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(100,91.74,84.40,84.40,87.16,88.07,87.16,83.49,81.65,82.57,92.66,94.50,93.58,88.07,84.40,85.32,86.24,86.24,84.40,82.57,82.57,82.57,89.91,91.74,89.91,85.32,82.57,82.57,83.49,83.49,83.49,84.40,80.73,76.15,77.06,74.31,70.64,72.48,72.48,73.39,72.48,69.72,65.14,62.39,59.63,63.30,75.23,79.82,76.15,72.48,68.81,71.56,76.15,77.06,75.23,70.64,66.06,66.97,74.31,77.98) > 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,] 100.00 93.58 89.91 70.64 76.15 NA [2,] 91.74 88.07 85.32 72.48 72.48 NA [3,] 84.40 84.40 82.57 72.48 68.81 NA [4,] 84.40 85.32 82.57 73.39 71.56 NA [5,] 87.16 86.24 83.49 72.48 76.15 NA [6,] 88.07 86.24 83.49 69.72 77.06 NA [7,] 87.16 84.40 83.49 65.14 75.23 NA [8,] 83.49 82.57 84.40 62.39 70.64 NA [9,] 81.65 82.57 80.73 59.63 66.06 NA [10,] 82.57 82.57 76.15 63.30 66.97 NA [11,] 92.66 89.91 77.06 75.23 74.31 NA [12,] 94.50 91.74 74.31 79.82 77.98 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -8.26 -5.51 -4.59 1.84 -3.67 NA [2,] -7.34 -3.67 -2.75 0.00 -3.67 NA [3,] 0.00 0.92 0.00 0.91 2.75 NA [4,] 2.76 0.92 0.92 -0.91 4.59 NA [5,] 0.91 0.00 0.00 -2.76 0.91 NA [6,] -0.91 -1.84 0.00 -4.58 -1.83 NA [7,] -3.67 -1.83 0.91 -2.75 -4.59 NA [8,] -1.84 0.00 -3.67 -2.76 -4.58 NA [9,] 0.92 0.00 -4.58 3.67 0.91 NA [10,] 10.09 7.34 0.91 11.93 7.34 NA [11,] 1.84 1.83 -2.75 4.59 3.67 NA [12,] -0.92 -1.83 -3.67 -3.67 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/165gd1257949731.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/2dlvy1257949731.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/35mha1257949731.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/4371n1257949731.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,] 70.64 72.48 68.81 71.56 72.48 69.72 65.14 62.39 59.63 63.30 74.31 74.31 [2,] 76.15 72.48 72.48 73.39 76.15 77.06 75.23 70.64 66.06 66.97 75.23 77.98 [3,] 89.91 85.32 82.57 82.57 83.49 83.49 83.49 82.57 80.73 76.15 77.06 79.82 [4,] 93.58 88.07 84.40 84.40 86.24 86.24 84.40 83.49 81.65 82.57 89.91 91.74 [5,] 100.00 91.74 84.40 85.32 87.16 88.07 87.16 84.40 82.57 82.57 92.66 94.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.594 74.30415 74.14736 74.79036 76.36043 77.00344 77.0105 73.49022 [2,] 102.226 96.33585 90.99264 90.34964 90.61957 89.97656 89.9695 91.64978 [,9] [,10] [,11] [,12] [1,] 69.71415 65.12708 66.68715 70.09722 [2,] 91.74585 87.17292 87.43285 89.54278 $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(70.64, 76.15, 89.91, 93.58, 100, 72.48, 72.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jk2x1257949731.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,] -8.26 -3.67 0.00 -0.91 0.00 -1.84 -4.59 -4.58 0.00 7.34 1.83 -3.670 [2,] -5.51 -3.67 0.00 0.92 0.00 -1.84 -3.67 -3.67 0.00 7.34 1.83 -3.670 [3,] -4.59 -3.67 0.91 0.92 0.00 -1.83 -2.75 -2.76 0.91 7.34 1.84 -2.750 [4,] -3.67 -2.75 0.92 2.76 0.91 -0.91 -1.83 -1.84 0.92 10.09 3.67 -1.375 [5,] -3.67 -2.75 0.92 4.59 0.91 0.00 0.91 0.00 0.92 11.93 4.59 -0.920 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.890139 -4.320070 0.2599303 -0.3801394 -0.6430037 -2.487136 -4.050139 [2,] -3.289861 -3.019930 1.5600697 2.2201394 0.6430037 -1.172864 -1.449861 [,8] [,9] [,10] [,11] [,12] [1,] -4.053073 0.2599303 5.396857 0.5398606 -4.56305 [2,] -1.466927 1.5600697 9.283143 3.1401394 -0.93695 $out [1] 1.84 -7.34 0.00 2.75 -2.76 -4.58 -4.58 3.67 0.91 -2.75 $group [1] 1 2 2 3 5 6 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.26, -5.51, -4.59, -3.67, -3.67, -3.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tz0x1257949731.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,] 81.650 82.570 74.310 59.630 66.060 NA [2,] 83.945 83.485 78.895 64.220 69.725 NA [3,] 87.160 85.780 83.030 71.560 73.395 NA [4,] 92.200 88.990 83.945 72.935 76.150 NA [5,] 100.000 93.580 89.910 79.820 77.980 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 83.39484 83.26913 80.72666 67.58503 70.46451 NA [2,] 90.92516 88.29087 85.33334 75.53497 76.32549 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(81.65, 83.945, 87.16, 92.2, 100, 82.57, 83.485, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7f30t1257949731.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,] 74.128 76.150 73.8550 [2,] 77.615 80.275 77.7525 [3,] 80.182 82.570 80.0450 [4,] 81.926 83.490 82.1100 [5,] 86.056 85.320 84.8650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 78.21572 81.10362 78.05751 [2,] 82.14828 84.03638 82.03249 $out [1] 89.91 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(74.128, 77.615, 80.182, 81.926, 86.056, 76.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/165gd1257949731.ps tmp/165gd1257949731.png") > system("convert tmp/2dlvy1257949731.ps tmp/2dlvy1257949731.png") > system("convert tmp/35mha1257949731.ps tmp/35mha1257949731.png") > system("convert tmp/4371n1257949731.ps tmp/4371n1257949731.png") > system("convert tmp/5jk2x1257949731.ps tmp/5jk2x1257949731.png") > system("convert tmp/6tz0x1257949731.ps tmp/6tz0x1257949731.png") > system("convert tmp/7f30t1257949731.ps tmp/7f30t1257949731.png") > > > proc.time() user system elapsed 1.174 0.906 1.640