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(2.98,2.98,2.98,3.03,3.07,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.12,3.15,3.15,3.15,3.15,3.16,3.19,3.20,3.20,3.20,3.21,3.21,3.21,3.21,3.21,3.28,3.30,3.30,3.30,3.30,3.30,3.30,3.30,3.45,3.49,3.50,3.54,3.64,3.67,3.67,3.68,3.68,3.68,3.68,3.70,3.83,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.88,3.88,3.88,3.88,3.88,3.88,3.89,3.89,3.91,3.95,3.99,3.99,3.99,4.00,4.00,4.00,4.00,4.00,4.00,4.00,4.00,4.06,4.07,4.07,4.07,4.07,4.07,4.30,4.44,4.52,4.52,4.52,4.53,4.53,4.53,4.53,4.53,4.53,4.53,4.53,4.61,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.66,4.73,4.73,4.72,4.7,4.74,4.74,4.74,4.76,4.88,4.88,4.88,4.88,4.89,4.97,4.97,4.97,4.97,4.97,4.97,4.97,4.97) > 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,] 2.98 3.08 3.21 3.30 3.70 3.88 4.00 4.07 4.53 4.63 4.88 NA [2,] 2.98 3.08 3.21 3.45 3.83 3.88 4.00 4.07 4.53 4.63 4.88 NA [3,] 2.98 3.12 3.21 3.49 3.87 3.88 4.00 4.30 4.53 4.66 4.88 NA [4,] 3.03 3.15 3.21 3.50 3.87 3.88 4.00 4.44 4.61 4.73 4.89 NA [5,] 3.07 3.15 3.21 3.54 3.87 3.88 4.00 4.52 4.63 4.73 4.97 NA [6,] 3.08 3.15 3.28 3.64 3.87 3.89 4.00 4.52 4.63 4.72 4.97 NA [7,] 3.08 3.15 3.30 3.67 3.87 3.89 4.00 4.52 4.63 4.70 4.97 NA [8,] 3.08 3.16 3.30 3.67 3.87 3.91 4.00 4.53 4.63 4.74 4.97 NA [9,] 3.08 3.19 3.30 3.68 3.87 3.95 4.06 4.53 4.63 4.74 4.97 NA [10,] 3.08 3.20 3.30 3.68 3.87 3.99 4.07 4.53 4.63 4.74 4.97 NA [11,] 3.08 3.20 3.30 3.68 3.87 3.99 4.07 4.53 4.63 4.76 4.97 NA [12,] 3.08 3.20 3.30 3.68 3.88 3.99 4.07 4.53 4.63 4.88 4.97 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00 0.00 0.00 0.15 0.13 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.04 0.00 0.04 0.04 0.00 0.00 0.23 0.00 0.03 0.00 NA [3,] 0.05 0.03 0.00 0.01 0.00 0.00 0.00 0.14 0.08 0.07 0.01 NA [4,] 0.04 0.00 0.00 0.04 0.00 0.00 0.00 0.08 0.02 0.00 0.08 NA [5,] 0.01 0.00 0.07 0.10 0.00 0.01 0.00 0.00 0.00 -0.01 0.00 NA [6,] 0.00 0.00 0.02 0.03 0.00 0.00 0.00 0.00 0.00 -0.02 0.00 NA [7,] 0.00 0.01 0.00 0.00 0.00 0.02 0.00 0.01 0.00 0.04 0.00 NA [8,] 0.00 0.03 0.00 0.01 0.00 0.04 0.06 0.00 0.00 0.00 0.00 NA [9,] 0.00 0.01 0.00 0.00 0.00 0.04 0.01 0.00 0.00 0.00 0.00 NA [10,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.02 0.00 NA [11,] 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.12 0.00 NA [12,] 0.00 0.01 0.00 0.02 0.00 0.01 0.00 0.00 0.00 0.00 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/103o91319182850.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/26gdk1319182850.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/3xoab1319182850.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/4xyvc1319182850.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,] 2.980 2.98 2.980 3.030 3.070 3.080 3.080 3.080 3.08 3.08 3.08 3.08 [2,] 3.255 3.33 3.350 3.355 3.375 3.460 3.485 3.485 3.49 3.49 3.49 3.49 [3,] 3.880 3.88 3.880 3.880 3.880 3.890 3.890 3.910 3.95 3.99 3.99 3.99 [4,] 4.300 4.30 4.415 4.525 4.575 4.575 4.575 4.580 4.58 4.58 4.58 4.58 [5,] 4.880 4.88 4.880 4.890 4.970 4.970 4.970 4.970 4.97 4.97 4.97 4.97 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.382175 3.417904 3.372647 3.322626 3.308334 3.358827 3.370737 3.388355 [2,] 4.377825 4.342096 4.387353 4.437374 4.451666 4.421173 4.409263 4.431645 [,9] [,10] [,11] [,12] [1,] 3.430737 3.470737 3.470737 3.470737 [2,] 4.469263 4.509263 4.509263 4.509263 $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(2.98, 3.255, 3.88, 4.3, 4.88, 2.98, 3.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5aqwj1319182850.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 0.00 0.00 0.00 -0.01 0 0.00 0.00 0.000 0 0 0.00 [2,] 0 0.00 0.00 0.00 0.00 0 0.00 0.00 0.000 0 0 0.00 [3,] 0 0.00 0.01 0.00 0.00 0 0.00 0.00 0.000 0 0 0.00 [4,] 0 0.04 0.06 0.04 0.01 0 0.01 0.02 0.005 0 0 0.01 [5,] 0 0.04 0.14 0.08 0.01 0 0.02 0.04 0.010 0 0 0.02 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -0.01905552 -0.01858328 -0.01905552 -0.004763879 0 -0.004763879 [2,] 0 0.01905552 0.03858328 0.01905552 0.004763879 0 0.004763879 [,8] [,9] [,10] [,11] [,12] [1,] -0.009527758 -0.00238194 0 0 -0.004996399 [2,] 0.009527758 0.00238194 0 0 0.004996399 $out [1] 0.15 0.13 0.23 0.07 0.10 0.02 0.03 -0.02 0.04 0.06 0.04 0.02 [13] 0.01 0.12 $group [1] 1 1 2 5 5 6 6 6 7 8 9 10 11 11 $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.04, 0.04, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6xljk1319182850.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] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 2.980 3.080 3.21 3.300 3.87 3.88 4.000 4.30 4.53 4.63 4.880 NA [2,] 3.005 3.135 3.21 3.495 3.87 3.88 4.000 4.37 4.57 4.68 4.885 NA [3,] 3.080 3.150 3.29 3.655 3.87 3.89 4.000 4.52 4.63 4.73 4.970 NA [4,] 3.080 3.195 3.30 3.680 3.87 3.97 4.065 4.53 4.63 4.74 4.970 NA [5,] 3.080 3.200 3.30 3.680 3.87 3.99 4.070 4.53 4.63 4.76 4.970 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,] 3.045792 3.122634 3.24895 3.57062 3.87 3.84895 3.970353 4.447023 4.602634 [2,] 3.114208 3.177366 3.33105 3.73938 3.87 3.93105 4.029647 4.592977 4.657366 [,10] [,11] [,12] [1,] 4.702634 4.931231 NA [2,] 4.757366 5.008769 NA $out [1] 3.70 3.83 3.88 4.07 4.07 4.88 $group [1] 5 5 5 8 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(2.98, 3.005, 3.08, 3.08, 3.08, 3.08, 3.135, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ntvw1319182850.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,] 3.841818 3.88 3.77750 [2,] 3.919545 3.88 3.91125 [3,] 3.978636 3.89 4.02375 [4,] 4.002727 3.97 4.03500 [5,] 4.019091 3.99 4.03500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.940697 3.84895 3.967307 [2,] 4.016576 3.93105 4.080193 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.84181818181818, 3.91954545454545, 3.97863636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/103o91319182850.ps tmp/103o91319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/26gdk1319182850.ps tmp/26gdk1319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/3xoab1319182850.ps tmp/3xoab1319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/4xyvc1319182850.ps tmp/4xyvc1319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/5aqwj1319182850.ps tmp/5aqwj1319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/6xljk1319182850.ps tmp/6xljk1319182850.png",intern=TRUE)) character(0) > try(system("convert tmp/7ntvw1319182850.ps tmp/7ntvw1319182850.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.588 0.321 1.918