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(100.34,115.78,114.6,114.2,115.88,125.22,161.71,165.01,135.78,153.67,125.52,135.29,103.05,120.79,120.17,119.62,121.17,129.86,167.8,167.14,140.55,158.44,131.07,140.55,106.15,123.65,122.8,122.25,123.88,132.96,171.82,173.69,149.5,164.44,133.37,143.77,69.49,84.5,82.3,78.8,79.47,88.93,138.13,139.69,114.43,128.65,95.92,98.22,56.65,69.6,66.91,63.76,64,35.24,45.3,43.02,43.08,43.17,46.38,70.85,72.81,59.51,67.54,56.51,53.82,112.55,127.65,126.51,126.08,127.34) > 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] 70 > (np <- floor(n / par1)) [1] 5 > 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 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.34 103.05 106.15 69.49 56.65 72.81 [2,] 115.78 120.79 123.65 84.50 69.60 59.51 [3,] 114.60 120.17 122.80 82.30 66.91 67.54 [4,] 114.20 119.62 122.25 78.80 63.76 56.51 [5,] 115.88 121.17 123.88 79.47 64.00 53.82 [6,] 125.22 129.86 132.96 88.93 35.24 112.55 [7,] 161.71 167.80 171.82 138.13 45.30 127.65 [8,] 165.01 167.14 173.69 139.69 43.02 126.51 [9,] 135.78 140.55 149.50 114.43 43.08 126.08 [10,] 153.67 158.44 164.44 128.65 43.17 127.34 [11,] 125.52 131.07 133.37 95.92 46.38 NA [12,] 135.29 140.55 143.77 98.22 70.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.44 17.74 17.50 15.01 12.95 -13.30 [2,] -1.18 -0.62 -0.85 -2.20 -2.69 8.03 [3,] -0.40 -0.55 -0.55 -3.50 -3.15 -11.03 [4,] 1.68 1.55 1.63 0.67 0.24 -2.69 [5,] 9.34 8.69 9.08 9.46 -28.76 58.73 [6,] 36.49 37.94 38.86 49.20 10.06 15.10 [7,] 3.30 -0.66 1.87 1.56 -2.28 -1.14 [8,] -29.23 -26.59 -24.19 -25.26 0.06 -0.43 [9,] 17.89 17.89 14.94 14.22 0.09 1.26 [10,] -28.15 -27.37 -31.07 -32.73 3.21 NA [11,] 9.77 9.48 10.40 2.30 24.47 NA [12,] -32.24 -34.40 -74.28 -41.57 1.96 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/1h3nd1259692721.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/2g8tv1259692721.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/3071d1259692721.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/40gyw1259692721.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] [1,] 56.650 59.51 66.91 56.51 53.820 35.240 127.65 126.51 114.43 127.34 [2,] 69.490 69.60 67.54 63.76 64.000 88.930 127.65 126.51 114.43 127.34 [3,] 86.575 100.14 98.45 96.50 97.675 118.885 149.92 152.35 130.93 141.16 [4,] 103.050 120.79 120.17 119.62 121.170 129.860 167.80 167.14 140.55 158.44 [5,] 106.150 123.65 122.80 122.25 123.880 132.960 171.82 173.69 149.50 164.44 [,11] [,12] [1,] 46.38 70.85 [2,] 95.92 98.22 [3,] 125.52 135.29 [4,] 131.07 140.55 [5,] 133.37 143.77 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 64.92772 67.1208 64.50195 60.4685 60.7985 92.48383 124.0220 126.1423 [2,] 108.22228 133.1592 132.39805 132.5315 134.5515 145.28617 175.8180 178.5577 [,9] [,10] [,11] [,12] [1,] 114.0818 121.0995 100.6831 105.3797 [2,] 147.7782 161.2205 150.3569 165.2003 $out [1] 45.30 43.02 43.08 43.17 $group [1] 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(56.65, 69.49, 86.575, 103.05, 106.15, 59.51, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5c8mt1259692721.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,] 12.950 -2.690 -3.50 0.24 8.69 10.060 -2.28 -29.230 0.09 -32.73 9.48 [2,] 12.950 -2.200 -3.50 0.24 8.69 15.100 -1.14 -26.590 1.26 -31.07 9.48 [3,] 15.225 -1.015 -1.85 1.11 9.21 37.215 0.45 -24.725 14.58 -28.15 9.77 [4,] 17.500 -0.620 -0.55 1.63 9.46 38.860 1.87 -0.430 17.89 -27.37 10.40 [5,] 17.740 -0.620 -0.40 1.68 9.46 49.200 3.30 0.060 17.89 -27.37 10.40 [,12] [1,] -41.57 [2,] -41.57 [3,] -34.40 [4,] -32.24 [5,] -32.24 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 12.29010 -2.034151032 -3.75284528 0.2134051 8.713325 21.88903 -1.491547 [2,] 18.15990 0.004151032 0.05284528 2.0065949 9.706675 52.54097 2.391547 [,8] [,9] [,10] [,11] [,12] [1,] -41.599045 3.853113 -30.76441 9.11993 -40.99255 [2,] -7.850955 25.306887 -25.53559 10.42007 -27.80745 $out [1] -13.30 8.03 -11.03 -2.69 -28.76 58.73 3.21 2.30 24.47 -74.28 [11] 1.96 $group [1] 1 2 3 4 5 5 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(12.95, 12.95, 15.225, 17.5, 17.74, -2.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6utxi1259692721.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] [1,] 100.340 103.050 106.150 69.490 35.240 53.82 [2,] 115.190 120.480 123.225 80.885 43.125 59.51 [3,] 125.370 130.465 133.165 92.425 51.515 92.68 [4,] 144.725 149.495 156.970 121.540 65.455 126.51 [5,] 165.010 167.800 173.690 139.690 70.850 127.65 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 111.8989 117.2311 117.7737 73.88198 41.33014 59.20413 [2,] 138.8411 143.6989 148.5563 110.96802 61.69986 126.15587 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.34, 115.19, 125.37, 144.725, 165.01, 103.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7cgdh1259692721.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,] 84.74833 86.5750 86.34625 [2,] 94.33750 98.0625 94.43062 [3,] 105.28933 122.2025 112.63125 [4,] 123.76083 138.2250 135.40375 [5,] 135.84333 152.3500 148.27375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 91.86915 103.8841 93.94313 [2,] 118.70951 140.5209 131.31937 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(84.7483333333333, 94.3375, 105.289333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h3nd1259692721.ps tmp/1h3nd1259692721.png") > system("convert tmp/2g8tv1259692721.ps tmp/2g8tv1259692721.png") > system("convert tmp/3071d1259692721.ps tmp/3071d1259692721.png") > system("convert tmp/40gyw1259692721.ps tmp/40gyw1259692721.png") > system("convert tmp/5c8mt1259692721.ps tmp/5c8mt1259692721.png") > system("convert tmp/6utxi1259692721.ps tmp/6utxi1259692721.png") > system("convert tmp/7cgdh1259692721.ps tmp/7cgdh1259692721.png") > > > proc.time() user system elapsed 1.209 0.933 3.151