R version 2.7.1 (2008-06-23) 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(0.31,0.32,0.31,0.32,0.31,0.91,0.68,0.48,0.43,0.39,0.44,0.5,0.56,0.59,0.6,0.59,0.59,0.78,0.64,0.47,0.4,0.36,0.36,0.36,0.36,0.35,0.35,0.35,0.33,0.78,0.71,0.62,0.52,0.46,0.43,0.43,0.42,0.42,0.42,0.42,0.43,0.99,1.03,0.83,0.64,0.6,0.58,0.58,0.58,0.57,0.57,0.56,0.56,0.88,0.84,0.69,0.59,0.54,0.52,0.52,0.51,0.52,0.51,0.51,0.53,0.95,0.98,0.88,0.81,0.77,0.76,0.75,0.73,0.74,0.73,0.75,0.77,1.09,1.03,0.9,0.76,0.66,0.63,0.61,0.61,0.61,0.61,0.61,0.62,0.76,0.83,0.81,0.77,0.75,0.76,0.76) > 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] 96 > (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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.31 0.56 0.36 0.42 0.58 0.51 0.73 0.61 NA [2,] 0.32 0.59 0.35 0.42 0.57 0.52 0.74 0.61 NA [3,] 0.31 0.60 0.35 0.42 0.57 0.51 0.73 0.61 NA [4,] 0.32 0.59 0.35 0.42 0.56 0.51 0.75 0.61 NA [5,] 0.31 0.59 0.33 0.43 0.56 0.53 0.77 0.62 NA [6,] 0.91 0.78 0.78 0.99 0.88 0.95 1.09 0.76 NA [7,] 0.68 0.64 0.71 1.03 0.84 0.98 1.03 0.83 NA [8,] 0.48 0.47 0.62 0.83 0.69 0.88 0.90 0.81 NA [9,] 0.43 0.40 0.52 0.64 0.59 0.81 0.76 0.77 NA [10,] 0.39 0.36 0.46 0.60 0.54 0.77 0.66 0.75 NA [11,] 0.44 0.36 0.43 0.58 0.52 0.76 0.63 0.76 NA [12,] 0.50 0.36 0.43 0.58 0.52 0.75 0.61 0.76 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.01 0.03 -0.01 0.00 -0.01 0.01 0.01 0.00 NA [2,] -0.01 0.01 0.00 0.00 0.00 -0.01 -0.01 0.00 NA [3,] 0.01 -0.01 0.00 0.00 -0.01 0.00 0.02 0.00 NA [4,] -0.01 0.00 -0.02 0.01 0.00 0.02 0.02 0.01 NA [5,] 0.60 0.19 0.45 0.56 0.32 0.42 0.32 0.14 NA [6,] -0.23 -0.14 -0.07 0.04 -0.04 0.03 -0.06 0.07 NA [7,] -0.20 -0.17 -0.09 -0.20 -0.15 -0.10 -0.13 -0.02 NA [8,] -0.05 -0.07 -0.10 -0.19 -0.10 -0.07 -0.14 -0.04 NA [9,] -0.04 -0.04 -0.06 -0.04 -0.05 -0.04 -0.10 -0.02 NA [10,] 0.05 0.00 -0.03 -0.02 -0.02 -0.01 -0.03 0.01 NA [11,] 0.06 0.00 0.00 0.00 0.00 -0.01 -0.02 0.00 NA [12,] 0.06 0.00 -0.01 0.00 -0.01 -0.02 0.00 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/1styy1218460446.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/2xfz81218460446.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/3pqop1218460446.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/45g501218460446.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,] 0.310 0.320 0.310 0.320 0.310 0.760 0.640 0.470 0.400 0.360 0.360 0.360 [2,] 0.390 0.385 0.385 0.385 0.380 0.780 0.695 0.550 0.475 0.425 0.435 0.465 [3,] 0.535 0.545 0.540 0.535 0.545 0.895 0.835 0.750 0.615 0.570 0.550 0.550 [4,] 0.595 0.600 0.605 0.600 0.605 0.970 1.005 0.855 0.765 0.705 0.695 0.680 [5,] 0.730 0.740 0.730 0.750 0.770 1.090 1.030 0.900 0.810 0.770 0.760 0.760 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4204841 0.4248979 0.4171048 0.4148979 0.4193118 0.7888633 0.6618295 [2,] 0.6495159 0.6651021 0.6628952 0.6551021 0.6706882 1.0011367 1.0081705 [,8] [,9] [,10] [,11] [,12] [1,] 0.5796226 0.4530018 0.413588 0.4047603 0.4298979 [2,] 0.9203774 0.7769982 0.726412 0.6952397 0.6701021 $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(0.31, 0.39, 0.535, 0.595, 0.73, 0.32, 0.385, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cmro1218460446.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.010 -0.01 -0.010 -0.020 0.140 -0.230 -0.200 -0.190 -0.060 -0.030 -0.010 [2,] -0.005 -0.01 -0.005 -0.005 0.255 -0.105 -0.185 -0.120 -0.055 -0.025 -0.005 [3,] 0.005 0.00 0.000 0.005 0.370 -0.050 -0.140 -0.085 -0.040 -0.015 0.000 [4,] 0.010 0.00 0.005 0.015 0.505 0.035 -0.095 -0.060 -0.040 0.005 0.000 [5,] 0.030 0.01 0.010 0.020 0.600 0.070 -0.020 -0.040 -0.020 0.050 0.000 [,12] [1,] -0.02 [2,] -0.01 [3,] 0.00 [4,] 0.00 [5,] 0.00 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.003379215 -0.005586144 -0.005586144 -0.006172287 0.2303464 -0.12820601 [2,] 0.013379215 0.005586144 0.005586144 0.016172287 0.5096536 0.02820601 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1902753 -0.11851686 -0.04837922 -0.031758431 -0.002793072 -0.005971839 [2,] -0.0897247 -0.05148314 -0.03162078 0.001758431 0.002793072 0.005971839 $out [1] 0.02 -0.10 0.06 -0.02 0.06 $group [1] 3 9 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.005, 0.005, 0.01, 0.0299999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64czt1218460446.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,] 0.310 0.360 0.33 0.420 0.52 0.510 0.610 0.610 NA [2,] 0.315 0.380 0.35 0.420 0.55 0.515 0.695 0.610 NA [3,] 0.410 0.575 0.43 0.580 0.57 0.755 0.745 0.755 NA [4,] 0.490 0.595 0.57 0.735 0.64 0.845 0.835 0.765 NA [5,] 0.680 0.780 0.78 1.030 0.69 0.980 1.030 0.830 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3301813 0.4769371 0.3296565 0.4363264 0.5289504 0.6044848 0.681145 [2,] 0.4898187 0.6730629 0.5303435 0.7236736 0.6110496 0.9055152 0.808855 [,8] [,9] [1,] 0.6843035 NA [2,] 0.8256965 NA $out [1] 0.91 0.88 0.84 1.09 $group [1] 1 5 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.31, 0.315, 0.41, 0.49, 0.68, 0.36, 0.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wnl11218460446.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,] 0.510000 0.5350 0.496250 [2,] 0.514375 0.5425 0.500000 [3,] 0.561875 0.5500 0.556250 [4,] 0.662500 0.6825 0.671875 [5,] 0.842500 0.8350 0.870000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.4943142 0.4861451 0.4778567 [2,] 0.6294358 0.6138549 0.6346433 $out [1] 0.8925 0.8950 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.51, 0.514375, 0.561875, 0.6625, 0.8425, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1styy1218460446.ps tmp/1styy1218460446.png") > system("convert tmp/2xfz81218460446.ps tmp/2xfz81218460446.png") > system("convert tmp/3pqop1218460446.ps tmp/3pqop1218460446.png") > system("convert tmp/45g501218460446.ps tmp/45g501218460446.png") > system("convert tmp/5cmro1218460446.ps tmp/5cmro1218460446.png") > system("convert tmp/64czt1218460446.ps tmp/64czt1218460446.png") > system("convert tmp/7wnl11218460446.ps tmp/7wnl11218460446.png") > > > proc.time() user system elapsed 1.424 0.936 1.702