R version 2.8.0 (2008-10-20) 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(32.68,31.54,32.43,26.54,25.85,27.6,25.71,25.38,28.57,27.64,25.36,25.9,26.29,21.74,19.2,19.32,19.82,20.36,24.31,25.97,25.61,24.67,25.59,26.09,28.37,27.34,24.46,27.46,30.23,32.33,29.87,24.87,25.48,27.28,28.24,29.58,26.95,29.08,28.76,29.59,30.7,30.52,32.67,33.19,37.13,35.54,37.75,41.84,42.94,49.14,44.61,40.22,44.23,45.85,53.38,53.26,51.8,55.3,57.81,63.96,63.77,59.15,56.12,57.42,63.52,61.71,63.01,68.18,72.03,69.75,74.41,74.33,64.24,60.03,59.44,62.5,55.04,58.34,61.92,67.65,67.68,70.3,75.26,71.44,76.36,81.71,92.6,90.6,92.23,94.09,102.79,109.65,124.05,132.69,135.81,116.07,101.42,75.73,55.48) > 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] 99 > (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] 9 9 9 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 32.68 26.29 28.37 26.95 42.94 63.77 64.24 76.36 101.42 [2,] 31.54 21.74 27.34 29.08 49.14 59.15 60.03 81.71 75.73 [3,] 32.43 19.20 24.46 28.76 44.61 56.12 59.44 92.60 55.48 [4,] 26.54 19.32 27.46 29.59 40.22 57.42 62.50 90.60 NA [5,] 25.85 19.82 30.23 30.70 44.23 63.52 55.04 92.23 NA [6,] 27.60 20.36 32.33 30.52 45.85 61.71 58.34 94.09 NA [7,] 25.71 24.31 29.87 32.67 53.38 63.01 61.92 102.79 NA [8,] 25.38 25.97 24.87 33.19 53.26 68.18 67.65 109.65 NA [9,] 28.57 25.61 25.48 37.13 51.80 72.03 67.68 124.05 NA [10,] 27.64 24.67 27.28 35.54 55.30 69.75 70.30 132.69 NA [11,] 25.36 25.59 28.24 37.75 57.81 74.41 75.26 135.81 NA [12,] 25.90 26.09 29.58 41.84 63.96 74.33 71.44 116.07 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -1.14 -4.55 -1.03 2.13 6.20 -4.62 -4.21 5.35 -25.69 [2,] 0.89 -2.54 -2.88 -0.32 -4.53 -3.03 -0.59 10.89 -20.25 [3,] -5.89 0.12 3.00 0.83 -4.39 1.30 3.06 -2.00 NA [4,] -0.69 0.50 2.77 1.11 4.01 6.10 -7.46 1.63 NA [5,] 1.75 0.54 2.10 -0.18 1.62 -1.81 3.30 1.86 NA [6,] -1.89 3.95 -2.46 2.15 7.53 1.30 3.58 8.70 NA [7,] -0.33 1.66 -5.00 0.52 -0.12 5.17 5.73 6.86 NA [8,] 3.19 -0.36 0.61 3.94 -1.46 3.85 0.03 14.40 NA [9,] -0.93 -0.94 1.80 -1.59 3.50 -2.28 2.62 8.64 NA [10,] -2.28 0.92 0.96 2.21 2.51 4.66 4.96 3.12 NA [11,] 0.54 0.50 1.34 4.09 6.15 -0.08 -3.82 -19.74 NA [12,] 0.39 2.28 -2.63 1.10 -0.19 -10.09 4.92 -14.65 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/1nh971229091646.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/2yc4l1229091646.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/3o2b41229091646.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/4h6j41229091646.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,] 26.29 21.74 19.20 19.320 19.820 20.360 24.310 24.870 25.480 24.670 [2,] 28.37 29.08 28.76 27.000 28.040 29.060 27.790 25.675 27.090 27.460 [3,] 42.94 49.14 44.61 34.905 37.465 39.090 43.025 43.225 44.465 45.420 [4,] 64.24 60.03 56.12 59.960 59.280 60.025 62.465 67.915 69.855 70.025 [5,] 101.42 81.71 92.60 90.600 92.230 94.090 102.790 109.650 124.050 132.690 [,11] [,12] [1,] 25.360 25.900 [2,] 26.915 27.835 [3,] 47.780 52.900 [4,] 74.835 72.885 [5,] 135.810 116.070 $n [1] 9 9 9 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 24.04847 32.83967 30.2004 16.49307 20.01389 21.79251 23.65505 19.62913 [2,] 61.83153 65.44033 59.0196 53.31693 54.91611 56.38749 62.39495 66.82087 [,9] [,10] [,11] [,12] [1,] 20.57586 21.64258 21.0112 27.73442 [2,] 68.35414 69.19742 74.5488 78.06558 $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(26.29, 28.37, 42.94, 64.24, 101.42, 21.74, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5trwb1229091646.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,] -4.62 -4.53 -5.890 -0.690 -1.810 -2.460 -5.000 -1.460 -2.280 -2.28 -3.820 [2,] -4.55 -3.03 -3.195 -0.095 0.180 -0.295 -0.225 -0.165 -1.265 0.94 -1.950 [3,] -1.14 -2.54 0.475 1.370 1.685 2.865 1.090 1.900 0.435 2.36 0.520 [4,] 2.13 -0.32 2.150 3.390 1.980 5.740 5.450 3.895 3.060 3.89 2.715 [5,] 6.20 0.89 3.060 6.100 3.300 8.700 6.860 3.940 8.640 4.96 6.150 [,12] [1,] -14.65 [2,] -6.36 [3,] 0.10 [4,] 1.69 [5,] 4.92 $n [1] 9 9 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.658133 -3.967267 -2.510794 -0.576771 0.6794942 -0.5062376 -2.080136 [2,] 2.378133 -1.112733 3.460794 3.316771 2.6905058 6.2362376 4.260136 [,8] [,9] [,10] [,11] [,12] [1,] -0.3679743 -1.981007 0.7120876 -2.085936 -4.396846 [2,] 4.1679743 2.851007 4.0079124 3.125936 4.596846 $out [1] -25.69 10.89 -20.25 -7.46 14.40 -19.74 $group [1] 1 2 2 4 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.62, -4.55, -1.14, 2.13, 6.2, -4.53, -3.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ad5u1229091646.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,] 25.360 19.20 24.460 26.950 40.22 56.120 55.040 76.360 55.480 [2,] 25.780 20.09 26.380 29.335 44.42 60.430 59.735 91.415 65.605 [3,] 27.070 24.49 27.850 31.685 50.47 63.645 63.370 98.440 75.730 [4,] 30.055 25.79 29.725 36.335 54.34 70.890 68.990 120.060 88.575 [5,] 32.680 26.29 32.330 41.840 63.96 74.410 75.260 135.810 101.420 $n [1] 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 25.12014 21.89019 26.32432 28.49225 45.94542 58.87412 59.14873 85.37482 [2,] 29.01986 27.08981 29.37568 34.87775 54.99458 68.41588 67.59127 111.50518 [,9] [1,] 54.77646 [2,] 96.68354 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(25.36, 25.78, 27.07, 30.055, 32.68, 19.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7z3mj1229091646.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,] 44.20625 34.905 42.44000 [2,] 46.12500 41.015 43.81687 [3,] 50.11313 43.845 45.90812 [4,] 54.72000 46.600 48.50875 [5,] 57.52875 52.900 51.10000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 46.19289 41.29764 43.76813 [2,] 54.03336 46.39236 48.04812 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(44.20625, 46.125, 50.113125, 54.72, 57.52875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nh971229091646.ps tmp/1nh971229091646.png") > system("convert tmp/2yc4l1229091646.ps tmp/2yc4l1229091646.png") > system("convert tmp/3o2b41229091646.ps tmp/3o2b41229091646.png") > system("convert tmp/4h6j41229091646.ps tmp/4h6j41229091646.png") > system("convert tmp/5trwb1229091646.ps tmp/5trwb1229091646.png") > system("convert tmp/6ad5u1229091646.ps tmp/6ad5u1229091646.png") > system("convert tmp/7z3mj1229091646.ps tmp/7z3mj1229091646.png") > > > proc.time() user system elapsed 1.232 0.983 1.577