R version 2.7.2 (2008-08-25) 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(99.29,98.69,107.92,101.03,97.55,103.02,94.08,94.12,115.08,116.48,103.42,112.51,95.55,97.53,119.26,100.94,97.73,115.25,92.8,99.2,118.69,110.12,110.26,112.9,102.17,99.38,116.1,103.77,101.81,113.74,89.67,99.5,122.89,108.61,114.37,110.5,104.08,103.64,121.61,101.14,115.97,120.12,95.97,105.01,124.68,123.89,123.61,114.76,108.75,106.09,123.17,106.16,115.18,120.6,109.48,114.44,121.44,129.48,124.32,112.59) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.29 95.55 102.17 104.08 108.75 NA [2,] 98.69 97.53 99.38 103.64 106.09 NA [3,] 107.92 119.26 116.10 121.61 123.17 NA [4,] 101.03 100.94 103.77 101.14 106.16 NA [5,] 97.55 97.73 101.81 115.97 115.18 NA [6,] 103.02 115.25 113.74 120.12 120.60 NA [7,] 94.08 92.80 89.67 95.97 109.48 NA [8,] 94.12 99.20 99.50 105.01 114.44 NA [9,] 115.08 118.69 122.89 124.68 121.44 NA [10,] 116.48 110.12 108.61 123.89 129.48 NA [11,] 103.42 110.26 114.37 123.61 124.32 NA [12,] 112.51 112.90 110.50 114.76 112.59 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.60 1.98 -2.79 -0.44 -2.66 NA [2,] 9.23 21.73 16.72 17.97 17.08 NA [3,] -6.89 -18.32 -12.33 -20.47 -17.01 NA [4,] -3.48 -3.21 -1.96 14.83 9.02 NA [5,] 5.47 17.52 11.93 4.15 5.42 NA [6,] -8.94 -22.45 -24.07 -24.15 -11.12 NA [7,] 0.04 6.40 9.83 9.04 4.96 NA [8,] 20.96 19.49 23.39 19.67 7.00 NA [9,] 1.40 -8.57 -14.28 -0.79 8.04 NA [10,] -13.06 0.14 5.76 -0.28 -5.16 NA [11,] 9.09 2.64 -3.87 -8.85 -11.73 NA [12,] -16.96 -10.73 -6.42 -6.01 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/1o3h11225451071.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/25uyw1225451071.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/3le041225451071.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/423ko1225451071.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,] 95.55 97.53 107.92 100.94 97.55 113.74 89.67 94.12 115.08 108.61 [2,] 99.29 98.69 116.10 101.03 97.73 113.74 92.80 99.20 118.69 110.12 [3,] 102.17 99.38 119.26 101.14 101.81 115.25 94.08 99.50 121.44 116.48 [4,] 104.08 103.64 121.61 103.77 115.18 120.12 95.97 105.01 122.89 123.89 [5,] 108.75 106.09 123.17 106.16 115.97 120.60 95.97 105.01 124.68 129.48 [,11] [,12] [1,] 103.42 112.51 [2,] 110.26 112.51 [3,] 114.37 112.59 [4,] 123.61 112.90 [5,] 124.32 112.90 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.7854 95.88234 115.3666 99.20392 89.47987 110.7419 91.84009 [2,] 105.5546 102.87766 123.1534 103.07608 114.14013 119.7581 96.31991 [,8] [,9] [,10] [,11] [,12] [1,] 95.39467 118.4723 106.7502 104.9369 112.3144 [2,] 103.60533 124.4077 126.2098 123.8031 112.8656 $out [1] 103.02 109.48 114.44 110.50 114.76 $group [1] 6 7 8 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.55, 99.29, 102.17, 104.08, 108.75, 97.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/518k51225451071.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,] -2.79 16.72 -20.47 -3.48 4.15 -24.15 0.04 19.49 -14.28 -13.06 -11.73 [2,] -2.66 16.72 -18.32 -3.21 5.42 -24.07 4.96 19.49 -8.57 -5.16 -8.85 [3,] -0.60 17.08 -17.01 -1.96 5.47 -22.45 6.40 19.67 -0.79 -0.28 -3.87 [4,] -0.44 17.97 -12.33 9.02 11.93 -11.12 9.04 20.96 1.40 0.14 2.64 [5,] 1.98 17.97 -6.89 14.83 17.52 -8.94 9.83 20.96 8.04 5.76 9.09 [,12] [1,] -16.960 [2,] -13.845 [3,] -8.575 [4,] -6.215 [5,] -6.010 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.1686464 16.19675 -21.24252 -10.601687 0.8700504 -31.60044 3.517082 [2,] 0.9686464 17.96325 -12.77748 6.681687 10.0699496 -13.29956 9.282918 [,8] [,9] [,10] [,11] [,12] [1,] 18.6313 -7.834777 -4.024967 -11.988805 -14.6027 [2,] 20.7087 6.254777 3.464967 4.248805 -2.5473 $out [1] 9.23 21.73 23.39 7.00 $group [1] 2 2 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.79000000000001, -2.66000000000000, -0.600000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6j2f91225451071.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,] 94.080 92.800 89.670 95.970 106.090 NA [2,] 98.120 97.630 100.655 103.860 109.115 NA [3,] 102.025 105.530 106.190 115.365 114.810 NA [4,] 110.215 114.075 114.055 122.610 122.305 NA [5,] 116.480 119.260 122.890 124.680 129.480 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 96.50839 98.02933 100.0782 106.813 108.7940 NA [2,] 107.54161 113.03067 112.3018 123.917 120.8260 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(94.08, 98.12, 102.025, 110.215, 116.48, 92.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hmr91225451071.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,] 96.400 94.080 94.385 [2,] 102.211 100.320 101.895 [3,] 109.150 107.380 109.580 [4,] 116.404 115.865 116.970 [5,] 120.556 121.440 120.790 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.6765 100.2898 102.7042 [2,] 115.6235 114.4702 116.4558 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96.4, 102.211, 109.15, 116.404, 120.556, 94.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1o3h11225451071.ps tmp/1o3h11225451071.png") > system("convert tmp/25uyw1225451071.ps tmp/25uyw1225451071.png") > system("convert tmp/3le041225451071.ps tmp/3le041225451071.png") > system("convert tmp/423ko1225451071.ps tmp/423ko1225451071.png") > system("convert tmp/518k51225451071.ps tmp/518k51225451071.png") > system("convert tmp/6j2f91225451071.ps tmp/6j2f91225451071.png") > system("convert tmp/7hmr91225451071.ps tmp/7hmr91225451071.png") > > > proc.time() user system elapsed 1.444 0.966 1.717