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(77.5,77.7,76.6,77,76.5,77.6,77.8,76.9,76.9,77,77,76.3,76.5,77.1,76.4,75.4,75.4,75.5,75.5,75.8,75.7,75.9,76.1,76,76,75.89,74.87,74.9,74.79,74.64,74.09,74.33,73.93,73.78,72.85,71.51,71.5,71.5,71.31,70.85,70.62,70.07,68.83,68.82,68.4,68.21,67.75,67.7,67.42,66.27,64.8,62.69,62.75,62.31,62.4,61.75,61.69,60.39,59.9,59.62,58.97,58.54,58.32,56.03,53.63,53.61,53.48,53.48,52.81,52.8,52.57,52.36) > 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,] 77.5 76.5 76.00 71.50 67.42 58.97 NA [2,] 77.7 77.1 75.89 71.50 66.27 58.54 NA [3,] 76.6 76.4 74.87 71.31 64.80 58.32 NA [4,] 77.0 75.4 74.90 70.85 62.69 56.03 NA [5,] 76.5 75.4 74.79 70.62 62.75 53.63 NA [6,] 77.6 75.5 74.64 70.07 62.31 53.61 NA [7,] 77.8 75.5 74.09 68.83 62.40 53.48 NA [8,] 76.9 75.8 74.33 68.82 61.75 53.48 NA [9,] 76.9 75.7 73.93 68.40 61.69 52.81 NA [10,] 77.0 75.9 73.78 68.21 60.39 52.80 NA [11,] 77.0 76.1 72.85 67.75 59.90 52.57 NA [12,] 76.3 76.0 71.51 67.70 59.62 52.36 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.2 0.6 -0.11 0.00 -1.15 -0.43 NA [2,] -1.1 -0.7 -1.02 -0.19 -1.47 -0.22 NA [3,] 0.4 -1.0 0.03 -0.46 -2.11 -2.29 NA [4,] -0.5 0.0 -0.11 -0.23 0.06 -2.40 NA [5,] 1.1 0.1 -0.15 -0.55 -0.44 -0.02 NA [6,] 0.2 0.0 -0.55 -1.24 0.09 -0.13 NA [7,] -0.9 0.3 0.24 -0.01 -0.65 0.00 NA [8,] 0.0 -0.1 -0.40 -0.42 -0.06 -0.67 NA [9,] 0.1 0.2 -0.15 -0.19 -1.30 -0.01 NA [10,] 0.0 0.2 -0.93 -0.46 -0.49 -0.23 NA [11,] -0.7 -0.1 -1.34 -0.05 -0.28 -0.21 NA [12,] 0.2 0.0 -0.01 -0.28 -0.65 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/1zeyf1208968502.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/2di4f1208968502.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/3r29h1208968502.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/45aen1208968502.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,] 58.97 58.540 58.32 56.030 53.630 53.610 53.48 53.480 52.810 52.800 52.57 [2,] 67.42 66.270 64.80 62.690 62.750 62.310 62.40 61.750 61.690 60.390 59.90 [3,] 73.75 73.695 73.09 72.875 72.705 72.355 71.46 71.575 71.165 70.995 70.30 [4,] 76.50 77.100 76.40 75.400 75.400 75.500 75.50 75.800 75.700 75.900 76.10 [5,] 77.50 77.700 76.60 77.000 76.500 77.600 77.80 76.900 76.900 77.000 77.00 [,12] [1,] 52.360 [2,] 59.620 [3,] 69.605 [4,] 76.000 [5,] 76.300 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 67.8931 66.7093 65.60763 64.67664 64.54534 63.84702 63.01008 62.5123 [2,] 79.6069 80.6807 80.57237 81.07336 80.86466 80.86298 79.90992 80.6377 [,9] [,10] [,11] [,12] [1,] 62.1281 60.99055 59.85048 59.03937 [2,] 80.2019 80.99945 80.74952 80.17063 $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(58.97, 67.42, 73.75, 76.5, 77.5, 58.54, 66.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qfoo1208968502.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,] -1.150 -1.47 -2.29 -0.50 -0.550 -1.240 -0.900 -0.67 -0.19 -0.930 -1.340 [2,] -0.430 -1.10 -2.11 -0.50 -0.440 -0.550 -0.650 -0.42 -0.19 -0.490 -0.700 [3,] -0.055 -0.86 -0.73 -0.17 -0.085 -0.065 -0.005 -0.25 -0.08 -0.345 -0.245 [4,] 0.200 -0.22 0.03 0.00 0.100 0.090 0.240 -0.06 0.10 0.000 -0.100 [5,] 0.600 -0.19 0.40 0.06 0.100 0.200 0.300 0.00 0.20 0.200 -0.050 [,12] [1,] -0.65 [2,] -0.28 [3,] -0.01 [4,] 0.00 [5,] 0.20 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.4613703 -1.4276284 -2.1103691 -0.4925161 -0.4333174 -0.4778207 [2,] 0.3513703 -0.2923716 0.6503691 0.1525161 0.2633174 0.3478207 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.5790787 -0.48221163 -0.2670594 -0.66106583 -0.6320194 -0.2078473 [2,] 0.5690787 -0.01778837 0.1070594 -0.02893417 0.1420194 0.1878473 $out [1] -2.4 1.1 -1.3 $group [1] 4 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.15000000000001, -0.43, -0.0549999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yul91208968502.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,] 76.30 75.40 72.850 67.700 59.620 52.360 NA [2,] 76.75 75.50 73.855 68.305 61.040 52.805 NA [3,] 77.00 75.85 74.485 69.450 62.355 53.545 NA [4,] 77.55 76.25 74.885 71.080 63.775 57.175 NA [5,] 77.80 77.10 76.000 71.500 67.420 58.970 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 76.63511 75.50792 74.01521 68.1843 61.10755 51.55181 NA [2,] 77.36489 76.19208 74.95479 70.7157 63.60245 55.53819 NA $out [1] 71.51 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(76.3, 76.75, 77, 77.55, 77.8, 75.4, 75.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7u62o1208968502.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,] 67.24833 69.6050 68.25875 [2,] 68.12583 71.0800 69.08500 [3,] 68.81583 71.9650 69.67250 [4,] 69.93083 72.9825 70.61250 [5,] 71.31500 73.7500 72.40750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 67.99256 71.09726 68.9758 [2,] 69.63911 72.83274 70.3692 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(67.2483333333333, 68.1258333333333, 68.8158333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zeyf1208968502.ps tmp/1zeyf1208968502.png") > system("convert tmp/2di4f1208968502.ps tmp/2di4f1208968502.png") > system("convert tmp/3r29h1208968502.ps tmp/3r29h1208968502.png") > system("convert tmp/45aen1208968502.ps tmp/45aen1208968502.png") > system("convert tmp/5qfoo1208968502.ps tmp/5qfoo1208968502.png") > system("convert tmp/6yul91208968502.ps tmp/6yul91208968502.png") > system("convert tmp/7u62o1208968502.ps tmp/7u62o1208968502.png") > > > proc.time() user system elapsed 2.565 1.595 2.814