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(98.8,100.5,110.4,96.4,101.9,106.2,81,94.7,101,109.4,102.3,90.7,96.2,96.1,106,103.1,102,104.7,86,92.1,106.9,112.6,101.7,92,97.4,97,105.4,102.7,98.1,104.5,87.4,89.9,109.8,111.7,98.6,96.9,95.1,97,112.7,102.9,97.4,111.4,87.4,96.8,114.1,110.3,103.9,101.6,94.6,95.9,104.7,102.8,98.1,113.9,80.9,95.7,113.2,105.9,108.8,102.3,99,100.7,115.5,100.7,109.9,114.6,85.4,100.5,114.8,116.5,112.9,102) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.8 96.2 97.4 95.1 94.6 99.0 NA [2,] 100.5 96.1 97.0 97.0 95.9 100.7 NA [3,] 110.4 106.0 105.4 112.7 104.7 115.5 NA [4,] 96.4 103.1 102.7 102.9 102.8 100.7 NA [5,] 101.9 102.0 98.1 97.4 98.1 109.9 NA [6,] 106.2 104.7 104.5 111.4 113.9 114.6 NA [7,] 81.0 86.0 87.4 87.4 80.9 85.4 NA [8,] 94.7 92.1 89.9 96.8 95.7 100.5 NA [9,] 101.0 106.9 109.8 114.1 113.2 114.8 NA [10,] 109.4 112.6 111.7 110.3 105.9 116.5 NA [11,] 102.3 101.7 98.6 103.9 108.8 112.9 NA [12,] 90.7 92.0 96.9 101.6 102.3 102.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.7 -0.1 -0.4 1.9 1.3 1.7 NA [2,] 9.9 9.9 8.4 15.7 8.8 14.8 NA [3,] -14.0 -2.9 -2.7 -9.8 -1.9 -14.8 NA [4,] 5.5 -1.1 -4.6 -5.5 -4.7 9.2 NA [5,] 4.3 2.7 6.4 14.0 15.8 4.7 NA [6,] -25.2 -18.7 -17.1 -24.0 -33.0 -29.2 NA [7,] 13.7 6.1 2.5 9.4 14.8 15.1 NA [8,] 6.3 14.8 19.9 17.3 17.5 14.3 NA [9,] 8.4 5.7 1.9 -3.8 -7.3 1.7 NA [10,] -7.1 -10.9 -13.1 -6.4 2.9 -3.6 NA [11,] -11.6 -9.7 -1.7 -2.3 -6.5 -10.9 NA [12,] 5.5 5.4 -1.8 -7.0 -3.3 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/1t82y1258116338.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/2427z1258116338.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/3ap7r1258116338.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/4xj1e1258116338.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,] 94.6 95.9 104.7 100.70 97.4 104.5 80.9 89.9 101.0 105.9 98.6 90.70 [2,] 95.1 96.1 105.4 100.70 98.1 104.7 81.0 92.1 106.9 109.4 101.7 92.00 [3,] 96.8 97.0 108.2 102.75 100.0 108.8 85.7 95.2 111.5 111.0 103.1 99.25 [4,] 98.8 100.5 112.7 102.90 102.0 113.9 87.4 96.8 114.1 112.6 108.8 102.00 [5,] 99.0 100.7 115.5 103.10 102.0 114.6 87.4 100.5 114.8 116.5 112.9 102.30 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94.41338 94.16186 103.4913 101.3309 97.48437 102.8657 81.5718 92.16835 [2,] 99.18662 99.83814 112.9087 104.1691 102.51563 114.7343 89.8282 98.23165 [,9] [,10] [,11] [,12] [1,] 106.8558 108.9359 98.52027 92.79968 [2,] 116.1442 113.0641 107.67973 105.70032 $out [1] 96.4 109.9 $group [1] 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94.6, 95.1, 96.8, 98.8, 99, 95.9, 96.1, 97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ii351258116338.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,] -0.4 8.4 -14.80 -5.50 2.70 -33.0 2.50 14.30 -7.3 -13.10 -11.6 -7.0 [2,] -0.1 8.8 -14.00 -4.70 4.30 -29.2 6.10 14.30 -3.8 -10.90 -10.9 -3.3 [3,] 1.5 9.9 -6.35 -2.85 5.55 -24.6 11.55 16.05 1.8 -6.75 -8.1 -1.8 [4,] 1.7 14.8 -2.70 5.50 14.00 -18.7 14.80 17.50 5.7 -3.60 -2.3 5.4 [5,] 1.9 15.7 -1.90 9.20 15.80 -17.1 15.10 19.90 8.4 2.90 -1.7 5.5 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3389419 6.029806 -13.638865 -9.429329 -0.7068133 -31.37284 5.938219 [2,] 2.6610581 13.770194 0.938865 3.729329 11.8068133 -17.82716 17.161781 [,8] [,9] [,10] [,11] [,12] [1,] 13.98590 -4.327807 -11.458736 -13.647278 -7.947398 [2,] 18.11410 7.927807 -2.041264 -2.552722 4.347398 $out [1] 6.3 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.400000000000006, -0.100000000000009, 1.50000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r3t91258116338.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] [1,] 90.70 86.00 87.40 87.40 80.90 85.40 NA [2,] 95.55 94.10 96.95 96.90 95.80 100.60 NA [3,] 100.75 101.85 98.35 102.25 102.55 105.95 NA [4,] 104.25 105.35 104.95 110.85 107.35 114.70 NA [5,] 110.40 112.60 111.70 114.10 113.90 116.50 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.78187 96.7188 94.70115 95.88731 97.28197 99.5189 NA [2,] 104.71813 106.9812 101.99885 108.61269 107.81803 112.3811 NA $out [1] 81 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(90.7, 95.55, 100.75, 104.25, 110.4, 86, 94.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yaa01258116338.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,] 84.68333 85.700 84.5750 [2,] 97.21667 96.900 97.2375 [3,] 101.33333 101.375 101.0375 [4,] 109.16667 108.500 109.0063 [5,] 111.06667 111.500 111.0000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 95.88286 96.08416 95.6697 [2,] 106.78381 106.66584 106.4053 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(84.6833333333333, 97.2166666666667, 101.333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1t82y1258116338.ps tmp/1t82y1258116338.png") > system("convert tmp/2427z1258116338.ps tmp/2427z1258116338.png") > system("convert tmp/3ap7r1258116338.ps tmp/3ap7r1258116338.png") > system("convert tmp/4xj1e1258116338.ps tmp/4xj1e1258116338.png") > system("convert tmp/5ii351258116338.ps tmp/5ii351258116338.png") > system("convert tmp/6r3t91258116338.ps tmp/6r3t91258116338.png") > system("convert tmp/7yaa01258116338.ps tmp/7yaa01258116338.png") > > > proc.time() user system elapsed 1.190 0.953 1.508