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(0.76,0.77,0.76,0.77,0.78,0.79,0.78,0.76,0.78,0.76,0.74,0.73,0.72,0.71,0.73,0.75,0.75,0.72,0.72,0.72,0.74,0.78,0.74,0.74,0.75,0.78,0.81,0.75,0.7,0.71,0.71,0.73,0.74,0.74,0.75,0.74,0.74,0.73,0.76,0.8,0.83,0.81,0.83,0.88,0.89,0.93,0.91,0.9,0.86,0.88,0.93,0.98,0.97,1.03,1.06,1.06,1.08,1.09,1.04,1) > 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,] 0.76 0.72 0.75 0.74 0.86 NA [2,] 0.77 0.71 0.78 0.73 0.88 NA [3,] 0.76 0.73 0.81 0.76 0.93 NA [4,] 0.77 0.75 0.75 0.80 0.98 NA [5,] 0.78 0.75 0.70 0.83 0.97 NA [6,] 0.79 0.72 0.71 0.81 1.03 NA [7,] 0.78 0.72 0.71 0.83 1.06 NA [8,] 0.76 0.72 0.73 0.88 1.06 NA [9,] 0.78 0.74 0.74 0.89 1.08 NA [10,] 0.76 0.78 0.74 0.93 1.09 NA [11,] 0.74 0.74 0.75 0.91 1.04 NA [12,] 0.73 0.74 0.74 0.90 1.00 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01 -0.01 0.03 -0.01 0.02 NA [2,] -0.01 0.02 0.03 0.03 0.05 NA [3,] 0.01 0.02 -0.06 0.04 0.05 NA [4,] 0.01 0.00 -0.05 0.03 -0.01 NA [5,] 0.01 -0.03 0.01 -0.02 0.06 NA [6,] -0.01 0.00 0.00 0.02 0.03 NA [7,] -0.02 0.00 0.02 0.05 0.00 NA [8,] 0.02 0.02 0.01 0.01 0.02 NA [9,] -0.02 0.04 0.00 0.04 0.01 NA [10,] -0.02 -0.04 0.01 -0.02 -0.05 NA [11,] -0.01 0.00 -0.01 -0.01 -0.04 NA [12,] -0.01 0.01 0.00 -0.04 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/1vo0c1229689096.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/2zfsv1229689097.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/33krz1229689097.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/4luzl1229689097.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,] 0.72 0.71 0.73 0.75 0.70 0.71 0.71 0.72 0.74 0.74 0.74 0.73 [2,] 0.74 0.73 0.76 0.75 0.75 0.72 0.72 0.73 0.74 0.76 0.74 0.74 [3,] 0.75 0.77 0.76 0.77 0.78 0.79 0.78 0.76 0.78 0.78 0.75 0.74 [4,] 0.76 0.78 0.81 0.80 0.83 0.81 0.83 0.88 0.89 0.93 0.91 0.90 [5,] 0.76 0.78 0.81 0.80 0.83 0.81 0.83 1.06 1.08 1.09 1.04 1.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.735868 0.7346701 0.7246701 0.7346701 0.7234722 0.7264062 0.7022743 [2,] 0.764132 0.8053299 0.7953299 0.8053299 0.8365278 0.8535938 0.8577257 [,8] [,9] [,10] [,11] [,12] [1,] 0.6540104 0.6740104 0.6598784 0.6298784 0.6269444 [2,] 0.8659896 0.8859896 0.9001216 0.8701216 0.8530556 $out [1] 0.86 0.88 0.93 0.98 0.97 1.03 1.06 $group [1] 1 2 3 4 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.72, 0.74, 0.75, 0.76, 0.76, 0.71, 0.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k4pr1229689097.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.01 0.02 0.01 -0.01 -0.03 -0.01 -0.02 0.01 -0.02 -0.05 -0.01 -0.040 [2,] -0.01 0.02 0.01 -0.01 -0.02 0.00 0.00 0.01 0.00 -0.04 -0.01 -0.025 [3,] 0.01 0.03 0.02 0.00 0.01 0.00 0.00 0.02 0.01 -0.02 -0.01 -0.005 [4,] 0.02 0.03 0.04 0.01 0.01 0.02 0.02 0.02 0.04 -0.02 -0.01 0.005 [5,] 0.03 0.03 0.05 0.03 0.01 0.03 0.05 0.02 0.04 0.01 -0.01 0.010 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01119792 0.02293403 -0.001197924 -0.01413195 -0.01119792 -0.01413195 [2,] 0.03119792 0.03706597 0.041197924 0.01413195 0.03119792 0.01413195 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01413195 0.01293403 -0.0182639 -0.03413195 -0.01 -0.0287 [2,] 0.01413195 0.02706597 0.0382639 -0.00586805 -0.01 0.0187 $out [1] -0.01 0.05 -0.06 -0.05 0.06 0.00 -0.04 $group [1] 2 2 3 4 5 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.01, 0.01, 0.02, 0.03, 0.02, 0.02, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61p751229689097.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,] 0.730 0.710 0.70 0.730 0.860 NA [2,] 0.760 0.720 0.72 0.780 0.950 NA [3,] 0.765 0.735 0.74 0.830 1.015 NA [4,] 0.780 0.745 0.75 0.895 1.060 NA [5,] 0.790 0.780 0.78 0.930 1.090 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.7558779 0.7235973 0.7263168 0.7775477 0.9648283 NA [2,] 0.7741221 0.7464027 0.7536832 0.8824523 1.0651717 NA $out [1] 0.81 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(0.73, 0.76, 0.765, 0.78, 0.79, 0.71, 0.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/747it1229689097.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,] 0.766 0.740 0.7500 [2,] 0.802 0.755 0.7700 [3,] 0.816 0.770 0.7875 [4,] 0.833 0.780 0.8175 [5,] 0.860 0.790 0.8450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.8018607 0.7585973 0.765835 [2,] 0.8301393 0.7814027 0.809165 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.766, 0.802, 0.816, 0.833, 0.86, 0.74, 0.755, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1vo0c1229689096.ps tmp/1vo0c1229689096.png") > system("convert tmp/2zfsv1229689097.ps tmp/2zfsv1229689097.png") > system("convert tmp/33krz1229689097.ps tmp/33krz1229689097.png") > system("convert tmp/4luzl1229689097.ps tmp/4luzl1229689097.png") > system("convert tmp/5k4pr1229689097.ps tmp/5k4pr1229689097.png") > system("convert tmp/61p751229689097.ps tmp/61p751229689097.png") > system("convert tmp/747it1229689097.ps tmp/747it1229689097.png") > > > proc.time() user system elapsed 1.266 0.995 1.875