R version 2.6.2 (2008-02-08) 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(107.5,107.5,113.3,107.8,104.5,105.1,104.2,106.6,103.8,107.7,106.4,110,113.2,113.9,112,113.9,113.1,111.7,110.7,113.5,114,112.7,112.2,115.8,118.4,118.8,123.9,118,120.2,118.7,119.8,124.8,121.3,120.2,118.3,129.6,130.2,127.19,133.1,129.12,123.28,123.36,124.13,126.96,127.14,123.7,123.67,130.19,134.01,124.96,129.96,128.32,132.38,126.25,128.91,131.42,129.44,126.86,126.71,131.63,132.78,126.61,132.84,123.14,128.13,125.49,126.48,130.86,127.32,126.56,126.64,129.26,126.47,135.38,135.5,132.22,122.62,125.16,128.5,133.86,128.87,125.07,125.25,132.16,130.24) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 107.5 113.2 118.4 130.20 134.01 132.78 126.47 130.24 [2,] 107.5 113.9 118.8 127.19 124.96 126.61 135.38 NA [3,] 113.3 112.0 123.9 133.10 129.96 132.84 135.50 NA [4,] 107.8 113.9 118.0 129.12 128.32 123.14 132.22 NA [5,] 104.5 113.1 120.2 123.28 132.38 128.13 122.62 NA [6,] 105.1 111.7 118.7 123.36 126.25 125.49 125.16 NA [7,] 104.2 110.7 119.8 124.13 128.91 126.48 128.50 NA [8,] 106.6 113.5 124.8 126.96 131.42 130.86 133.86 NA [9,] 103.8 114.0 121.3 127.14 129.44 127.32 128.87 NA [10,] 107.7 112.7 120.2 123.70 126.86 126.56 125.07 NA [11,] 106.4 112.2 118.3 123.67 126.71 126.64 125.25 NA [12,] 110.0 115.8 129.6 130.19 131.63 129.26 132.16 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.0 0.7 0.4 -3.01 -9.05 -6.17 8.91 NA [2,] 5.8 -1.9 5.1 5.91 5.00 6.23 0.12 NA [3,] -5.5 1.9 -5.9 -3.98 -1.64 -9.70 -3.28 NA [4,] -3.3 -0.8 2.2 -5.84 4.06 4.99 -9.60 NA [5,] 0.6 -1.4 -1.5 0.08 -6.13 -2.64 2.54 NA [6,] -0.9 -1.0 1.1 0.77 2.66 0.99 3.34 NA [7,] 2.4 2.8 5.0 2.83 2.51 4.38 5.36 NA [8,] -2.8 0.5 -3.5 0.18 -1.98 -3.54 -4.99 NA [9,] 3.9 -1.3 -1.1 -3.44 -2.58 -0.76 -3.80 NA [10,] -1.3 -0.5 -1.9 -0.03 -0.15 0.08 0.18 NA [11,] 3.6 3.6 11.3 6.52 4.92 2.62 6.91 NA [12,] 3.2 2.6 0.6 3.82 1.15 -2.79 -1.92 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/1900c1208876991.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/27jne1208876991.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/38jqx1208876991.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/4tdl21208876991.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,] 107.500 107.50 112.00 107.80 104.500 105.100 104.20 106.60 103.800 107.700 [2,] 115.800 116.35 118.60 115.95 116.650 115.200 115.25 119.15 117.650 116.450 [3,] 128.335 124.96 129.96 123.14 122.620 123.360 124.13 126.96 127.140 123.700 [4,] 131.510 126.90 132.97 128.72 125.705 125.325 127.49 131.14 128.095 125.815 [5,] 134.010 135.38 135.50 132.22 132.380 126.250 128.91 133.86 129.440 126.860 [,11] [,12] [1,] 106.400 110.00 [2,] 115.250 122.53 [3,] 123.670 129.60 [4,] 125.945 130.91 [5,] 126.710 132.16 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 119.5592 118.6597 121.3785 115.5140 117.2125 117.3135 116.8205 119.7998 [2,] 137.1108 131.2603 138.5415 130.7660 128.0275 129.4065 131.4395 134.1202 [,9] [,10] [,11] [,12] [1,] 120.9024 118.1074 117.2831 124.5956 [2,] 133.3776 129.2926 130.0569 134.6044 $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(107.5, 115.8, 128.335, 131.51, 134.01, 107.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gk3j1208876991.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,] -9.05 -1.900 -9.70 -9.60 -2.64 -1.000 2.400 -4.99 -3.80 -1.900 2.620 [2,] -4.59 2.560 -5.70 -4.57 -2.07 -0.065 2.655 -3.52 -3.01 -0.900 3.600 [3,] 0.00 5.100 -3.98 -0.80 -1.40 0.990 2.830 -2.80 -1.30 -0.150 4.920 [4,] 0.55 5.855 -2.46 3.13 0.34 1.880 4.690 -0.90 -0.93 0.025 6.715 [5,] 0.70 6.230 1.90 4.99 2.54 3.340 5.360 0.50 -0.76 0.180 11.300 [,12] [1,] -2.79 [2,] -0.66 [3,] 1.15 [4,] 2.90 [5,] 3.82 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.069525 3.132279 -5.914876 -5.398316 -2.83921312 -0.1715226 1.614731 [2,] 3.069525 7.067721 -2.045124 3.798316 0.03921312 2.1515226 4.045269 [,8] [,9] [,10] [,11] [,12] [1,] -4.364622 -2.54214244 -0.7023951 3.059772 -0.9759746 [2,] -1.235378 -0.05785756 0.4023951 6.780228 3.2759746 $out [1] 8.91 -6.13 3.90 $group [1] 1 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9.05, -4.59, 0, 0.549999999999997, 0.700000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mwrr1208876991.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,] 103.80 110.70 118.00 123.280 124.960 123.14 122.620 130.24 [2,] 104.80 112.10 118.55 123.685 126.785 126.52 125.205 130.24 [3,] 107.05 113.15 120.00 127.050 129.175 126.98 128.685 130.24 [4,] 107.75 113.90 122.60 129.655 131.525 130.06 133.040 130.24 [5,] 110.00 115.80 124.80 133.100 134.010 132.84 135.500 130.24 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.7045 112.329 118.1528 124.3270 127.0131 125.3654 125.1114 130.24 [2,] 108.3955 113.971 121.8472 129.7730 131.3369 128.5946 132.2586 130.24 $out [1] 113.3 129.6 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(103.8, 104.8, 107.05, 107.75, 110, 110.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w1jt1208876991.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,] 119.3943 122.6200 120.2625 [2,] 120.3936 123.5150 121.1550 [3,] 121.7407 124.5450 121.9800 [4,] 124.0500 127.7375 124.5662 [5,] 125.8000 129.9600 126.7200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 120.0730 122.6191 120.4241 [2,] 123.4084 126.4709 123.5359 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(119.394285714286, 120.393571428571, 121.740714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1900c1208876991.ps tmp/1900c1208876991.png") > system("convert tmp/27jne1208876991.ps tmp/27jne1208876991.png") > system("convert tmp/38jqx1208876991.ps tmp/38jqx1208876991.png") > system("convert tmp/4tdl21208876991.ps tmp/4tdl21208876991.png") > system("convert tmp/5gk3j1208876991.ps tmp/5gk3j1208876991.png") > system("convert tmp/6mwrr1208876991.ps tmp/6mwrr1208876991.png") > system("convert tmp/7w1jt1208876991.ps tmp/7w1jt1208876991.png") > > > proc.time() user system elapsed 2.561 1.585 2.817