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(0.62,0.62,0.62,0.63,0.62,0.63,0.63,0.62,0.63,0.63,0.63,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.63,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.64,0.65,0.65,0.65,0.65,0.65,0.65,0.66,0.66,0.66,0.66,0.68,0.69,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.71,0.7,0.71,0.7,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.71,0.71,0.7,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.7,0.7,0.68,0.68,0.69,0.69,0.7,0.7,0.7,0.7,0.7,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.76,0.77,0.78,0.85,0.89,0.9,0.91,0.91,0.91,0.9,0.89,0.88,0.87,0.86,0.87,0.87,0.87,0.85) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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] 11 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.62 0.64 0.64 0.65 0.70 0.71 0.70 0.71 0.68 0.71 0.91 NA [2,] 0.62 0.64 0.64 0.65 0.70 0.71 0.70 0.71 0.68 0.71 0.91 NA [3,] 0.62 0.64 0.64 0.66 0.70 0.71 0.70 0.71 0.69 0.71 0.91 NA [4,] 0.63 0.64 0.64 0.66 0.70 0.71 0.70 0.71 0.69 0.71 0.90 NA [5,] 0.62 0.64 0.64 0.66 0.70 0.71 0.70 0.71 0.70 0.71 0.89 NA [6,] 0.63 0.64 0.64 0.66 0.71 0.71 0.70 0.71 0.70 0.71 0.88 NA [7,] 0.63 0.64 0.64 0.68 0.70 0.71 0.70 0.71 0.70 0.76 0.87 NA [8,] 0.62 0.63 0.64 0.69 0.71 0.71 0.71 0.71 0.70 0.77 0.86 NA [9,] 0.63 0.64 0.65 0.70 0.70 0.71 0.71 0.71 0.70 0.78 0.87 NA [10,] 0.63 0.64 0.65 0.70 0.71 0.71 0.70 0.71 0.71 0.85 0.87 NA [11,] 0.63 0.64 0.65 0.70 0.71 0.70 0.71 0.70 0.71 0.89 0.87 NA [12,] 0.64 0.64 0.65 0.70 0.71 0.70 0.71 0.70 0.71 0.90 0.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.01 0.00 0.00 NA [3,] 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -0.01 NA [4,] -0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 -0.01 NA [5,] 0.01 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.00 -0.01 NA [6,] 0.00 0.00 0.00 0.02 -0.01 0.00 0.00 0.00 0.00 0.05 -0.01 NA [7,] -0.01 -0.01 0.00 0.01 0.01 0.00 0.01 0.00 0.00 0.01 -0.01 NA [8,] 0.01 0.01 0.01 0.01 -0.01 0.00 0.00 0.00 0.00 0.01 0.01 NA [9,] 0.00 0.00 0.00 0.00 0.01 0.00 -0.01 0.00 0.01 0.07 0.00 NA [10,] 0.00 0.00 0.00 0.00 0.00 -0.01 0.01 -0.01 0.00 0.04 0.00 NA [11,] 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 -0.02 NA [12,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -0.02 0.00 0.01 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/1zme11259748653.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/2gr301259748653.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/3e3ms1259748653.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/4jlwh1259748653.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.620 0.620 0.62 0.63 0.62 0.63 0.63 0.620 0.630 0.630 0.630 0.640 [2,] 0.645 0.645 0.65 0.65 0.65 0.65 0.66 0.665 0.675 0.675 0.675 0.675 [3,] 0.700 0.700 0.70 0.70 0.70 0.70 0.70 0.710 0.700 0.710 0.700 0.700 [4,] 0.710 0.710 0.71 0.71 0.71 0.71 0.71 0.710 0.710 0.710 0.710 0.710 [5,] 0.710 0.710 0.71 0.71 0.71 0.71 0.76 0.770 0.710 0.710 0.710 0.710 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6690348 0.6690348 0.6714167 0.6714167 0.6714167 0.6714167 0.6761806 [2,] 0.7309652 0.7309652 0.7285833 0.7285833 0.7285833 0.7285833 0.7238194 [,8] [,9] [,10] [,11] [,12] [1,] 0.6885625 0.6833264 0.6933264 0.6833264 0.6833264 [2,] 0.7314375 0.7166736 0.7266736 0.7166736 0.7166736 $out [1] 0.91 0.91 0.91 0.90 0.89 0.88 0.87 0.86 0.78 0.87 0.85 0.87 0.89 0.87 0.90 [16] 0.85 $group [1] 1 2 3 4 5 6 7 8 9 9 10 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.62, 0.645, 0.7, 0.71, 0.71, 0.62, 0.645, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ey2j1259748653.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 0 0 0 0 0 -0.010 -0.01 0.000 0 0 0 [2,] 0 0 0 0 0 0 -0.005 0.00 0.000 0 0 0 [3,] 0 0 0 0 0 0 0.000 0.01 0.000 0 0 0 [4,] 0 0 0 0 0 0 0.010 0.01 0.005 0 0 0 [5,] 0 0 0 0 0 0 0.010 0.01 0.010 0 0 0 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0 0 0 0 0 0 -0.007145819 0.005236121 -0.002381940 0 [2,] 0 0 0 0 0 0 0.007145819 0.014763879 0.002381940 0 [,11] [,12] [1,] 0 0 [2,] 0 0 $out [1] 0.01 0.01 0.01 -0.01 -0.01 0.01 -0.01 0.01 0.01 -0.01 0.02 -0.01 [13] 0.05 -0.01 -0.01 0.07 -0.01 0.01 -0.01 0.04 0.01 0.01 -0.02 -0.02 [25] 0.01 $group [1] 2 2 3 3 4 4 4 5 5 5 6 6 6 6 9 9 10 10 10 10 11 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6p1oc1259748653.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] [,8] [,9] [,10] [,11] [,12] [1,] 0.62 0.64 0.64 0.65 0.70 0.71 0.70 0.71 0.680 0.710 0.850 NA [2,] 0.62 0.64 0.64 0.66 0.70 0.71 0.70 0.71 0.690 0.710 0.870 NA [3,] 0.63 0.64 0.64 0.67 0.70 0.71 0.70 0.71 0.700 0.735 0.875 NA [4,] 0.63 0.64 0.65 0.70 0.71 0.71 0.71 0.71 0.705 0.815 0.905 NA [5,] 0.64 0.64 0.65 0.70 0.71 0.71 0.71 0.71 0.710 0.900 0.910 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.6254389 0.64 0.6354389 0.6517557 0.695439 0.71 0.695439 0.71 0.6931584 [2,] 0.6345611 0.64 0.6445611 0.6882443 0.704561 0.71 0.704561 0.71 0.7068416 [,10] [,11] [,12] [1,] 0.6871088 0.8590363 NA [2,] 0.7828912 0.8909637 NA $out [1] 0.63 0.70 0.70 0.70 0.70 $group [1] 2 6 6 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(0.62, 0.62, 0.63, 0.63, 0.64, 0.64, 0.64, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70h4c1259748653.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.6972727 0.7 0.6775 [2,] 0.6986364 0.7 0.6800 [3,] 0.7013636 0.7 0.6825 [4,] 0.7127273 0.7 0.6925 [5,] 0.7190909 0.7 0.6925 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.6949367 0.7 0.6767987 [2,] 0.7077906 0.7 0.6882013 $out [1] 0.71 0.71 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.697272727272727, 0.698636363636364, 0.701363636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zme11259748653.ps tmp/1zme11259748653.png") > system("convert tmp/2gr301259748653.ps tmp/2gr301259748653.png") > system("convert tmp/3e3ms1259748653.ps tmp/3e3ms1259748653.png") > system("convert tmp/4jlwh1259748653.ps tmp/4jlwh1259748653.png") > system("convert tmp/5ey2j1259748653.ps tmp/5ey2j1259748653.png") > system("convert tmp/6p1oc1259748653.ps tmp/6p1oc1259748653.png") > system("convert tmp/70h4c1259748653.ps tmp/70h4c1259748653.png") > > > proc.time() user system elapsed 1.189 0.936 1.829