R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(10.47,10.44,10.41,10.37,10.38,10.38,10.37,10.41,10.44,10.43,10.47,10.49,10.53,10.63,10.66,10.66,10.64,10.65,10.61,10.6,10.61,10.63,10.63,10.61,10.7,10.69,10.62,10.62,10.63,10.62,10.53,10.51,10.5,10.52,10.47,10.43,10.35,10.31,10.25,10.26,10.2,10.13,10.06,10.01,9.95,9.92,9.87,9.83,9.7,9.63,9.56,9.53,9.47,9.4,9.32,9.26,9.19,9.1,9.03,8.95,8.85,8.78,8.71,8.61,8.54,8.49,8.42,8.36,8.3,8.19,8.15,8.1,8.04,8.05,8.04,8,8.02,8,8,8.01,8.04,8.1,8.14,8.17,8.17,8.22,8.21,8.29,8.37,8.43,8.47,8.51,8.55,8.59,8.66,8.71,8.78,8.81,8.84,8.81,8.82,8.84,8.83,8.83,8.88,8.88,8.89,8.93,8.95,8.92,8.97,8.99,9.01,8.99,9.03,9.04,9.07,9.04,9.07,9.09,9.04,9.08,9.13,9.09,9.05,9.06,8.99,8.98,8.99,8.94,8.87,8.83,8.8,8.79,8.71,8.6,8.5,8.38,8.26,8.23,8.17,8.1,8.02,7.9,7.82,7.72,7.63,7.53,7.56,7.49,7.53,7.47,7.39,7.37,7.34,7.39,7.32,7.24,7.18,7.31,7.39,7.48,7.51,7.61,7.69,7.86,8.05,8.24,8.55,8.81,9.13,9.24,9.36,9.48,9.61,9.7,9.82,9.86,9.87,9.87) > 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] 180 > (np <- floor(n / par1)) [1] 15 > 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] 15 15 15 15 15 15 15 15 15 15 15 15 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 10.47 10.53 10.70 10.35 9.70 8.85 8.04 8.17 8.78 8.95 9.04 8.80 7.82 [2,] 10.44 10.63 10.69 10.31 9.63 8.78 8.05 8.22 8.81 8.92 9.08 8.79 7.72 [3,] 10.41 10.66 10.62 10.25 9.56 8.71 8.04 8.21 8.84 8.97 9.13 8.71 7.63 [4,] 10.37 10.66 10.62 10.26 9.53 8.61 8.00 8.29 8.81 8.99 9.09 8.60 7.53 [5,] 10.38 10.64 10.63 10.20 9.47 8.54 8.02 8.37 8.82 9.01 9.05 8.50 7.56 [6,] 10.38 10.65 10.62 10.13 9.40 8.49 8.00 8.43 8.84 8.99 9.06 8.38 7.49 [7,] 10.37 10.61 10.53 10.06 9.32 8.42 8.00 8.47 8.83 9.03 8.99 8.26 7.53 [8,] 10.41 10.60 10.51 10.01 9.26 8.36 8.01 8.51 8.83 9.04 8.98 8.23 7.47 [9,] 10.44 10.61 10.50 9.95 9.19 8.30 8.04 8.55 8.88 9.07 8.99 8.17 7.39 [10,] 10.43 10.63 10.52 9.92 9.10 8.19 8.10 8.59 8.88 9.04 8.94 8.10 7.37 [11,] 10.47 10.63 10.47 9.87 9.03 8.15 8.14 8.66 8.89 9.07 8.87 8.02 7.34 [12,] 10.49 10.61 10.43 9.83 8.95 8.10 8.17 8.71 8.93 9.09 8.83 7.90 7.39 [,14] [,15] [,16] [1,] 7.32 8.55 NA [2,] 7.24 8.81 NA [3,] 7.18 9.13 NA [4,] 7.31 9.24 NA [5,] 7.39 9.36 NA [6,] 7.48 9.48 NA [7,] 7.51 9.61 NA [8,] 7.61 9.70 NA [9,] 7.69 9.82 NA [10,] 7.86 9.86 NA [11,] 8.05 9.87 NA [12,] 8.24 9.87 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.03 0.10 -0.01 -0.04 -0.07 -0.07 0.01 0.05 0.03 -0.03 0.04 -0.01 [2,] -0.03 0.03 -0.07 -0.06 -0.07 -0.07 -0.01 -0.01 0.03 0.05 0.05 -0.08 [3,] -0.04 0.00 0.00 0.01 -0.03 -0.10 -0.04 0.08 -0.03 0.02 -0.04 -0.11 [4,] 0.01 -0.02 0.01 -0.06 -0.06 -0.07 0.02 0.08 0.01 0.02 -0.04 -0.10 [5,] 0.00 0.01 -0.01 -0.07 -0.07 -0.05 -0.02 0.06 0.02 -0.02 0.01 -0.12 [6,] -0.01 -0.04 -0.09 -0.07 -0.08 -0.07 0.00 0.04 -0.01 0.04 -0.07 -0.12 [7,] 0.04 -0.01 -0.02 -0.05 -0.06 -0.06 0.01 0.04 0.00 0.01 -0.01 -0.03 [8,] 0.03 0.01 -0.01 -0.06 -0.07 -0.06 0.03 0.04 0.05 0.03 0.01 -0.06 [9,] -0.01 0.02 0.02 -0.03 -0.09 -0.11 0.06 0.04 0.00 -0.03 -0.05 -0.07 [10,] 0.04 0.00 -0.05 -0.05 -0.07 -0.04 0.04 0.07 0.01 0.03 -0.07 -0.08 [11,] 0.02 -0.02 -0.04 -0.04 -0.08 -0.05 0.03 0.05 0.04 0.02 -0.04 -0.12 [12,] 0.04 0.09 -0.08 -0.13 -0.10 -0.06 0.00 0.07 0.02 -0.05 -0.03 -0.08 [,13] [,14] [,15] [,16] [1,] -0.10 -0.08 0.26 NA [2,] -0.09 -0.06 0.32 NA [3,] -0.10 0.13 0.11 NA [4,] 0.03 0.08 0.12 NA [5,] -0.07 0.09 0.12 NA [6,] 0.04 0.03 0.13 NA [7,] -0.06 0.10 0.09 NA [8,] -0.08 0.08 0.12 NA [9,] -0.02 0.17 0.04 NA [10,] -0.03 0.19 0.01 NA [11,] 0.05 0.19 0.00 NA [12,] -0.07 0.31 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/rcomp/tmp/1lck81289931249.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/rcomp/tmp/2lck81289931249.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/rcomp/tmp/3wl1t1289931249.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/rcomp/tmp/4wl1t1289931249.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] [1,] 7.320 7.24 7.180 7.310 7.390 7.480 7.510 7.470 7.390 7.370 [2,] 8.360 8.50 8.460 8.445 8.435 8.405 8.340 8.295 8.235 8.145 [3,] 8.850 8.81 8.970 8.990 9.010 8.990 8.990 8.980 8.990 8.940 [4,] 10.025 9.97 9.905 9.895 9.835 9.805 9.835 9.855 9.885 9.890 [5,] 10.700 10.69 10.660 10.660 10.640 10.650 10.610 10.600 10.610 10.630 [,11] [,12] [1,] 7.340 7.390 [2,] 8.145 8.205 [3,] 8.890 8.930 [4,] 9.870 9.850 [5,] 10.630 10.610 $n [1] 15 15 15 15 15 15 15 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8.170756 8.210307 8.380506 8.398466 8.438864 8.418864 8.380108 8.343591 [2,] 9.529244 9.409693 9.559494 9.581534 9.581136 9.561136 9.599892 9.616409 [,9] [,10] [,11] [,12] [1,] 8.316875 8.22812 8.186279 8.258915 [2,] 9.663125 9.65188 9.593721 9.601085 $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(7.32, 8.36, 8.85, 10.025, 10.7, 7.24, 8.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5wl1t1289931249.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.100 -0.09 -0.110 -0.100 -0.120 -0.120 -0.060 -0.080 -0.11 -0.080 -0.120 [2,] -0.055 -0.07 -0.040 -0.050 -0.060 -0.070 -0.040 -0.060 -0.04 -0.050 -0.040 [3,] -0.010 -0.03 -0.030 0.010 -0.010 -0.010 -0.010 0.010 -0.01 0.000 0.000 [4,] 0.035 0.03 0.015 0.025 0.015 0.035 0.025 0.035 0.03 0.035 0.035 [5,] 0.100 0.05 0.080 0.120 0.120 0.130 0.100 0.120 0.06 0.070 0.050 [,12] [1,] -0.13 [2,] -0.08 [3,] -0.04 [4,] 0.04 [5,] 0.09 $n [1] 15 15 15 15 15 15 15 15 15 15 15 14 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.04671588 -0.07079542 -0.052437484 -0.02059657 -0.04059657 -0.05283520 [2,] 0.02671588 0.01079542 -0.007562516 0.04059657 0.02059657 0.03283520 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.03651703 -0.02875565 -0.03855680 -0.03467611 -0.03059657 -0.09067273 [2,] 0.01651703 0.04875565 0.01855680 0.03467611 0.03059657 0.01067273 $out [1] 0.26 0.32 0.13 0.11 0.17 0.19 0.19 0.31 $group [1] 1 2 3 3 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.100000000000001, -0.0549999999999988, -0.0100000000000016, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ocje1289931249.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] [1,] 10.370 10.600 10.430 9.830 8.950 8.100 8.000 8.170 8.780 8.920 8.830 [2,] 10.380 10.610 10.505 9.935 9.145 8.245 8.005 8.255 8.815 8.980 8.960 [3,] 10.420 10.630 10.575 10.095 9.360 8.455 8.040 8.450 8.835 9.020 9.015 [4,] 10.455 10.645 10.625 10.255 9.545 8.660 8.075 8.570 8.880 9.055 9.070 [5,] 10.490 10.660 10.700 10.350 9.700 8.850 8.170 8.710 8.930 9.090 9.130 [,12] [,13] [,14] [,15] [,16] [1,] 7.900 7.340 7.180 8.550 NA [2,] 8.135 7.390 7.315 9.185 NA [3,] 8.320 7.510 7.495 9.545 NA [4,] 8.655 7.595 7.775 9.840 NA [5,] 8.800 7.820 8.240 9.870 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.38579 10.61404 10.52027 9.949046 9.177557 8.265716 8.008073 8.306326 [2,] 10.45421 10.64596 10.62973 10.240954 9.542443 8.644284 8.071927 8.593674 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 8.805353 8.985792 8.964828 8.082825 7.416498 7.285191 9.24625 NA [2,] 8.864647 9.054208 9.065172 8.557175 7.603502 7.704809 9.84375 NA $out [1] 10.53 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] NA Warning message: In bxp(list(stats = c(10.37, 10.38, 10.42, 10.455, 10.49, 10.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ocje1289931249.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,] 9.035333 8.810 9.00750 [2,] 9.035667 8.910 9.04375 [3,] 9.047000 8.975 9.09625 [4,] 9.066333 8.990 9.17625 [5,] 9.074667 9.010 9.23500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 9.033013 8.938511 9.035816 [2,] 9.060987 9.011489 9.156684 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(9.03533333333333, 9.03566666666667, 9.047, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lck81289931249.ps tmp/1lck81289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/2lck81289931249.ps tmp/2lck81289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/3wl1t1289931249.ps tmp/3wl1t1289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/4wl1t1289931249.ps tmp/4wl1t1289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/5wl1t1289931249.ps tmp/5wl1t1289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/6ocje1289931249.ps tmp/6ocje1289931249.png",intern=TRUE)) character(0) > try(system("convert tmp/7ocje1289931249.ps tmp/7ocje1289931249.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.860 1.410 3.284