R version 2.8.1 (2008-12-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.97,3.04,3.12,3.21,3.34,3.45,3.74,4.02,4.24,4.87,5.62,6.02,5.98,5.89,5.76,5.58,5.39,5.19,5.16,5.2,5.25,5.26,5.21,5.18,5.13,5.03,5.01,4.87,4.86,4.82,4.69,4.65,4.61,4.47,4.37,4.29,4.2,4.19,4.09,3.88,3.87,3.74,3.61,3.43,3.29,3.18,3.07,3.02,2.97,2.98,3.01,3.06,3.12,3.16,3.19,3.21,3.27,3.36,3.45,3.52,3.58,3.62,3.5,3.43,3.41,3.48,3.63,3.76,3.8,3.72,3.67,3.58,3.47,3.43,3.55,3.65,3.7,3.7,3.93,4.15,4.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] 81 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.97 5.98 5.13 4.20 2.97 3.58 3.47 [2,] 3.04 5.89 5.03 4.19 2.98 3.62 3.43 [3,] 3.12 5.76 5.01 4.09 3.01 3.50 3.55 [4,] 3.21 5.58 4.87 3.88 3.06 3.43 3.65 [5,] 3.34 5.39 4.86 3.87 3.12 3.41 3.70 [6,] 3.45 5.19 4.82 3.74 3.16 3.48 3.70 [7,] 3.74 5.16 4.69 3.61 3.19 3.63 3.93 [8,] 4.02 5.20 4.65 3.43 3.21 3.76 4.15 [9,] 4.24 5.25 4.61 3.29 3.27 3.80 4.24 [10,] 4.87 5.26 4.47 3.18 3.36 3.72 NA [11,] 5.62 5.21 4.37 3.07 3.45 3.67 NA [12,] 6.02 5.18 4.29 3.02 3.52 3.58 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.07 -0.09 -0.10 -0.01 0.01 0.04 -0.04 [2,] 0.08 -0.13 -0.02 -0.10 0.03 -0.12 0.12 [3,] 0.09 -0.18 -0.14 -0.21 0.05 -0.07 0.10 [4,] 0.13 -0.19 -0.01 -0.01 0.06 -0.02 0.05 [5,] 0.11 -0.20 -0.04 -0.13 0.04 0.07 0.00 [6,] 0.29 -0.03 -0.13 -0.13 0.03 0.15 0.23 [7,] 0.28 0.04 -0.04 -0.18 0.02 0.13 0.22 [8,] 0.22 0.05 -0.04 -0.14 0.06 0.04 0.09 [9,] 0.63 0.01 -0.14 -0.11 0.09 -0.08 NA [10,] 0.75 -0.05 -0.10 -0.11 0.09 -0.05 NA [11,] 0.40 -0.03 -0.08 -0.05 0.07 -0.09 NA [12,] -0.04 -0.05 -0.09 -0.05 0.06 -0.11 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/rcomp/tmp/15tvi1258035585.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/rcomp/tmp/2j1yv1258035585.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/rcomp/tmp/3qszz1258035585.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/rcomp/tmp/4p34g1258035585.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.970 2.980 3.01 3.060 3.120 3.160 3.19 3.210 3.270 3.180 3.07 3.020 [2,] 3.220 3.235 3.31 3.320 3.375 3.465 3.62 3.595 3.545 3.360 3.45 3.520 [3,] 3.580 3.620 3.55 3.650 3.700 3.700 3.74 4.020 4.240 4.095 4.02 3.935 [4,] 4.665 4.610 4.55 4.375 4.365 4.280 4.31 4.400 4.425 4.870 5.21 5.180 [5,] 5.980 5.890 5.76 5.580 5.390 5.190 5.16 5.200 5.250 5.260 5.62 6.020 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.717069 2.798872 2.809492 3.019971 3.108788 3.213295 3.327943 3.539267 [2,] 4.442931 4.441128 4.290508 4.280029 4.291212 4.186705 4.152057 4.500733 [,9] [,10] [,11] [,12] [1,] 3.714478 3.121001 2.884743 2.864246 [2,] 4.765522 5.068999 5.155257 5.005754 $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(2.97, 3.22, 3.58, 4.665, 5.98, 2.98, 3.235, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/55j1h1258035585.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.100 -0.130 -0.21 -0.020 -0.200 -0.13 -0.180 -0.040 -0.140 -0.11 -0.09 [2,] -0.065 -0.110 -0.16 -0.015 -0.085 -0.08 -0.010 0.000 -0.110 -0.10 -0.08 [3,] -0.010 -0.020 -0.07 -0.010 0.000 0.03 0.040 0.050 -0.035 -0.05 -0.04 [4,] 0.025 0.055 0.07 0.055 0.055 0.19 0.175 0.075 0.090 0.09 0.07 [5,] 0.070 0.120 0.10 0.130 0.110 0.29 0.280 0.090 0.090 0.09 0.07 [,12] [1,] -0.11 [2,] -0.09 [3,] -0.05 [4,] -0.04 [5,] -0.04 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.06374655 -0.11853534 -0.20735229 -0.05180287 -0.08360574 -0.1312396 [2,] 0.04374655 0.07853534 0.06735229 0.03180287 0.08360574 0.1912396 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.07047902 0.00521121 -0.16400646 -0.17255614 -0.13675484 -0.08225161 [2,] 0.15047902 0.09478879 0.09400646 0.07255614 0.05675484 -0.01774839 $out [1] -0.19 0.22 -0.14 0.63 0.75 0.40 0.06 $group [1] 4 8 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0999999999999996, -0.0650000000000004, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6q9cv1258035585.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] [1,] 2.970 5.160 4.290 3.020 2.970 3.410 3.43 [2,] 3.165 5.195 4.540 3.235 3.035 3.490 3.55 [3,] 3.595 5.255 4.755 3.675 3.175 3.600 3.70 [4,] 4.555 5.670 4.940 3.985 3.315 3.695 3.93 [5,] 6.020 5.980 5.130 4.200 3.520 3.800 4.24 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.961012 5.038349 4.572557 3.33292 3.04729 3.506498 3.499867 [2,] 4.228988 5.471651 4.937443 4.01708 3.30271 3.693502 3.900133 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.97, 3.165, 3.595, 4.555, 6.02, 5.16, 5.195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/71tu61258035585.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,] 3.934286 3.550 3.84750 [2,] 3.974286 3.635 3.89750 [3,] 4.034286 3.720 3.95375 [4,] 4.121667 4.020 4.05375 [5,] 4.268333 4.240 4.25250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.967064 3.544399 3.882483 [2,] 4.101507 3.895601 4.025017 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.93428571428571, 3.97428571428571, 4.03428571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15tvi1258035585.ps tmp/15tvi1258035585.png") > system("convert tmp/2j1yv1258035585.ps tmp/2j1yv1258035585.png") > system("convert tmp/3qszz1258035585.ps tmp/3qszz1258035585.png") > system("convert tmp/4p34g1258035585.ps tmp/4p34g1258035585.png") > system("convert tmp/55j1h1258035585.ps tmp/55j1h1258035585.png") > system("convert tmp/6q9cv1258035585.ps tmp/6q9cv1258035585.png") > system("convert tmp/71tu61258035585.ps tmp/71tu61258035585.png") > > > proc.time() user system elapsed 1.530 1.440 2.833