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(97.9,96.6,96.2,95.8,96,96.2,96.5,95.4,96.2,96.8,97,97.1,96.6,95.8,96.2,96,95.9,95.8,96,96.2,96.8,96.9,97.2,98.9,98.9,98.8,99,99.6,99.9,100.1,99.9,100.5,100.7,101.3,101.3,101.7,103,104.7,104.5,104.6,104.2,104.5,104.8,104.7,104.6,104.5,104.7,104.8,106.2,105.6,104.5,104.2,104.1,103.3,103.8,103.3,103.7,103.5,103.7,103.4,102.8) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.9 96.6 98.9 103.0 106.2 102.8 [2,] 96.6 95.8 98.8 104.7 105.6 NA [3,] 96.2 96.2 99.0 104.5 104.5 NA [4,] 95.8 96.0 99.6 104.6 104.2 NA [5,] 96.0 95.9 99.9 104.2 104.1 NA [6,] 96.2 95.8 100.1 104.5 103.3 NA [7,] 96.5 96.0 99.9 104.8 103.8 NA [8,] 95.4 96.2 100.5 104.7 103.3 NA [9,] 96.2 96.8 100.7 104.6 103.7 NA [10,] 96.8 96.9 101.3 104.5 103.5 NA [11,] 97.0 97.2 101.3 104.7 103.7 NA [12,] 97.1 98.9 101.7 104.8 103.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.3 -0.8 -0.1 1.7 -0.6 NA [2,] -0.4 0.4 0.2 -0.2 -1.1 NA [3,] -0.4 -0.2 0.6 0.1 -0.3 NA [4,] 0.2 -0.1 0.3 -0.4 -0.1 NA [5,] 0.2 -0.1 0.2 0.3 -0.8 NA [6,] 0.3 0.2 -0.2 0.3 0.5 NA [7,] -1.1 0.2 0.6 -0.1 -0.5 NA [8,] 0.8 0.6 0.2 -0.1 0.4 NA [9,] 0.6 0.1 0.6 -0.1 -0.2 NA [10,] 0.2 0.3 0.0 0.2 0.2 NA [11,] 0.1 1.7 0.4 0.1 -0.3 NA [12,] -0.5 0.0 1.3 1.4 -0.6 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/1s10c1257943196.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/2u3d81257943196.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/3qvs01257943196.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/4eewj1257943196.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,] 96.60 95.8 96.2 95.8 95.9 95.8 96.0 95.4 96.2 96.8 97.0 97.1 [2,] 97.90 96.6 96.2 96.0 96.0 96.2 96.5 96.2 96.8 96.9 97.2 98.9 [3,] 100.85 98.8 99.0 99.6 99.9 100.1 99.9 100.5 100.7 101.3 101.3 101.7 [4,] 103.00 104.7 104.5 104.2 104.1 103.3 103.8 103.3 103.7 103.5 103.7 103.4 [5,] 106.20 105.6 104.5 104.6 104.2 104.5 104.8 104.7 104.6 104.5 104.7 104.8 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.56034 93.07656 93.13524 93.8059 94.17656 95.08316 94.74184 [2,] 104.13966 104.52344 104.86476 105.3941 105.62344 105.11684 105.05816 [,8] [,9] [,10] [,11] [,12] [1,] 95.48316 95.82448 96.63646 96.70712 98.52031 [2,] 105.51684 105.57552 105.96354 105.89288 104.87969 $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(96.6, 97.9, 100.85, 103, 106.2, 95.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/58q7l1257943196.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 -1.1 -0.4 -0.4 -0.1 0.2 -1.1 -0.1 -0.2 0.2 -0.3 -0.6 [2,] -0.8 -0.4 -0.3 -0.1 -0.1 0.2 -0.5 0.2 -0.1 0.2 0.1 -0.5 [3,] -0.6 -0.2 -0.2 -0.1 0.2 0.3 -0.1 0.4 0.1 0.2 0.1 0.0 [4,] -0.1 0.2 0.1 0.2 0.2 0.3 0.2 0.6 0.6 0.2 0.4 1.3 [5,] -0.1 0.4 0.6 0.3 0.3 0.3 0.6 0.8 0.6 0.2 0.4 1.4 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.0946182 -0.6239585 -0.482639 -0.3119792 -0.01197924 0.2293403 [2,] -0.1053818 0.2239585 0.082639 0.1119792 0.41197924 0.3706597 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.5946182 0.117361 -0.3946182 0.2 -0.1119792 -1.271875 [2,] 0.3946182 0.682639 0.5946182 0.2 0.3119792 1.271875 $out [1] 1.7 -0.8 -0.2 0.5 0.3 0.0 1.7 $group [1] 1 5 6 6 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.30000000000001, -0.799999999999997, -0.600000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6imco1257943196.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,] 95.40 95.80 98.8 104.2 103.30 102.8 [2,] 96.10 95.95 99.3 104.5 103.45 102.8 [3,] 96.35 96.20 100.0 104.6 103.75 102.8 [4,] 96.90 96.85 101.0 104.7 104.35 102.8 [5,] 97.90 97.20 101.7 104.8 105.60 102.8 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.98511 95.7895 99.22462 104.5088 103.3395 102.8 [2,] 96.71489 96.6105 100.77538 104.6912 104.1605 102.8 $out [1] 98.9 103.0 106.2 $group [1] 2 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(95.4, 96.1, 96.35, 96.9, 97.9, 95.8, 95.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fwez1257943196.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,] 99.98 98.800 99.750 [2,] 100.03 99.750 100.075 [3,] 100.25 100.300 100.225 [4,] 100.69 101.075 100.500 [5,] 101.18 101.700 100.650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 99.94897 99.69566 100.0312 [2,] 100.55103 100.90434 100.4188 $out [1] 101.15 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(99.98, 100.03, 100.25, 100.69, 101.18, 98.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1s10c1257943196.ps tmp/1s10c1257943196.png") > system("convert tmp/2u3d81257943196.ps tmp/2u3d81257943196.png") > system("convert tmp/3qvs01257943196.ps tmp/3qvs01257943196.png") > system("convert tmp/4eewj1257943196.ps tmp/4eewj1257943196.png") > system("convert tmp/58q7l1257943196.ps tmp/58q7l1257943196.png") > system("convert tmp/6imco1257943196.ps tmp/6imco1257943196.png") > system("convert tmp/7fwez1257943196.ps tmp/7fwez1257943196.png") > > > proc.time() user system elapsed 1.223 0.971 1.555