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(14.92,14.95,14.97,15.05,15.06,15.07,15.07,15.08,15.09,15.09,15.09,15.12,15.13,15.15,15.15,15.16,15.17,15.17,15.18,15.18,15.19,15.19,15.2,15.21,15.24,15.31,15.45,15.46,15.65,15.67,15.68,15.73,15.74,15.79,15.8,15.81,15.82,15.84,15.84,15.85,15.86,15.87,15.87,15.88,15.88,15.88,15.88,15.9,15.91,15.92,15.94,15.96,15.96,15.97,15.97,16,16.02,16.05,16.07,16.08,16.08,16.08,16.11,16.12,16.12,16.14,16.14,16.14,16.15,16.15,16.18,16.18,16.19,16.25) > 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] 74 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.92 15.13 15.24 15.82 15.91 16.08 16.19 [2,] 14.95 15.15 15.31 15.84 15.92 16.08 16.25 [3,] 14.97 15.15 15.45 15.84 15.94 16.11 NA [4,] 15.05 15.16 15.46 15.85 15.96 16.12 NA [5,] 15.06 15.17 15.65 15.86 15.96 16.12 NA [6,] 15.07 15.17 15.67 15.87 15.97 16.14 NA [7,] 15.07 15.18 15.68 15.87 15.97 16.14 NA [8,] 15.08 15.18 15.73 15.88 16.00 16.14 NA [9,] 15.09 15.19 15.74 15.88 16.02 16.15 NA [10,] 15.09 15.19 15.79 15.88 16.05 16.15 NA [11,] 15.09 15.20 15.80 15.88 16.07 16.18 NA [12,] 15.12 15.21 15.81 15.90 16.08 16.18 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.03 0.02 0.07 0.02 0.01 0.00 0.06 [2,] 0.02 0.00 0.14 0.00 0.02 0.03 NA [3,] 0.08 0.01 0.01 0.01 0.02 0.01 NA [4,] 0.01 0.01 0.19 0.01 0.00 0.00 NA [5,] 0.01 0.00 0.02 0.01 0.01 0.02 NA [6,] 0.00 0.01 0.01 0.00 0.00 0.00 NA [7,] 0.01 0.00 0.05 0.01 0.03 0.00 NA [8,] 0.01 0.01 0.01 0.00 0.02 0.01 NA [9,] 0.00 0.00 0.05 0.00 0.03 0.00 NA [10,] 0.00 0.01 0.01 0.00 0.02 0.03 NA [11,] 0.03 0.01 0.01 0.02 0.01 0.00 NA [12,] 0.01 0.03 0.01 0.01 0.00 0.01 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/12mwj1319650806.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/23mqk1319650806.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/3877m1319650806.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/4f8571319650806.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] [1,] 14.920 14.95 14.970 15.050 15.060 15.07 15.070 15.080 15.09 15.090 15.09 [2,] 15.185 15.23 15.150 15.160 15.170 15.17 15.180 15.180 15.19 15.190 15.20 [3,] 15.820 15.84 15.645 15.655 15.755 15.77 15.775 15.805 15.81 15.835 15.84 [4,] 15.995 16.00 15.940 15.960 15.960 15.97 15.970 16.000 16.02 16.050 16.07 [5,] 16.190 16.25 16.110 16.120 16.120 16.14 16.140 16.140 16.15 16.150 16.18 [,12] [1,] 15.120 [2,] 15.210 [3,] 15.855 [4,] 16.080 [5,] 16.180 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.33628 15.38017 15.13542 15.13897 15.24542 15.25397 15.26542 15.27607 [2,] 16.30372 16.29983 16.15458 16.17103 16.26458 16.28603 16.28458 16.33393 [,9] [,10] [,11] [,12] [1,] 15.27462 15.28027 15.27882 15.29382 [2,] 16.34538 16.38973 16.40118 16.41618 $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(14.92, 15.185, 15.82, 15.995, 16.19, 14.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/53ali1319650806.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.000 0.00 0.01 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.01 [2,] 0.015 0.00 0.01 0.00 0.01 0.00 0.00 0.01 0.00 0.00 0.01 0.01 [3,] 0.020 0.02 0.01 0.01 0.01 0.00 0.01 0.01 0.00 0.01 0.01 0.01 [4,] 0.045 0.03 0.02 0.01 0.02 0.01 0.03 0.01 0.03 0.02 0.02 0.01 [5,] 0.070 0.03 0.02 0.01 0.02 0.01 0.05 0.01 0.05 0.03 0.03 0.01 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.002084484 0.000649031 0.003549677 0.003549677 0.003549677 -0.006450323 [2,] 0.037915516 0.039350969 0.016450323 0.016450323 0.016450323 0.006450323 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.009350969 0.01 -0.01935097 -0.002900646 0.003549677 0.01 [2,] 0.029350969 0.01 0.01935097 0.022900646 0.016450323 0.01 $out [1] 0.14 0.08 0.19 0.00 0.02 0.03 0.00 $group [1] 2 3 4 8 8 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.0149999999999997, 0.0199999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6wnfy1319650806.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] [1,] 14.92 15.130 15.240 15.820 15.910 16.080 16.19 [2,] 15.01 15.155 15.455 15.845 15.950 16.115 16.19 [3,] 15.07 15.175 15.675 15.870 15.970 16.140 16.22 [4,] 15.09 15.190 15.765 15.880 16.035 16.150 16.25 [5,] 15.12 15.210 15.810 15.900 16.080 16.180 16.25 $n [1] 12 12 12 12 12 12 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.03351 15.15904 15.53361 15.85404 15.93123 16.12404 16.15297 [2,] 15.10649 15.19096 15.81639 15.88596 16.00877 16.15596 16.28703 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(14.92, 15.01, 15.07, 15.09, 15.12, 15.13, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7qfub1319650806.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,] 15.57667 15.6550 15.57000 [2,] 15.62476 15.7625 15.60125 [3,] 15.65000 15.8075 15.62250 [4,] 15.68500 15.8375 15.66500 [5,] 15.71667 15.8550 15.69750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.62253 15.77329 15.59342 [2,] 15.67747 15.84171 15.65158 $out [1] 15.645 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15.5766666666667, 15.6247619047619, 15.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/12mwj1319650806.ps tmp/12mwj1319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/23mqk1319650806.ps tmp/23mqk1319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/3877m1319650806.ps tmp/3877m1319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/4f8571319650806.ps tmp/4f8571319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/53ali1319650806.ps tmp/53ali1319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/6wnfy1319650806.ps tmp/6wnfy1319650806.png",intern=TRUE)) character(0) > try(system("convert tmp/7qfub1319650806.ps tmp/7qfub1319650806.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.727 0.357 2.099