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(110.04,111.73,110.99,115.83,125.33,123.03,123.46,130.34,131.21,132.97,133.91,133.14,135.31,133.09,135.39,131.85,130.25,127.65,118.3,119.73,122.51,123.28,133.52,153.2,163.63,168.45,166.26,162.31,161.56,156.59,157.97,158.68,163.55,162.89,164.95,159.82,159.05,166.76,164.55,163.22,160.68,155.24,157.6,156.56,154.82,151.11,149.65,148.99,148.53,146.7,145.11,142.7,143.59,140.96,140.77,139.81,140.58,139.59,138.05,136.06,135.98,134.75,132.22,135.37,138.84,138.83,136.55,135.63,139.14,136.09,135.97,134.51,134.54,134.08,132.86,134.48,129.08,133.13,134.78,134.13,132.43,127.84,128.12,128.94) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 110.04 135.31 163.63 159.05 148.53 135.98 134.54 NA [2,] 111.73 133.09 168.45 166.76 146.70 134.75 134.08 NA [3,] 110.99 135.39 166.26 164.55 145.11 132.22 132.86 NA [4,] 115.83 131.85 162.31 163.22 142.70 135.37 134.48 NA [5,] 125.33 130.25 161.56 160.68 143.59 138.84 129.08 NA [6,] 123.03 127.65 156.59 155.24 140.96 138.83 133.13 NA [7,] 123.46 118.30 157.97 157.60 140.77 136.55 134.78 NA [8,] 130.34 119.73 158.68 156.56 139.81 135.63 134.13 NA [9,] 131.21 122.51 163.55 154.82 140.58 139.14 132.43 NA [10,] 132.97 123.28 162.89 151.11 139.59 136.09 127.84 NA [11,] 133.91 133.52 164.95 149.65 138.05 135.97 128.12 NA [12,] 133.14 153.20 159.82 148.99 136.06 134.51 128.94 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.69 -2.22 4.82 7.71 -1.83 -1.23 -0.46 NA [2,] -0.74 2.30 -2.19 -2.21 -1.59 -2.53 -1.22 NA [3,] 4.84 -3.54 -3.95 -1.33 -2.41 3.15 1.62 NA [4,] 9.50 -1.60 -0.75 -2.54 0.89 3.47 -5.40 NA [5,] -2.30 -2.60 -4.97 -5.44 -2.63 -0.01 4.05 NA [6,] 0.43 -9.35 1.38 2.36 -0.19 -2.28 1.65 NA [7,] 6.88 1.43 0.71 -1.04 -0.96 -0.92 -0.65 NA [8,] 0.87 2.78 4.87 -1.74 0.77 3.51 -1.70 NA [9,] 1.76 0.77 -0.66 -3.71 -0.99 -3.05 -4.59 NA [10,] 0.94 10.24 2.06 -1.46 -1.54 -0.12 0.28 NA [11,] -0.77 19.68 -5.13 -0.66 -1.99 -1.46 0.82 NA [12,] 2.17 10.43 -0.77 -0.46 -0.08 0.03 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/157qm1289932220.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/257qm1289932220.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/357qm1289932220.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/4ygp71289932220.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,] 110.040 111.730 110.99 115.830 125.330 123.03 118.300 119.730 122.51 [2,] 134.925 133.585 132.54 133.165 129.665 130.39 129.120 132.235 131.82 [3,] 135.980 134.750 135.39 135.370 138.840 138.83 136.550 135.630 139.14 [4,] 153.790 156.730 154.83 152.505 152.135 148.10 149.185 148.185 147.70 [5,] 163.630 168.450 166.26 163.220 161.560 156.59 157.970 158.680 163.55 [,10] [,11] [,12] [1,] 123.280 128.120 128.940 [2,] 130.405 133.715 133.825 [3,] 136.090 135.970 136.060 [4,] 145.350 143.850 151.095 [5,] 162.890 149.650 159.820 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 124.7141 120.9282 122.0788 123.8205 125.4213 128.2539 124.5675 126.1049 [2,] 147.2459 148.5718 148.7012 146.9195 152.2587 149.4061 148.5325 145.1551 [,9] [,10] [,11] [,12] [1,] 129.6567 127.1651 129.9175 125.7466 [2,] 148.6233 145.0149 142.0225 146.3734 $out [1] 164.95 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(110.04, 134.925, 135.98, 153.79, 163.63, 111.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ygp71289932220.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.220 -2.53 -3.950 -5.40 -5.440 -2.280 -1.04 -1.740 -4.590 -1.54 -1.990 [2,] -1.530 -2.20 -2.975 -2.07 -3.800 -1.235 -0.94 -0.465 -3.380 -0.79 -1.725 [3,] -0.460 -1.59 -1.330 -0.75 -2.600 0.430 -0.65 0.870 -0.990 0.28 -0.770 [4,] 3.255 -0.98 2.385 2.18 -1.155 1.515 1.07 3.145 0.055 1.50 0.080 [5,] 7.710 -0.74 4.840 3.47 -0.010 2.360 1.43 4.870 1.760 2.06 0.820 [,12] [1,] -0.770 [2,] -0.460 [3,] -0.025 [4,] 2.170 [5,] 2.170 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.317525 -2.3185643 -4.530906 -3.288031 -4.179551 -1.212256 -1.8503396 [2,] 2.397525 -0.8614357 1.870906 1.788031 -1.020449 2.072256 0.5503396 [,8] [,9] [,10] [,11] [,12] [1,] -1.285834 -3.041327 -1.087551 -1.8479169 -1.721435 [2,] 3.025834 1.061327 1.647551 0.3079169 1.671435 $out [1] 2.30 9.50 4.05 -9.35 6.88 10.24 19.68 -5.13 10.43 $group [1] 2 4 5 6 7 10 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.22, -1.53, -0.45999999999998, 3.25500000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69q6s1289932220.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] [1,] 110.040 118.300 156.59 148.990 136.060 132.220 127.840 NA [2,] 113.780 122.895 159.25 152.965 139.700 135.060 129.010 NA [3,] 124.395 131.050 162.60 157.080 140.865 135.975 132.995 NA [4,] 132.090 134.415 164.29 161.950 144.350 137.690 134.305 NA [5,] 133.910 135.390 168.45 166.760 148.530 139.140 134.780 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 116.0437 125.7957 160.3012 152.9819 138.7441 134.7754 130.5799 NA [2,] 132.7463 136.3043 164.8988 161.1781 142.9859 137.1746 135.4101 NA $out [1] 153.2 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(110.04, 113.78, 124.395, 132.09, 133.91, 118.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79q6s1289932220.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,] 138.4900 134.75 137.8775 [2,] 139.3079 135.51 139.1988 [3,] 140.7143 136.02 140.5550 [4,] 141.1936 137.69 143.2600 [5,] 142.2229 139.14 145.1575 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 139.8542 135.0257 138.7026 [2,] 141.5744 137.0143 142.4074 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(138.49, 139.307857142857, 140.714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/157qm1289932220.ps tmp/157qm1289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/257qm1289932220.ps tmp/257qm1289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/357qm1289932220.ps tmp/357qm1289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/4ygp71289932220.ps tmp/4ygp71289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/5ygp71289932220.ps tmp/5ygp71289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/69q6s1289932220.ps tmp/69q6s1289932220.png",intern=TRUE)) character(0) > try(system("convert tmp/79q6s1289932220.ps tmp/79q6s1289932220.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.181 0.923 1.486