R version 2.7.1 (2008-06-23) 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(81.6,113.8,97.6,120.1,101.9,97.6,150,143.8,103.7,115.3,87.4,97.6,84,96.1,88,120.6,121.1,109.7,149.2,156.5,109.3,102,90,85.9,88.4,88.4,100,120.6,103.3,107.1,168.1,172.1,104.9,112.8,88.8,109,89.5,90.2,91.2,116.9,106.1,106.1,170.4,163.9,108,118.6,94.7,101.4,94.86,101.61,96.04,115.96,123.87,115.59,178.58,184.31,115.59,117.91,95.22,113.49,97.84,97.84,98.82,142.58,122.57,122.29,167.48,176.09,121.78,122.6,107.8,116.77,99.56,103.41,107.77,139.17,130.56,125.18,181.69,194.7,125.18,123.54,112.25,123.21,109.02,115.97,118.71,126.4,129.39,128.97,192.64,188.1,128.03,132.42,114.73,123.82) > 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,] 81.6 84.0 88.4 89.5 94.86 97.84 99.56 109.02 NA [2,] 113.8 96.1 88.4 90.2 101.61 97.84 103.41 115.97 NA [3,] 97.6 88.0 100.0 91.2 96.04 98.82 107.77 118.71 NA [4,] 120.1 120.6 120.6 116.9 115.96 142.58 139.17 126.40 NA [5,] 101.9 121.1 103.3 106.1 123.87 122.57 130.56 129.39 NA [6,] 97.6 109.7 107.1 106.1 115.59 122.29 125.18 128.97 NA [7,] 150.0 149.2 168.1 170.4 178.58 167.48 181.69 192.64 NA [8,] 143.8 156.5 172.1 163.9 184.31 176.09 194.70 188.10 NA [9,] 103.7 109.3 104.9 108.0 115.59 121.78 125.18 128.03 NA [10,] 115.3 102.0 112.8 118.6 117.91 122.60 123.54 132.42 NA [11,] 87.4 90.0 88.8 94.7 95.22 107.80 112.25 114.73 NA [12,] 97.6 85.9 109.0 101.4 113.49 116.77 123.21 123.82 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 32.2 12.1 0.0 0.70 6.75 0.00 3.85 6.95 NA [2,] -16.2 -8.1 11.6 1.00 -5.57 0.98 4.36 2.74 NA [3,] 22.5 32.6 20.6 25.70 19.92 43.76 31.40 7.69 NA [4,] -18.2 0.5 -17.3 -10.80 7.91 -20.01 -8.61 2.99 NA [5,] -4.3 -11.4 3.8 0.00 -8.28 -0.28 -5.38 -0.42 NA [6,] 52.4 39.5 61.0 64.30 62.99 45.19 56.51 63.67 NA [7,] -6.2 7.3 4.0 -6.50 5.73 8.61 13.01 -4.54 NA [8,] -40.1 -47.2 -67.2 -55.90 -68.72 -54.31 -69.52 -60.07 NA [9,] 11.6 -7.3 7.9 10.60 2.32 0.82 -1.64 4.39 NA [10,] -27.9 -12.0 -24.0 -23.90 -22.69 -14.80 -11.29 -17.69 NA [11,] 10.2 -4.1 20.2 6.70 18.27 8.97 10.96 9.09 NA [12,] -13.6 2.5 -19.5 -6.54 -15.65 -17.21 -14.19 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/1eour1218470398.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/2dfl01218470398.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/34j5s1218470398.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/4n75q1218470398.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,] 81.60 88.400 88.000 115.960 101.900 97.600 149.200 143.800 103.700 [2,] 86.20 93.150 93.620 118.500 104.700 106.600 158.740 160.200 106.450 [3,] 92.18 99.725 98.210 120.600 121.835 112.645 169.250 174.095 112.445 [4,] 98.70 108.605 103.885 132.785 126.630 123.735 180.135 186.205 123.480 [5,] 109.02 115.970 118.710 142.580 130.560 128.970 192.640 194.700 128.030 [,10] [,11] [,12] [1,] 102.000 87.400 85.900 [2,] 114.050 89.400 99.500 [3,] 118.255 94.960 111.245 [4,] 123.070 110.025 119.990 [5,] 132.420 114.730 123.820 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 85.19732 91.09162 92.47582 112.6202 109.5846 103.0731 157.2984 159.5682 [2,] 99.16268 108.35838 103.94418 128.5798 134.0854 122.2169 181.2016 188.6218 [,9] [,10] [,11] [,12] [1,] 102.9318 113.2163 83.43858 99.799 [2,] 121.9582 123.2937 106.48142 122.691 $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(81.6, 86.2, 92.18, 98.7, 109.02, 88.4, 93.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5n2c71218470398.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,] 0.000 -16.200 7.69 -20.010 -11.40 39.500 -6.500 -69.520 -7.300 -27.90 [2,] 0.350 -6.835 20.26 -17.750 -6.83 48.795 -5.370 -67.960 -0.410 -23.95 [3,] 5.300 0.990 24.10 -9.705 -2.36 58.755 4.865 -57.985 3.355 -20.19 [4,] 9.525 3.550 32.00 1.745 -0.14 63.330 7.955 -50.755 9.250 -13.40 [5,] 12.100 11.600 43.76 7.910 3.80 64.300 13.010 -40.100 11.600 -11.29 [,11] [,12] [1,] 6.700 -19.50 [2,] 7.835 -16.43 [3,] 9.645 -14.19 [4,] 14.615 -10.07 [5,] 20.200 -6.54 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1747133 -4.81121 17.54187 -20.595187 -6.09713 50.63554 -2.578536 [2,] 10.4252867 6.79121 30.65813 1.185187 1.37713 66.87446 12.308536 [,8] [,9] [,10] [,11] [,12] [1,] -67.59596 -2.041215 -26.08338 5.857595 -17.98809 [2,] -48.37404 8.751215 -14.29662 13.432405 -10.39191 $out [1] 32.2 -4.1 2.5 $group [1] 1 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.350000000000001, 5.3, 9.525, 12.1, -16.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/63fs71218470398.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,] 81.6 84.00 88.4 89.50 94.860 97.840 99.560 109.020 NA [2,] 97.6 89.00 94.4 92.95 98.825 103.310 110.010 117.340 NA [3,] 102.8 105.65 106.0 106.10 115.590 122.035 124.360 127.215 NA [4,] 117.7 120.85 116.7 117.75 120.890 132.590 134.865 130.905 NA [5,] 143.8 156.50 120.6 118.60 123.870 176.090 139.170 132.420 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93.63226 91.123 95.82882 94.78855 105.526 108.6802 113.0235 121.0279 [2,] 111.96774 120.177 116.17118 117.41145 125.654 135.3898 135.6965 133.4021 [,9] [1,] NA [2,] NA $out [1] 150.00 168.10 172.10 170.40 163.90 178.58 184.31 181.69 194.70 192.64 [11] 188.10 $group [1] 1 3 3 4 4 5 5 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(81.6, 97.6, 102.8, 117.7, 143.8, 84, 89, 105.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/706qq1218470398.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,] 93.0975 92.1800 92.78500 [2,] 100.3419 98.9675 99.81125 [3,] 114.3131 112.5450 114.92938 [4,] 121.7175 121.2175 121.60062 [5,] 125.2887 121.8350 124.44625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 104.5636 102.3966 104.9911 [2,] 124.0627 122.6934 124.8677 $out [1] 169.7612 172.4375 169.2500 174.0950 171.2337 173.6538 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(93.0975, 100.341875, 114.313125, 121.7175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1eour1218470398.ps tmp/1eour1218470398.png") > system("convert tmp/2dfl01218470398.ps tmp/2dfl01218470398.png") > system("convert tmp/34j5s1218470398.ps tmp/34j5s1218470398.png") > system("convert tmp/4n75q1218470398.ps tmp/4n75q1218470398.png") > system("convert tmp/5n2c71218470398.ps tmp/5n2c71218470398.png") > system("convert tmp/63fs71218470398.ps tmp/63fs71218470398.png") > system("convert tmp/706qq1218470398.ps tmp/706qq1218470398.png") > > > proc.time() user system elapsed 2.076 1.402 2.582