R version 2.7.0 (2008-04-22) 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(2.36,1.95,2.16,2.76,2.09,1.49,1.17,1.3,1.26,2.17,2.03,2.18,2.61,2.58,3.86,3.81,2.41,1.47,1.33,1.38,1.57,2.6,2.18,2.36,2.24,2.41,2.51,2.98,1.87,1.9,1.47,1.45,2.71,2.9,2.11,2.18,2.24,2.05,2.42,2.77,1.99,1.47,1.09,0.93,1.32,2.03,2.04,2.78,2.8,3.03,3.11,2.75,2.78,1.76,1.29,1.28,1.43,1.71,1.89,1.84,2.08,2.09,2.36,2.99,2.75,1.58,1.69,1.3,1.97,1.84,1.96,1.86,2.75,2.62,2.41,3.61,2.03,1.45,1.4,1.3,1.58,2.1,2.27,2.54) > 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,] 2.36 2.61 2.24 2.24 2.80 2.08 2.75 NA [2,] 1.95 2.58 2.41 2.05 3.03 2.09 2.62 NA [3,] 2.16 3.86 2.51 2.42 3.11 2.36 2.41 NA [4,] 2.76 3.81 2.98 2.77 2.75 2.99 3.61 NA [5,] 2.09 2.41 1.87 1.99 2.78 2.75 2.03 NA [6,] 1.49 1.47 1.90 1.47 1.76 1.58 1.45 NA [7,] 1.17 1.33 1.47 1.09 1.29 1.69 1.40 NA [8,] 1.30 1.38 1.45 0.93 1.28 1.30 1.30 NA [9,] 1.26 1.57 2.71 1.32 1.43 1.97 1.58 NA [10,] 2.17 2.60 2.90 2.03 1.71 1.84 2.10 NA [11,] 2.03 2.18 2.11 2.04 1.89 1.96 2.27 NA [12,] 2.18 2.36 2.18 2.78 1.84 1.86 2.54 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.41 -0.03 0.17 -0.19 0.23 0.01 -0.13 NA [2,] 0.21 1.28 0.10 0.37 0.08 0.27 -0.21 NA [3,] 0.60 -0.05 0.47 0.35 -0.36 0.63 1.20 NA [4,] -0.67 -1.40 -1.11 -0.78 0.03 -0.24 -1.58 NA [5,] -0.60 -0.94 0.03 -0.52 -1.02 -1.17 -0.58 NA [6,] -0.32 -0.14 -0.43 -0.38 -0.47 0.11 -0.05 NA [7,] 0.13 0.05 -0.02 -0.16 -0.01 -0.39 -0.10 NA [8,] -0.04 0.19 1.26 0.39 0.15 0.67 0.28 NA [9,] 0.91 1.03 0.19 0.71 0.28 -0.13 0.52 NA [10,] -0.14 -0.42 -0.79 0.01 0.18 0.12 0.17 NA [11,] 0.15 0.18 0.07 0.74 -0.05 -0.10 0.27 NA [12,] 0.43 -0.12 0.06 0.02 0.24 0.89 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/147wh1225910333.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/2g2eb1225910333.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/3upm51225910333.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/4y29l1225910333.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] [,11] [,12] [1,] 2.08 1.95 2.160 2.750 1.87 1.45 1.090 1.28 1.260 1.710 1.890 1.84 [2,] 2.24 2.07 2.385 2.765 2.01 1.47 1.230 1.29 1.375 1.935 1.995 2.02 [3,] 2.36 2.41 2.420 2.980 2.09 1.49 1.330 1.30 1.570 2.100 2.040 2.18 [4,] 2.68 2.60 2.810 3.300 2.58 1.67 1.435 1.34 1.775 2.385 2.145 2.45 [5,] 2.80 3.03 3.110 3.810 2.78 1.90 1.690 1.38 1.970 2.900 2.270 2.78 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.097239 2.093493 2.166197 2.660507 1.749605 1.370563 1.207577 1.270141 [2,] 2.622761 2.726507 2.673803 3.299493 2.430395 1.609437 1.452423 1.329859 [,9] [,10] [,11] [,12] [1,] 1.331126 1.831267 1.950422 1.923211 [2,] 1.808874 2.368733 2.129578 2.436789 $out [1] 3.86 1.45 0.93 2.71 $group [1] 3 8 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.08, 2.24, 2.36, 2.68, 2.8, 1.95, 2.07, 2.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ixgy1225910333.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,] -0.41 -0.21 -0.360 -1.580 -1.17 -0.470 -0.16 -0.04 -0.130 -0.790 -0.100 [2,] -0.16 0.09 0.150 -1.255 -0.98 -0.405 -0.13 0.17 0.235 -0.280 0.010 [3,] -0.03 0.21 0.470 -0.780 -0.60 -0.320 -0.02 0.28 0.520 0.010 0.150 [4,] 0.09 0.32 0.615 -0.455 -0.55 -0.095 0.02 0.53 0.810 0.145 0.225 [5,] 0.23 0.37 1.200 0.030 0.03 0.110 0.13 0.67 1.030 0.180 0.270 [,12] [1,] -0.12 [2,] 0.02 [3,] 0.15 [4,] 0.43 [5,] 0.89 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1792960 0.07264771 0.1923095 -1.2577471 -0.8567891 -0.505127 [2,] 0.1192960 0.34735229 0.7476905 -0.3022529 -0.3432109 -0.134873 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.10957758 0.06501381 0.1766193 -0.2438031 0.02160547 -0.1144632 [2,] 0.06957758 0.49498619 0.8633807 0.2638031 0.27839453 0.4144632 $out [1] 1.28 -0.39 1.26 0.74 $group [1] 2 7 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.41, -0.16, -0.0299999999999998, 0.0899999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tp141225910333.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,] 1.170 1.330 1.450 0.930 1.280 1.300 1.300 NA [2,] 1.395 1.520 1.885 1.395 1.570 1.765 1.515 NA [3,] 2.060 2.385 2.210 2.035 1.865 1.965 2.185 NA [4,] 2.175 2.605 2.610 2.330 2.790 2.225 2.580 NA [5,] 2.760 3.860 2.980 2.780 3.110 2.750 3.610 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.704237 1.890124 1.879323 1.608540 1.308550 1.755191 1.699246 NA [2,] 2.415763 2.879876 2.540677 2.461460 2.421450 2.174809 2.670754 NA $out [1] 2.99 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.17, 1.395, 2.06, 2.175, 2.76, 1.33, 1.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7sa3h1225910333.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,] 1.277143 1.300 1.3150 [2,] 1.640000 1.530 1.5725 [3,] 2.220714 2.095 2.1975 [4,] 2.415000 2.385 2.3975 [5,] 3.095714 2.980 3.0325 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.867232 1.705029 1.821212 [2,] 2.574197 2.484971 2.573788 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.27714285714286, 1.64, 2.22071428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/147wh1225910333.ps tmp/147wh1225910333.png") > system("convert tmp/2g2eb1225910333.ps tmp/2g2eb1225910333.png") > system("convert tmp/3upm51225910333.ps tmp/3upm51225910333.png") > system("convert tmp/4y29l1225910333.ps tmp/4y29l1225910333.png") > system("convert tmp/5ixgy1225910333.ps tmp/5ixgy1225910333.png") > system("convert tmp/6tp141225910333.ps tmp/6tp141225910333.png") > system("convert tmp/7sa3h1225910333.ps tmp/7sa3h1225910333.png") > > > proc.time() user system elapsed 3.249 1.765 3.515