R version 2.6.2 (2008-02-08) Copyright (C) 2008 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(65.05,65.84,66.6,67.55,68.07,69.06,69.06,69.11,69.29,69.38,69.28,69.75,69.9,70.21,70.48,71.55,72.18,72.64,72.77,72.74,73.13,73.44,73.34,73.34,73.81,74.26,74.72,75.11,75.26,75.89,75.91,76.43,76.56,76.76,76.76,76.56,76.82,77.09,77.51,77.76,77.86,77.89,77.94,77.99,78.17,78.91,78.87,78.88,79.08,79.41,79.51,79.73,80.38,80.56,80.46,80.45,80.58,80.68,80.52,81.49,81.66,81.95,82.3,82.4,83.14,83.17,83.11,83.21,83.33,83.88,83.8,83.73) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 65.05 69.90 73.81 76.82 79.08 81.66 NA [2,] 65.84 70.21 74.26 77.09 79.41 81.95 NA [3,] 66.60 70.48 74.72 77.51 79.51 82.30 NA [4,] 67.55 71.55 75.11 77.76 79.73 82.40 NA [5,] 68.07 72.18 75.26 77.86 80.38 83.14 NA [6,] 69.06 72.64 75.89 77.89 80.56 83.17 NA [7,] 69.06 72.77 75.91 77.94 80.46 83.11 NA [8,] 69.11 72.74 76.43 77.99 80.45 83.21 NA [9,] 69.29 73.13 76.56 78.17 80.58 83.33 NA [10,] 69.38 73.44 76.76 78.91 80.68 83.88 NA [11,] 69.28 73.34 76.76 78.87 80.52 83.80 NA [12,] 69.75 73.34 76.56 78.88 81.49 83.73 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.79 0.31 0.45 0.27 0.33 0.29 NA [2,] 0.76 0.27 0.46 0.42 0.10 0.35 NA [3,] 0.95 1.07 0.39 0.25 0.22 0.10 NA [4,] 0.52 0.63 0.15 0.10 0.65 0.74 NA [5,] 0.99 0.46 0.63 0.03 0.18 0.03 NA [6,] 0.00 0.13 0.02 0.05 -0.10 -0.06 NA [7,] 0.05 -0.03 0.52 0.05 -0.01 0.10 NA [8,] 0.18 0.39 0.13 0.18 0.13 0.12 NA [9,] 0.09 0.31 0.20 0.74 0.10 0.55 NA [10,] -0.10 -0.10 0.00 -0.04 -0.16 -0.08 NA [11,] 0.47 0.00 -0.20 0.01 0.97 -0.07 NA [12,] 0.15 0.47 0.26 0.20 0.17 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/17m1v1209226156.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/2zdd71209226156.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/341vv1209226156.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/4iwni1209226156.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,] 65.050 65.840 66.600 67.550 68.07 69.06 69.060 69.11 69.290 69.380 69.280 [2,] 69.900 70.210 70.480 71.550 72.18 72.64 72.770 72.74 73.130 73.440 73.340 [3,] 75.315 75.675 76.115 76.435 76.56 76.89 76.925 77.21 77.365 77.835 77.815 [4,] 79.080 79.410 79.510 79.730 80.38 80.56 80.460 80.45 80.580 80.680 80.520 [5,] 81.660 81.950 82.300 82.400 83.14 83.17 83.110 83.21 83.330 83.880 83.800 [,12] [1,] 69.75 [2,] 73.34 [3,] 77.72 [4,] 81.49 [5,] 83.73 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 69.3936 69.7407 70.29036 71.15864 71.27074 71.78134 71.9647 72.2368 [2,] 81.2364 81.6093 81.93964 81.71136 81.84926 81.99866 81.8853 82.1832 [,9] [,10] [,11] [,12] [1,] 72.55951 73.16497 73.18367 72.46299 [2,] 82.17049 82.50503 82.44633 82.97701 $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(65.05, 69.9, 75.315, 79.08, 81.66, 65.84, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mg7r1209226156.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] [,12] [1,] 0.27 0.100 0.10 0.100 0.03 -0.10 -0.03 0.120 0.090 -0.16 -0.200 0.15 [2,] 0.29 0.270 0.22 0.150 0.03 -0.06 -0.01 0.130 0.100 -0.10 -0.070 0.17 [3,] 0.32 0.385 0.32 0.575 0.32 0.01 0.05 0.155 0.255 -0.09 0.005 0.20 [4,] 0.45 0.460 0.95 0.650 0.63 0.05 0.10 0.180 0.550 -0.04 0.470 0.26 [5,] 0.45 0.460 1.07 0.740 0.99 0.13 0.10 0.180 0.740 0.00 0.970 0.26 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.2167948 0.2624439 -0.1508736 0.2524839 -0.06701938 -0.06095355 [2,] 0.4232052 0.5075561 0.7908736 0.8975161 0.70701938 0.08095355 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02095355 0.1227484 -0.03526453 -0.12870194 -0.3433174 0.1364062 [2,] 0.12095355 0.1872516 0.54526453 -0.05129806 0.3533174 0.2635938 $out [1] 0.79 0.76 0.52 0.39 0.47 $group [1] 1 2 7 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.27000000000001, 0.290000000000006, 0.319999999999993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64mtq1209226156.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] [1,] 65.050 69.900 73.810 76.820 79.080 81.660 NA [2,] 67.075 71.015 74.915 77.635 79.620 82.350 NA [3,] 69.060 72.690 75.900 77.915 80.455 83.155 NA [4,] 69.285 73.235 76.560 78.520 80.570 83.530 NA [5,] 69.750 73.440 76.760 78.910 81.490 83.880 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 68.052 71.67744 75.1497 77.51135 80.0217 82.6168 NA [2,] 70.068 73.70256 76.6503 78.31865 80.8883 83.6932 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(65.05, 67.075, 69.06, 69.285, 69.75, 69.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7jv981209226156.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,] 74.38667 75.3150 74.69625 [2,] 75.43500 76.2750 75.55688 [3,] 76.53833 76.9075 76.68250 [4,] 76.96917 77.5425 77.06688 [5,] 77.29167 77.8350 77.49125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 75.83859 76.32938 75.99378 [2,] 77.23808 77.48562 77.37122 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(74.3866666666667, 75.435, 76.5383333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17m1v1209226156.ps tmp/17m1v1209226156.png") > system("convert tmp/2zdd71209226156.ps tmp/2zdd71209226156.png") > system("convert tmp/341vv1209226156.ps tmp/341vv1209226156.png") > system("convert tmp/4iwni1209226156.ps tmp/4iwni1209226156.png") > system("convert tmp/5mg7r1209226156.ps tmp/5mg7r1209226156.png") > system("convert tmp/64mtq1209226156.ps tmp/64mtq1209226156.png") > system("convert tmp/7jv981209226156.ps tmp/7jv981209226156.png") > > > proc.time() user system elapsed 1.478 0.982 3.469