R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(5.51,5.54,5.56,5.57,5.57,5.58,5.56,5.57,5.57,5.6,5.61,5.63,5.65,5.71,5.78,5.8,5.8,5.8,5.81,5.84,5.83,5.86,5.88,5.88,5.89,5.91,5.91,5.95,5.92,5.92,5.91,5.95,6.01,6.07,6.08,6.1,6.11,6.13,6.21,6.19,6.17,6.17,6.19,6.21,6.32,6.36,6.36,6.38,6.36,6.42,6.42,6.44,6.41,6.42,6.43,6.44,6.43,6.43,6.45,6.45) > 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,] 5.51 5.65 5.89 6.11 6.36 NA [2,] 5.54 5.71 5.91 6.13 6.42 NA [3,] 5.56 5.78 5.91 6.21 6.42 NA [4,] 5.57 5.80 5.95 6.19 6.44 NA [5,] 5.57 5.80 5.92 6.17 6.41 NA [6,] 5.58 5.80 5.92 6.17 6.42 NA [7,] 5.56 5.81 5.91 6.19 6.43 NA [8,] 5.57 5.84 5.95 6.21 6.44 NA [9,] 5.57 5.83 6.01 6.32 6.43 NA [10,] 5.60 5.86 6.07 6.36 6.43 NA [11,] 5.61 5.88 6.08 6.36 6.45 NA [12,] 5.63 5.88 6.10 6.38 6.45 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.03 0.06 0.02 0.02 0.06 NA [2,] 0.02 0.07 0.00 0.08 0.00 NA [3,] 0.01 0.02 0.04 -0.02 0.02 NA [4,] 0.00 0.00 -0.03 -0.02 -0.03 NA [5,] 0.01 0.00 0.00 0.00 0.01 NA [6,] -0.02 0.01 -0.01 0.02 0.01 NA [7,] 0.01 0.03 0.04 0.02 0.01 NA [8,] 0.00 -0.01 0.06 0.11 -0.01 NA [9,] 0.03 0.03 0.06 0.04 0.00 NA [10,] 0.01 0.02 0.01 0.00 0.02 NA [11,] 0.02 0.00 0.02 0.02 0.00 NA [12,] 0.02 0.01 0.01 -0.02 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/wessaorg/rcomp/tmp/1u1gl1319652247.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2vkde1319652247.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3b6oc1319652247.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4dwif1319652247.ps",horizontal=F,onefile=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,] 5.51 5.54 5.56 5.57 5.57 5.58 5.56 5.57 5.57 5.60 5.61 5.63 [2,] 5.65 5.71 5.78 5.80 5.80 5.80 5.81 5.84 5.83 5.86 5.88 5.88 [3,] 5.89 5.91 5.91 5.95 5.92 5.92 5.91 5.95 6.01 6.07 6.08 6.10 [4,] 6.11 6.13 6.21 6.19 6.17 6.17 6.19 6.21 6.32 6.36 6.36 6.38 [5,] 6.36 6.42 6.42 6.44 6.41 6.42 6.43 6.44 6.43 6.43 6.45 6.45 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.564965 5.613229 5.606163 5.674427 5.658559 5.658559 5.641493 5.688559 [2,] 6.215035 6.206771 6.213837 6.225573 6.181441 6.181441 6.178507 6.211441 [,9] [,10] [,11] [,12] [1,] 5.663767 5.716701 5.740833 5.746701 [2,] 6.356233 6.423299 6.419167 6.453299 $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(5.51, 5.65, 5.89, 6.11, 6.36, 5.54, 5.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5u3ry1319652247.ps",horizontal=F,onefile=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.02 0.00 0.01 -0.03 0.00 -0.02 0.01 -0.01 0.03 0.00 0.00 -0.020 [2,] 0.02 0.00 0.01 -0.03 0.00 -0.01 0.01 -0.01 0.03 0.01 0.00 -0.005 [3,] 0.03 0.02 0.02 -0.02 0.00 0.01 0.02 0.00 0.03 0.01 0.02 0.010 [4,] 0.06 0.07 0.02 0.00 0.01 0.01 0.03 0.06 0.04 0.02 0.02 0.015 [5,] 0.06 0.08 0.02 0.00 0.01 0.02 0.04 0.11 0.04 0.02 0.02 0.020 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.001736101 -0.02946182 0.01293403 -0.041197924 -0.007065975 -0.00413195 [2,] 0.058263899 0.06946182 0.02706597 0.001197924 0.007065975 0.02413195 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00586805 -0.04946182 0.02293403 0.002934025 0.00586805 -0.0058 [2,] 0.03413195 0.04946182 0.03706597 0.017065975 0.03413195 0.0258 $out [1] 0.04 -0.02 0.06 0.00 $group [1] 3 3 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0199999999999996, 0.0200000000000005, 0.0300000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6davz1319652247.ps",horizontal=F,onefile=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,] 5.54 5.710 5.890 6.11 6.41 NA [2,] 5.56 5.790 5.910 6.17 6.42 NA [3,] 5.57 5.805 5.935 6.20 6.43 NA [4,] 5.59 5.850 6.040 6.34 6.44 NA [5,] 5.63 5.880 6.100 6.38 6.45 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.556317 5.777634 5.875706 6.122462 6.420878 NA [2,] 5.583683 5.832366 5.994294 6.277538 6.439122 NA $out [1] 5.51 5.65 6.36 $group [1] 1 2 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(5.54, 5.56, 5.57, 5.59, 5.63, 5.71, 5.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ez4c1319652247.ps",horizontal=F,onefile=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,] 5.904 5.890 5.8800 [2,] 5.975 5.910 5.9850 [3,] 5.985 5.935 5.9975 [4,] 6.048 6.040 6.0925 [5,] 6.088 6.100 6.1300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.951704 5.875706 5.948469 [2,] 6.018296 5.994294 6.046531 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(5.904, 5.975, 5.985, 6.048, 6.088, 5.89, 5.91, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1u1gl1319652247.ps tmp/1u1gl1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/2vkde1319652247.ps tmp/2vkde1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/3b6oc1319652247.ps tmp/3b6oc1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/4dwif1319652247.ps tmp/4dwif1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/5u3ry1319652247.ps tmp/5u3ry1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/6davz1319652247.ps tmp/6davz1319652247.png",intern=TRUE)) character(0) > try(system("convert tmp/7ez4c1319652247.ps tmp/7ez4c1319652247.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.674 0.353 2.038