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(3.35,3.35,3.35,3.4,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.42,3.43,3.47,3.51,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.58,3.6,3.61,3.61,3.61,3.63,3.68,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.78,3.79,3.79,3.8,3.8,3.8,3.8,3.81,3.95,3.99,4,4.06,4.16,4.19,4.2,4.2,4.2,4.2,4.2,4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68) > 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,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.68 [2,] 3.35 3.42 3.52 3.69 3.81 4.23 4.45 NA [3,] 3.35 3.42 3.52 3.69 3.95 4.38 4.45 NA [4,] 3.40 3.43 3.58 3.69 3.99 4.43 4.45 NA [5,] 3.42 3.47 3.60 3.69 4.00 4.44 4.45 NA [6,] 3.42 3.51 3.61 3.69 4.06 4.44 4.46 NA [7,] 3.42 3.52 3.61 3.78 4.16 4.44 4.46 NA [8,] 3.42 3.52 3.61 3.79 4.19 4.44 4.46 NA [9,] 3.42 3.52 3.63 3.79 4.20 4.44 4.48 NA [10,] 3.42 3.52 3.68 3.80 4.20 4.45 4.58 NA [11,] 3.42 3.52 3.69 3.80 4.20 4.45 4.67 NA [12,] 3.42 3.52 3.69 3.80 4.20 4.45 4.68 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.00 0.00 0.01 0.03 0.00 NA [2,] 0.00 0.00 0.00 0.00 0.14 0.15 0.00 NA [3,] 0.05 0.01 0.06 0.00 0.04 0.05 0.00 NA [4,] 0.02 0.04 0.02 0.00 0.01 0.01 0.00 NA [5,] 0.00 0.04 0.01 0.00 0.06 0.00 0.01 NA [6,] 0.00 0.01 0.00 0.09 0.10 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.01 0.03 0.00 0.00 NA [8,] 0.00 0.00 0.02 0.00 0.01 0.00 0.02 NA [9,] 0.00 0.00 0.05 0.01 0.00 0.01 0.10 NA [10,] 0.00 0.00 0.01 0.00 0.00 0.00 0.09 NA [11,] 0.00 0.00 0.00 0.00 0.00 0.00 0.01 NA [12,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 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/1p43v1209322836.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/2j73l1209322836.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/3nl031209322836.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/41h2p1209322836.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,] 3.350 3.35 3.350 3.400 3.420 3.42 3.420 3.420 3.420 3.420 3.420 3.420 [2,] 3.470 3.47 3.470 3.505 3.535 3.56 3.565 3.565 3.575 3.600 3.605 3.605 [3,] 3.745 3.69 3.690 3.690 3.690 3.69 3.780 3.790 3.790 3.800 3.800 3.800 [4,] 4.325 4.02 4.165 4.210 4.220 4.25 4.300 4.315 4.320 4.325 4.325 4.325 [5,] 4.680 4.45 4.450 4.450 4.450 4.46 4.460 4.460 4.480 4.580 4.670 4.680 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.267385 3.361549 3.274957 3.268985 3.280929 3.277943 3.34107 3.342112 [2,] 4.222615 4.018451 4.105043 4.111015 4.099071 4.102057 4.21893 4.237888 [,9] [,10] [,11] [,12] [1,] 3.345098 3.367042 3.370028 3.370028 [2,] 4.234902 4.232958 4.229972 4.229972 $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(3.35, 3.47, 3.745, 4.325, 4.68, 3.35, 3.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cpk51209322836.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] [,12] [1,] 0.000 0.00 0.000 0.000 0.000 0.00 0.000 0.000 0.00 0.000 0 0 [2,] 0.000 0.00 0.005 0.005 0.000 0.00 0.000 0.000 0.00 0.000 0 0 [3,] 0.000 0.00 0.040 0.010 0.010 0.00 0.000 0.000 0.01 0.000 0 0 [4,] 0.005 0.07 0.050 0.020 0.025 0.05 0.005 0.015 0.03 0.005 0 0 [5,] 0.010 0.15 0.060 0.040 0.060 0.10 0.010 0.020 0.05 0.010 0 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.002985919 -0.04180287 0.01312673 0.001042242 -0.004929597 -0.02985919 [2,] 0.002985919 0.04180287 0.06687327 0.018957758 0.024929597 0.02985919 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.002985919 -0.008957758 -0.007915516 -0.002985919 0 0 [2,] 0.002985919 0.008957758 0.027915516 0.002985919 0 0 $out [1] 0.03 0.03 0.10 0.09 0.01 $group [1] 1 7 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.00500000000000012, 0.0100000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63us11209322836.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,] 3.350 3.420 3.520 3.690 3.80 4.380 4.45 4.68 [2,] 3.375 3.425 3.550 3.690 3.97 4.405 4.45 4.68 [3,] 3.420 3.515 3.610 3.735 4.11 4.440 4.46 4.68 [4,] 3.420 3.520 3.655 3.795 4.20 4.445 4.53 4.68 [5,] 3.420 3.520 3.690 3.800 4.20 4.450 4.58 4.68 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.399475 3.47167 3.562109 3.687109 4.005095 4.421756 4.423511 4.68 [2,] 3.440525 3.55833 3.657891 3.782891 4.214905 4.458244 4.496489 4.68 $out [1] 4.20 4.23 4.67 4.68 $group [1] 6 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(3.35, 3.375, 3.42, 3.42, 3.42, 3.42, 3.425, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7kxo11209322836.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.781429 3.6900 3.74500 [2,] 3.860000 3.6900 3.86750 [3,] 3.900804 3.7625 3.91875 [4,] 3.937857 3.7950 3.95500 [5,] 3.965714 3.8000 3.96500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.865292 3.714609 3.878841 [2,] 3.936315 3.810391 3.958659 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.78142857142857, 3.86, 3.90080357142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1p43v1209322836.ps tmp/1p43v1209322836.png") > system("convert tmp/2j73l1209322836.ps tmp/2j73l1209322836.png") > system("convert tmp/3nl031209322836.ps tmp/3nl031209322836.png") > system("convert tmp/41h2p1209322836.ps tmp/41h2p1209322836.png") > system("convert tmp/5cpk51209322836.ps tmp/5cpk51209322836.png") > system("convert tmp/63us11209322836.ps tmp/63us11209322836.png") > system("convert tmp/7kxo11209322836.ps tmp/7kxo11209322836.png") > > > proc.time() user system elapsed 2.580 1.606 2.811