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(15.22,15.27,15.31,15.33,15.42,15.49,15.65,15.67,15.69,15.83,15.92,15.99,15.94,15.96,16.03,16.09,16.04,16.23,16.2,16.2,16.26,16.28,16.27,16.29,16.3,16.37,16.39,16.42,16.43,16.37,16.37,16.39,16.48,16.51,16.5,16.54,16.52,16.56,16.61,16.75,16.75,16.79,16.82,16.84,17.14,17.25,17.28,17.3,17.34,17.44,17.48,17.55,17.59,17.66,17.67,17.64,17.68,17.72,17.78,17.83,17.88,18.11,18.16,18.27,18.29,18.35,18.35,18.38,18.41,18.41,18.42,18.43,18.48,18.54,18.65,18.66,18.69,18.72,18.72,18.73,18.84,18.83,18.91,18.91,18.94,18.97,19,19.08,19.18,19.24,19.23,19.25,19.3,19.33,19.35,19.35,19.31,19.47,19.7,19.76,19.9,19.97,20.1,20.26,20.44,20.43,20.57,20.6,20.69,20.93,20.98,21.11,21.14,21.16,21.32,21.32,21.48,21.58,21.74,21.75,21.81,21.89,22.21,22.37,22.47,22.51,22.55,22.61,22.58,22.85,22.93,22.98) > 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,] 15.22 15.94 16.30 16.52 17.34 17.88 18.48 18.94 19.31 20.69 21.81 NA [2,] 15.27 15.96 16.37 16.56 17.44 18.11 18.54 18.97 19.47 20.93 21.89 NA [3,] 15.31 16.03 16.39 16.61 17.48 18.16 18.65 19.00 19.70 20.98 22.21 NA [4,] 15.33 16.09 16.42 16.75 17.55 18.27 18.66 19.08 19.76 21.11 22.37 NA [5,] 15.42 16.04 16.43 16.75 17.59 18.29 18.69 19.18 19.90 21.14 22.47 NA [6,] 15.49 16.23 16.37 16.79 17.66 18.35 18.72 19.24 19.97 21.16 22.51 NA [7,] 15.65 16.20 16.37 16.82 17.67 18.35 18.72 19.23 20.10 21.32 22.55 NA [8,] 15.67 16.20 16.39 16.84 17.64 18.38 18.73 19.25 20.26 21.32 22.61 NA [9,] 15.69 16.26 16.48 17.14 17.68 18.41 18.84 19.30 20.44 21.48 22.58 NA [10,] 15.83 16.28 16.51 17.25 17.72 18.41 18.83 19.33 20.43 21.58 22.85 NA [11,] 15.92 16.27 16.50 17.28 17.78 18.42 18.91 19.35 20.57 21.74 22.93 NA [12,] 15.99 16.29 16.54 17.30 17.83 18.43 18.91 19.35 20.60 21.75 22.98 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.05 0.02 0.07 0.04 0.10 0.23 0.06 0.03 0.16 0.24 0.08 NA [2,] 0.04 0.07 0.02 0.05 0.04 0.05 0.11 0.03 0.23 0.05 0.32 NA [3,] 0.02 0.06 0.03 0.14 0.07 0.11 0.01 0.08 0.06 0.13 0.16 NA [4,] 0.09 -0.05 0.01 0.00 0.04 0.02 0.03 0.10 0.14 0.03 0.10 NA [5,] 0.07 0.19 -0.06 0.04 0.07 0.06 0.03 0.06 0.07 0.02 0.04 NA [6,] 0.16 -0.03 0.00 0.03 0.01 0.00 0.00 -0.01 0.13 0.16 0.04 NA [7,] 0.02 0.00 0.02 0.02 -0.03 0.03 0.01 0.02 0.16 0.00 0.06 NA [8,] 0.02 0.06 0.09 0.30 0.04 0.03 0.11 0.05 0.18 0.16 -0.03 NA [9,] 0.14 0.02 0.03 0.11 0.04 0.00 -0.01 0.03 -0.01 0.10 0.27 NA [10,] 0.09 -0.01 -0.01 0.03 0.06 0.01 0.08 0.02 0.14 0.16 0.08 NA [11,] 0.07 0.02 0.04 0.02 0.05 0.01 0.00 0.00 0.03 0.01 0.05 NA [12,] -0.05 0.01 -0.02 0.04 0.05 0.05 0.03 -0.04 0.09 0.06 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/1dj221250536502.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/2k2rv1250536502.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/3aiyz1250536502.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/4ucjq1250536502.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] [1,] 15.220 15.270 15.31 15.330 15.42 15.490 15.650 15.670 15.69 15.83 15.92 [2,] 16.410 16.465 16.50 16.585 16.59 16.580 16.595 16.615 16.81 16.88 16.89 [3,] 17.880 18.110 18.16 18.270 18.29 18.350 18.350 18.380 18.41 18.41 18.42 [4,] 19.125 19.220 19.35 19.420 19.54 19.605 19.665 19.755 19.87 19.88 19.96 [5,] 21.810 21.890 22.21 22.370 22.47 22.510 22.550 22.610 22.58 22.85 22.93 [,12] [1,] 15.990 [2,] 16.920 [3,] 18.430 [4,] 19.975 [5,] 22.980 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16.58661 16.79755 16.80229 16.91944 16.88466 16.90893 16.88749 16.88414 [2,] 19.17339 19.42245 19.51771 19.62056 19.69534 19.79107 19.81251 19.87586 [,9] [,10] [,11] [,12] [1,] 16.95225 16.98084 16.95749 16.97463 [2,] 19.86775 19.83916 19.88251 19.88537 $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(15.22, 16.41, 17.88, 19.125, 21.81, 15.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wh4q1250536502.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.020 0.02 0.010 -0.050 0.020 -0.030 0.000 -0.030 -0.010 -0.010 0.000 [2,] 0.045 0.04 0.045 0.015 0.035 0.000 0.005 0.035 0.010 0.015 0.010 [3,] 0.070 0.05 0.070 0.030 0.060 0.010 0.020 0.060 0.030 0.060 0.020 [4,] 0.130 0.09 0.120 0.095 0.070 0.085 0.025 0.135 0.105 0.085 0.045 [5,] 0.240 0.11 0.160 0.140 0.070 0.160 0.030 0.180 0.140 0.160 0.070 [,12] [1,] -0.050 [2,] -0.020 [3,] 0.035 [4,] 0.050 [5,] 0.090 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.02950703 0.02618060 0.03427091 -0.008111034 0.04332642 -0.03049297 [2,] 0.11049297 0.07381940 0.10572909 0.068111034 0.07667358 0.05049297 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01047224 0.01236121 -0.01525685 0.02665285 0.003326423 2.520908e-05 [2,] 0.02952776 0.10763879 0.07525685 0.09334715 0.036673577 6.997479e-02 $out [1] 0.23 0.32 0.19 -0.06 -0.03 0.16 0.06 0.30 0.27 $group [1] 2 2 5 5 7 7 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0200000000000014, 0.044999999999999, 0.0700000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sz3h1250536502.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,] 15.22 15.940 16.300 16.520 17.340 18.110 18.480 18.940 19.310 20.690 21.81 [2,] 15.32 16.035 16.370 16.680 17.515 18.215 18.655 19.040 19.730 21.045 22.29 [3,] 15.57 16.200 16.405 16.805 17.650 18.350 18.720 19.235 20.035 21.240 22.53 [4,] 15.76 16.265 16.490 17.195 17.700 18.410 18.835 19.315 20.435 21.530 22.73 [5,] 15.99 16.290 16.540 17.300 17.830 18.430 18.910 19.350 20.600 21.750 22.98 [,12] [1,] NA [2,] NA [3,] NA [4,] NA [5,] 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,] 15.36931 16.09510 16.35027 16.57011 17.56562 18.26106 18.6379 19.10957 [2,] 15.77069 16.30490 16.45973 17.03989 17.73438 18.43894 18.8021 19.36043 [,9] [,10] [,11] [,12] [1,] 19.71344 21.01879 22.32931 NA [2,] 20.35656 21.46121 22.73069 NA $out [1] 17.88 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(15.22, 15.32, 15.57, 15.76, 15.99, 15.94, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7byb41250536502.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,] 18.03909 18.110 17.76750 [2,] 18.26864 18.215 17.96375 [3,] 18.43045 18.350 18.11125 [4,] 18.60545 18.410 18.36000 [5,] 18.72455 18.430 18.44750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18.27683 18.26106 17.93052 [2,] 18.58408 18.43894 18.29198 $out [1] 17.88 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(18.0390909090909, 18.2686363636364, 18.4304545454545, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dj221250536502.ps tmp/1dj221250536502.png") > system("convert tmp/2k2rv1250536502.ps tmp/2k2rv1250536502.png") > system("convert tmp/3aiyz1250536502.ps tmp/3aiyz1250536502.png") > system("convert tmp/4ucjq1250536502.ps tmp/4ucjq1250536502.png") > system("convert tmp/5wh4q1250536502.ps tmp/5wh4q1250536502.png") > system("convert tmp/6sz3h1250536502.ps tmp/6sz3h1250536502.png") > system("convert tmp/7byb41250536502.ps tmp/7byb41250536502.png") > > > proc.time() user system elapsed 1.279 0.994 2.597