R version 2.8.0 (2008-10-20) 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(72.84,73.96,73.26,73.86,73.04,212.8,157.92,111.55,99.01,89.5,100.95,116.06,131.5,137.43,138.53,137.26,136.81,182.98,149.45,109.34,93.37,84.09,83.83,82.94,82.88,81.41,79.87,79.66,76.07,182.69,165.78,142.5,120.6,105.73,98.72,98.41,96.08,97.3,97.5,97.02,98.75,232.81,240.83,193.4,148.28,138.34,135.34,134.02,133.86,131.67,132.43,130.21,129.98,206.16,195.17,159.16,136.33,125.18,121.21,119.38,119.26,119.75,118.78,116.97,121.69,223.51,228.58,205.22,189.4,180.14,177.59,176.39,171.16,173.11,171.74,175.97,179.64,254.62,240.5,212.01,176.36,153.24,146.69,141.52,142.6,143.19,142.32,142.03,144.92,177.31,194.4,189.19,180.44,175.84,178.54,176.55) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 72.84 131.50 82.88 96.08 133.86 119.26 171.16 142.60 NA [2,] 73.96 137.43 81.41 97.30 131.67 119.75 173.11 143.19 NA [3,] 73.26 138.53 79.87 97.50 132.43 118.78 171.74 142.32 NA [4,] 73.86 137.26 79.66 97.02 130.21 116.97 175.97 142.03 NA [5,] 73.04 136.81 76.07 98.75 129.98 121.69 179.64 144.92 NA [6,] 212.80 182.98 182.69 232.81 206.16 223.51 254.62 177.31 NA [7,] 157.92 149.45 165.78 240.83 195.17 228.58 240.50 194.40 NA [8,] 111.55 109.34 142.50 193.40 159.16 205.22 212.01 189.19 NA [9,] 99.01 93.37 120.60 148.28 136.33 189.40 176.36 180.44 NA [10,] 89.50 84.09 105.73 138.34 125.18 180.14 153.24 175.84 NA [11,] 100.95 83.83 98.72 135.34 121.21 177.59 146.69 178.54 NA [12,] 116.06 82.94 98.41 134.02 119.38 176.39 141.52 176.55 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 1.12 5.93 -1.47 1.22 -2.19 0.49 1.95 0.59 NA [2,] -0.70 1.10 -1.54 0.20 0.76 -0.97 -1.37 -0.87 NA [3,] 0.60 -1.27 -0.21 -0.48 -2.22 -1.81 4.23 -0.29 NA [4,] -0.82 -0.45 -3.59 1.73 -0.23 4.72 3.67 2.89 NA [5,] 139.76 46.17 106.62 134.06 76.18 101.82 74.98 32.39 NA [6,] -54.88 -33.53 -16.91 8.02 -10.99 5.07 -14.12 17.09 NA [7,] -46.37 -40.11 -23.28 -47.43 -36.01 -23.36 -28.49 -5.21 NA [8,] -12.54 -15.97 -21.90 -45.12 -22.83 -15.82 -35.65 -8.75 NA [9,] -9.51 -9.28 -14.87 -9.94 -11.15 -9.26 -23.12 -4.60 NA [10,] 11.45 -0.26 -7.01 -3.00 -3.97 -2.55 -6.55 2.70 NA [11,] 15.11 -0.89 -0.31 -1.32 -1.83 -1.20 -5.17 -1.99 NA [12,] 15.44 -0.06 -2.33 -0.16 -0.12 -5.23 1.08 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/freestat/rcomp/tmp/1ygv21250434586.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/freestat/rcomp/tmp/2oq5q1250434586.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/freestat/rcomp/tmp/3znu21250434586.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/freestat/rcomp/tmp/4izq31250434586.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] [1,] 72.84 73.960 73.260 73.860 73.040 177.310 149.450 109.340 93.370 [2,] 89.48 89.355 88.685 88.340 87.410 182.835 161.850 127.025 109.805 [3,] 125.38 125.710 125.605 123.590 125.835 209.480 194.785 174.175 142.305 [4,] 138.23 140.310 140.425 139.645 140.865 228.160 234.540 199.310 178.400 [5,] 171.16 173.110 171.740 175.970 179.640 254.620 240.830 212.010 189.400 [,10] [,11] [,12] [1,] 84.090 83.830 82.940 [2,] 97.615 99.835 107.235 [3,] 131.760 128.275 126.700 [4,] 164.540 162.140 158.955 [5,] 180.140 178.540 176.550 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.14755 97.2458 96.7023 94.93029 95.97427 184.1608 154.1793 133.7956 [2,] 152.61245 154.1742 154.5077 152.24971 155.69573 234.7992 235.3907 214.5544 [,9] [,10] [,11] [,12] [1,] 103.9868 94.37473 93.47053 97.80847 [2,] 180.6232 169.14527 163.07947 155.59153 $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(72.84, 89.48, 125.38, 138.23, 171.16, 73.96, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/58bzq1250434586.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] [1,] -2.190 -1.540 -2.220 -3.590 32.390 -54.880 -47.43 -45.120 -14.870 -7.010 [2,] -0.490 -1.170 -1.540 -0.635 60.575 -25.220 -43.24 -29.240 -13.010 -5.260 [3,] 0.855 -0.785 -0.385 0.750 89.000 -12.555 -32.25 -18.935 -9.725 -2.775 [4,] 1.585 0.480 0.195 3.280 120.340 6.545 -23.32 -14.180 -9.270 1.220 [5,] 1.950 1.100 0.600 4.720 139.760 17.090 -5.21 -8.750 -4.600 2.700 [,11] [,12] [1,] -1.99 -2.330 [2,] -1.91 -1.245 [3,] -1.26 -0.120 [4,] -0.60 0.510 [5,] -0.31 1.080 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.3041248 -1.7067137 -1.3541959 -1.436975 55.61441 -30.299385 -43.3776 [2,] 2.0141248 0.1367137 0.5841959 2.936975 122.38559 5.189385 -21.1224 [,8] [,9] [,10] [,11] [,12] [1,] -27.34773 -11.814218 -6.394821 -1.9917848 -1.1680577 [2,] -10.52227 -7.635782 0.844821 -0.5282152 0.9280577 $out [1] 5.93 4.23 -23.12 11.45 15.11 -5.17 15.44 -5.23 $group [1] 1 3 9 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.19000000000003, -0.490000000000002, 0.854999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6ds1i1250434586.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] [1,] 72.840 82.940 76.070 96.08 119.380 116.970 141.520 142.030 NA [2,] 73.560 88.730 80.640 97.40 127.580 119.505 162.200 142.895 NA [3,] 94.255 134.155 98.565 134.68 132.050 176.990 174.540 176.195 NA [4,] 113.805 137.980 131.550 170.84 147.745 197.310 195.825 179.490 NA [5,] 157.920 182.980 182.690 240.83 159.160 228.580 240.500 194.400 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 75.89899 111.6917 75.3446 101.1835 122.8526 141.5026 159.2034 159.5038 [2,] 112.61101 156.6183 121.7854 168.1765 141.2474 212.4774 189.8766 192.8862 [,9] [1,] NA [2,] NA $out [1] 212.80 206.16 195.17 254.62 $group [1] 1 5 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(72.84, 73.56, 94.255, 113.805, 157.92, 82.94, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7rlj21250434586.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,] 118.7725 123.5900 114.4125 [2,] 119.5156 125.6575 116.0288 [3,] 130.5087 127.4875 128.8425 [4,] 154.1350 158.2400 155.9250 [5,] 196.5788 194.7850 204.3712 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 114.7186 112.6264 110.6456 [2,] 146.2989 142.3486 147.0394 $out [1] 209.11 209.48 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(118.7725, 119.515625, 130.50875, 154.135, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ygv21250434586.ps tmp/1ygv21250434586.png") > system("convert tmp/2oq5q1250434586.ps tmp/2oq5q1250434586.png") > system("convert tmp/3znu21250434586.ps tmp/3znu21250434586.png") > system("convert tmp/4izq31250434586.ps tmp/4izq31250434586.png") > system("convert tmp/58bzq1250434586.ps tmp/58bzq1250434586.png") > system("convert tmp/6ds1i1250434586.ps tmp/6ds1i1250434586.png") > system("convert tmp/7rlj21250434586.ps tmp/7rlj21250434586.png") > > > proc.time() user system elapsed 1.856 1.452 2.062