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(5.2100,5.2300,5.2300,5.2300,5.2200,5.2100,5.2300,5.2500,5.2300,5.2300,5.2500,5.2400,5.2600,5.2700,5.2600,5.2900,5.2900,5.2900,5.2900,5.3100,5.3300,5.3400,5.3400,5.3700,5.4100,5.4100,5.3800,5.4400,5.4400,5.4600,5.4600,5.4500,5.4600,5.4600,5.4800,5.4700,5.4800,5.5100,5.5500,5.5800,5.5900,5.6000,5.6000,5.6700,5.7100,5.7000,5.7300,5.7200,5.7500,5.7500,5.7700,5.8300,5.8500,5.8700,5.8600,5.8700,5.9300,5.9700,5.9800,5.9900,5.9900,6.0300,6.0600,6.0700,6.0800,6.0800,6.1000,6.1300,6.1400,6.1400,6.1600,6.2000,6.1900,6.3200,6.3200,6.3300,6.3200,6.3300,6.3800,6.4200,6.4600,6.4700,6.4200,6.4800,6.4700,6.4900,6.4800,6.5100,6.5100,6.5200,6.5700,6.5900,6.6200,6.6300,6.6100,6.6400,6.6900,6.6900,6.7500,6.7700,6.8100,6.8100,6.8100,6.8700,6.8600,6.8800,6.8800,6.9200,6.9200,6.9900,7.0200,7.0500,7.0600,7.0600,7.0900,7.1200,7.2300,7.3100,7.4500,7.4900,7.5400,7.5500,7.5800,7.6000,7.6300,7.6400,7.6300,7.6600,7.6400,7.6900,7.7000,7.6800) > 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,] 5.21 5.26 5.41 5.48 5.75 5.99 6.19 6.47 6.69 6.92 7.54 NA [2,] 5.23 5.27 5.41 5.51 5.75 6.03 6.32 6.49 6.69 6.99 7.55 NA [3,] 5.23 5.26 5.38 5.55 5.77 6.06 6.32 6.48 6.75 7.02 7.58 NA [4,] 5.23 5.29 5.44 5.58 5.83 6.07 6.33 6.51 6.77 7.05 7.60 NA [5,] 5.22 5.29 5.44 5.59 5.85 6.08 6.32 6.51 6.81 7.06 7.63 NA [6,] 5.21 5.29 5.46 5.60 5.87 6.08 6.33 6.52 6.81 7.06 7.64 NA [7,] 5.23 5.29 5.46 5.60 5.86 6.10 6.38 6.57 6.81 7.09 7.63 NA [8,] 5.25 5.31 5.45 5.67 5.87 6.13 6.42 6.59 6.87 7.12 7.66 NA [9,] 5.23 5.33 5.46 5.71 5.93 6.14 6.46 6.62 6.86 7.23 7.64 NA [10,] 5.23 5.34 5.46 5.70 5.97 6.14 6.47 6.63 6.88 7.31 7.69 NA [11,] 5.25 5.34 5.48 5.73 5.98 6.16 6.42 6.61 6.88 7.45 7.70 NA [12,] 5.24 5.37 5.47 5.72 5.99 6.20 6.48 6.64 6.92 7.49 7.68 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.02 0.01 0.00 0.03 0.00 0.04 0.13 0.02 0.00 0.07 0.01 NA [2,] 0.00 -0.01 -0.03 0.04 0.02 0.03 0.00 -0.01 0.06 0.03 0.03 NA [3,] 0.00 0.03 0.06 0.03 0.06 0.01 0.01 0.03 0.02 0.03 0.02 NA [4,] -0.01 0.00 0.00 0.01 0.02 0.01 -0.01 0.00 0.04 0.01 0.03 NA [5,] -0.01 0.00 0.02 0.01 0.02 0.00 0.01 0.01 0.00 0.00 0.01 NA [6,] 0.02 0.00 0.00 0.00 -0.01 0.02 0.05 0.05 0.00 0.03 -0.01 NA [7,] 0.02 0.02 -0.01 0.07 0.01 0.03 0.04 0.02 0.06 0.03 0.03 NA [8,] -0.02 0.02 0.01 0.04 0.06 0.01 0.04 0.03 -0.01 0.11 -0.02 NA [9,] 0.00 0.01 0.00 -0.01 0.04 0.00 0.01 0.01 0.02 0.08 0.05 NA [10,] 0.02 0.00 0.02 0.03 0.01 0.02 -0.05 -0.02 0.00 0.14 0.01 NA [11,] -0.01 0.03 -0.01 -0.01 0.01 0.04 0.06 0.03 0.04 0.04 -0.02 NA [12,] 0.02 0.04 0.01 0.03 0.00 -0.01 -0.01 0.05 0.00 0.05 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/181qi1259791177.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/2m8or1259791177.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/33n7h1259791177.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/4669l1259791177.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,] 5.210 5.23 5.230 5.23 5.220 5.210 5.23 5.25 5.230 5.230 5.250 5.240 [2,] 5.445 5.46 5.465 5.51 5.515 5.530 5.53 5.56 5.585 5.580 5.605 5.595 [3,] 5.990 6.03 6.060 6.07 6.080 6.080 6.10 6.13 6.140 6.140 6.160 6.200 [4,] 6.580 6.59 6.615 6.64 6.660 6.665 6.69 6.73 6.740 6.755 6.745 6.780 [5,] 7.540 7.55 7.580 7.60 7.630 7.640 7.63 7.66 7.640 7.690 7.700 7.680 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.4493 5.491682 5.512154 5.531682 5.534536 5.5393 5.54739 5.572626 [2,] 6.5307 6.568318 6.607846 6.608318 6.625464 6.6207 6.65261 6.687374 [,9] [,10] [,11] [,12] [1,] 5.589772 5.580244 5.616918 5.63548 [2,] 6.690228 6.699756 6.703082 6.76452 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58igq1259791177.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] [1,] 0.000 -0.030 0.000 -0.010 -0.01 -0.010 0.010 -0.02 -0.01 -0.02 -0.02 [2,] 0.005 -0.005 0.015 0.000 0.00 0.000 0.020 0.00 0.00 0.00 -0.01 [3,] 0.020 0.020 0.030 0.010 0.01 0.000 0.030 0.02 0.01 0.01 0.03 [4,] 0.035 0.030 0.030 0.015 0.01 0.025 0.035 0.04 0.03 0.02 0.04 [5,] 0.070 0.060 0.030 0.030 0.02 0.050 0.040 0.06 0.05 0.03 0.06 [,12] [1,] -0.010 [2,] 0.000 [3,] 0.015 [4,] 0.040 [5,] 0.050 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.005708362 0.003326423 0.02285418 0.002854181 0.005236121 -0.01190970 [2,] 0.034291638 0.036673577 0.03714582 0.017145819 0.014763879 0.01190970 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.02285418 0.000944483 -0.004291638 0.0004722415 0.006180604 -0.004985595 [2,] 0.03714582 0.039055517 0.024291638 0.0195277585 0.053819396 0.034985595 $out [1] 0.13 0.06 0.06 0.04 -0.01 0.07 0.06 0.11 0.08 -0.05 0.14 $group [1] 1 3 3 4 7 7 7 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.00499999999999989, 0.0200000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sukl1259791177.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,] 5.210 5.260 5.380 5.480 5.750 5.990 6.190 6.470 6.690 6.920 7.540 NA [2,] 5.225 5.280 5.425 5.565 5.800 6.065 6.320 6.500 6.760 7.035 7.590 NA [3,] 5.230 5.290 5.455 5.600 5.865 6.090 6.355 6.545 6.810 7.075 7.635 NA [4,] 5.235 5.335 5.460 5.705 5.950 6.140 6.440 6.615 6.875 7.270 7.670 NA [5,] 5.250 5.370 5.480 5.730 5.990 6.200 6.480 6.640 6.920 7.490 7.700 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.225439 5.264914 5.439036 5.536145 5.796584 6.055792 6.300267 6.492548 [2,] 5.234561 5.315086 5.470964 5.663855 5.933416 6.124208 6.409733 6.597452 [,9] [,10] [,11] [,12] [1,] 6.757548 6.967815 7.598511 NA [2,] 6.862452 7.182185 7.671489 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(5.21, 5.225, 5.23, 5.235, 5.25, 5.26, 5.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74gy31259791177.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,] 6.082727 5.990 6.01250 [2,] 6.140909 6.065 6.05750 [3,] 6.176818 6.090 6.10375 [4,] 6.246818 6.140 6.16500 [5,] 6.290909 6.200 6.18750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.128512 6.055792 6.054719 [2,] 6.225124 6.124208 6.152781 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.08272727272727, 6.14090909090909, 6.17681818181818, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/181qi1259791177.ps tmp/181qi1259791177.png") > system("convert tmp/2m8or1259791177.ps tmp/2m8or1259791177.png") > system("convert tmp/33n7h1259791177.ps tmp/33n7h1259791177.png") > system("convert tmp/4669l1259791177.ps tmp/4669l1259791177.png") > system("convert tmp/58igq1259791177.ps tmp/58igq1259791177.png") > system("convert tmp/6sukl1259791177.ps tmp/6sukl1259791177.png") > system("convert tmp/74gy31259791177.ps tmp/74gy31259791177.png") > > > proc.time() user system elapsed 1.189 0.916 1.569