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.27,3.27,3.27,3.27,3.27,3.28,3.32,3.34,3.34,3.35,3.35,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] 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,] 3.27 3.35 3.42 3.52 3.69 3.81 4.23 4.45 NA [2,] 3.27 3.35 3.42 3.52 3.69 3.95 4.38 4.45 NA [3,] 3.27 3.40 3.43 3.58 3.69 3.99 4.43 4.45 NA [4,] 3.27 3.42 3.47 3.60 3.69 4.00 4.44 4.45 NA [5,] 3.27 3.42 3.51 3.61 3.69 4.06 4.44 4.46 NA [6,] 3.28 3.42 3.52 3.61 3.78 4.16 4.44 4.46 NA [7,] 3.32 3.42 3.52 3.61 3.79 4.19 4.44 4.46 NA [8,] 3.34 3.42 3.52 3.63 3.79 4.20 4.44 4.48 NA [9,] 3.34 3.42 3.52 3.68 3.80 4.20 4.45 4.58 NA [10,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.67 NA [11,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.68 NA [12,] 3.35 3.42 3.52 3.69 3.80 4.20 4.45 4.68 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.00 0.00 0.00 0.00 0.00 0.14 0.15 0.00 NA [2,] 0.00 0.05 0.01 0.06 0.00 0.04 0.05 0.00 NA [3,] 0.00 0.02 0.04 0.02 0.00 0.01 0.01 0.00 NA [4,] 0.00 0.00 0.04 0.01 0.00 0.06 0.00 0.01 NA [5,] 0.01 0.00 0.01 0.00 0.09 0.10 0.00 0.00 NA [6,] 0.04 0.00 0.00 0.00 0.01 0.03 0.00 0.00 NA [7,] 0.02 0.00 0.00 0.02 0.00 0.01 0.00 0.02 NA [8,] 0.00 0.00 0.00 0.05 0.01 0.00 0.01 0.10 NA [9,] 0.01 0.00 0.00 0.01 0.00 0.00 0.00 0.09 NA [10,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 NA [11,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [12,] 0.00 0.00 0.00 0.00 0.01 0.03 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/1kj4b1209415985.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/2hlrp1209415985.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/36vvy1209415985.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/4skmc1209415985.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.270 3.270 3.270 3.270 3.270 3.280 3.320 3.34 3.340 3.350 3.350 3.350 [2,] 3.385 3.385 3.415 3.445 3.465 3.470 3.470 3.47 3.470 3.470 3.470 3.470 [3,] 3.605 3.605 3.635 3.645 3.650 3.695 3.700 3.71 3.740 3.745 3.745 3.745 [4,] 4.020 4.165 4.210 4.220 4.250 4.300 4.315 4.32 4.325 4.325 4.325 4.325 [5,] 4.450 4.450 4.450 4.450 4.460 4.460 4.460 4.48 4.580 4.670 4.680 4.680 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.25028 3.169281 3.190902 3.212074 3.211488 3.23135 3.227971 3.235178 [2,] 3.95972 4.040719 4.079098 4.077926 4.088512 4.15865 4.172029 4.184822 [,9] [,10] [,11] [,12] [1,] 3.262385 3.267385 3.267385 3.267385 [2,] 4.217615 4.222615 4.222615 4.222615 $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.27, 3.385, 3.605, 4.02, 4.45, 3.27, 3.385, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rm691209415985.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.00 0.000 0.00 0.000 0.000 0.00 0.000 0.000 0.00 0 0 0.000 [2,] 0.00 0.000 0.00 0.000 0.000 0.00 0.000 0.000 0.00 0 0 0.000 [3,] 0.00 0.025 0.01 0.005 0.005 0.00 0.005 0.005 0.00 0 0 0.000 [4,] 0.07 0.050 0.02 0.025 0.050 0.02 0.020 0.030 0.01 0 0 0.005 [5,] 0.15 0.060 0.04 0.060 0.100 0.04 0.020 0.050 0.01 0 0 0.010 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.03910300 -0.002930718 -0.001172287 -0.008965359 -0.02293072 -0.01117229 [2,] 0.03910300 0.052930718 0.021172287 0.018965359 0.03293072 0.01117229 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.006172287 -0.01175843 -0.005586144 0 0 -0.002985919 [2,] 0.016172287 0.02175843 0.005586144 0 0 0.002985919 $out [1] 0.10 0.09 0.01 0.03 $group [1] 8 9 10 12 $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.07, 0.149999999999999, 0, 0, 0.0250000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6n8c41209415985.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,] 3.270 3.40 3.42 3.520 3.690 3.810 4.430 4.450 NA [2,] 3.270 3.41 3.45 3.590 3.690 3.995 4.435 4.450 NA [3,] 3.300 3.42 3.52 3.610 3.785 4.175 4.440 4.460 NA [4,] 3.345 3.42 3.52 3.685 3.800 4.200 4.450 4.625 NA [5,] 3.350 3.42 3.52 3.690 3.800 4.200 4.450 4.680 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.265792 3.415439 3.488073 3.56667 3.734828 4.081498 4.433158 4.380181 [2,] 3.334208 3.424561 3.551927 3.65333 3.835172 4.268502 4.446842 4.539819 [,9] [1,] NA [2,] NA $out [1] 3.35 3.35 4.23 4.38 $group [1] 2 2 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(3.27, 3.27, 3.3, 3.345, 3.35, 3.4, 3.41, 3.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7y6bx1209415985.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.717500 3.6050 3.658750 [2,] 3.786250 3.6400 3.772500 [3,] 3.838750 3.6975 3.868125 [4,] 3.880625 3.7425 3.878750 [5,] 3.888750 3.7450 3.878750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.795705 3.650749 3.819664 [2,] 3.881795 3.744251 3.916586 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.7175, 3.78625, 3.83875, 3.880625, 3.88875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kj4b1209415985.ps tmp/1kj4b1209415985.png") > system("convert tmp/2hlrp1209415985.ps tmp/2hlrp1209415985.png") > system("convert tmp/36vvy1209415985.ps tmp/36vvy1209415985.png") > system("convert tmp/4skmc1209415985.ps tmp/4skmc1209415985.png") > system("convert tmp/5rm691209415985.ps tmp/5rm691209415985.png") > system("convert tmp/6n8c41209415985.ps tmp/6n8c41209415985.png") > system("convert tmp/7y6bx1209415985.ps tmp/7y6bx1209415985.png") > > > proc.time() user system elapsed 1.453 0.971 1.721