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.6200,0.6200,0.6100,0.6100,0.6100,0.6000,0.5900,0.5900,0.5900,0.5900,0.5900,0.5700,0.5800,0.5700,0.5900,0.6200,0.6200,0.6100,0.6400,0.6500,0.6700,0.6700,0.6900,0.7400,0.7300,0.7400,0.7500,0.7400,0.7600,0.7600,0.7800,0.7900,0.8900,0.8800,0.8800,0.8400,0.7600,0.7700,0.7600,0.7700,0.7800,0.7900,0.7800,0.7600,0.7800,0.7600,0.7400,0.7300,0.7200,0.7100,0.7300,0.7500,0.7500,0.7200,0.7200,0.7200,0.7400,0.7800,0.7400,0.7400,0.7500,0.7800,0.8100,0.7500,0.7000,0.7100,0.7100,0.7300,0.7400,0.7400,0.7500,0.7400,0.7400,0.7300,0.7600,0.8000,0.8300,0.8100,0.8300,0.8800,0.8900,0.9300,0.9100,0.9000,0.8600,0.8800,0.9300,0.9800,0.9700,1.0300,1.0600,1.0600,1.0800,1.0900,1.0400,1.0000) > 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.62 0.58 0.73 0.76 0.72 0.75 0.74 0.86 NA [2,] 0.62 0.57 0.74 0.77 0.71 0.78 0.73 0.88 NA [3,] 0.61 0.59 0.75 0.76 0.73 0.81 0.76 0.93 NA [4,] 0.61 0.62 0.74 0.77 0.75 0.75 0.80 0.98 NA [5,] 0.61 0.62 0.76 0.78 0.75 0.70 0.83 0.97 NA [6,] 0.60 0.61 0.76 0.79 0.72 0.71 0.81 1.03 NA [7,] 0.59 0.64 0.78 0.78 0.72 0.71 0.83 1.06 NA [8,] 0.59 0.65 0.79 0.76 0.72 0.73 0.88 1.06 NA [9,] 0.59 0.67 0.89 0.78 0.74 0.74 0.89 1.08 NA [10,] 0.59 0.67 0.88 0.76 0.78 0.74 0.93 1.09 NA [11,] 0.59 0.69 0.88 0.74 0.74 0.75 0.91 1.04 NA [12,] 0.57 0.74 0.84 0.73 0.74 0.74 0.90 1.00 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.00 -0.01 0.01 0.01 -0.01 0.03 -0.01 0.02 NA [2,] -0.01 0.02 0.01 -0.01 0.02 0.03 0.03 0.05 NA [3,] 0.00 0.03 -0.01 0.01 0.02 -0.06 0.04 0.05 NA [4,] 0.00 0.00 0.02 0.01 0.00 -0.05 0.03 -0.01 NA [5,] -0.01 -0.01 0.00 0.01 -0.03 0.01 -0.02 0.06 NA [6,] -0.01 0.03 0.02 -0.01 0.00 0.00 0.02 0.03 NA [7,] 0.00 0.01 0.01 -0.02 0.00 0.02 0.05 0.00 NA [8,] 0.00 0.02 0.10 0.02 0.02 0.01 0.01 0.02 NA [9,] 0.00 0.00 -0.01 -0.02 0.04 0.00 0.04 0.01 NA [10,] 0.00 0.02 0.00 -0.02 -0.04 0.01 -0.02 -0.05 NA [11,] -0.02 0.05 -0.04 -0.01 0.00 -0.01 -0.01 -0.04 NA [12,] 0.01 -0.01 -0.08 -0.01 0.01 0.00 -0.04 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/1yyst1218981655.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/2gi031218981655.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/3bfo41218981655.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/4rimy1218981655.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.580 0.570 0.590 0.610 0.610 0.60 0.590 0.590 0.590 0.590 0.590 0.570 [2,] 0.670 0.665 0.670 0.680 0.660 0.66 0.675 0.685 0.705 0.705 0.715 0.735 [3,] 0.735 0.735 0.755 0.750 0.755 0.74 0.750 0.745 0.760 0.770 0.745 0.740 [4,] 0.755 0.775 0.785 0.785 0.805 0.80 0.805 0.835 0.890 0.905 0.895 0.870 [5,] 0.860 0.880 0.930 0.800 0.970 0.81 0.830 0.880 1.080 1.090 1.040 1.000 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6875178 0.6735524 0.6907593 0.6913455 0.6740009 0.661794 0.6773801 [2,] 0.7824822 0.7964476 0.8192407 0.8086545 0.8359991 0.818206 0.8226199 [,8] [,9] [,10] [,11] [,12] [1,] 0.6612078 0.6566563 0.6582771 0.6444494 0.664587 [2,] 0.8287922 0.8633437 0.8817229 0.8455506 0.815413 $out [1] 0.98 1.03 1.06 1.06 $group [1] 4 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.58, 0.67, 0.735, 0.755, 0.86, 0.57, 0.665, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/538171218981655.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.060 -0.010 -0.030 -0.010 -0.020 0.00 -0.020 -0.050 -0.040 [2,] -0.010 0.00 -0.005 -0.005 -0.015 -0.005 0.000 0.01 -0.005 -0.030 -0.030 [3,] 0.005 0.02 0.015 0.000 -0.005 0.010 0.005 0.02 0.000 -0.010 -0.010 [4,] 0.015 0.03 0.035 0.015 0.010 0.025 0.015 0.02 0.025 0.005 -0.005 [5,] 0.030 0.05 0.050 0.030 0.010 0.030 0.020 0.02 0.040 0.020 0.000 [,12] [1,] -0.040 [2,] -0.025 [3,] -0.010 [4,] 0.005 [5,] 0.010 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.008965359 0.003241569 -0.007344574 -0.01117229 -0.018965359 [2,] 0.018965359 0.036758431 0.037344574 0.01117229 0.008965359 [,6] [,7] [,8] [,9] [,10] [,11] [1,] -0.006758431 -0.003379215 0.01441386 -0.01675843 -0.029551502 -0.023965359 [2,] 0.026758431 0.013379215 0.02558614 0.01675843 0.009551502 0.003965359 [,12] [1,] -0.027915516 [2,] 0.007915516 $out [1] -0.05 0.06 0.05 0.10 0.05 -0.08 $group [1] 4 5 7 8 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.01, 0.005, 0.015, 0.03, -0.01, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xise1218981655.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.570 0.57 0.730 0.730 0.710 0.70 0.730 0.860 NA [2,] 0.590 0.60 0.745 0.760 0.720 0.72 0.780 0.950 NA [3,] 0.595 0.63 0.770 0.765 0.735 0.74 0.830 1.015 NA [4,] 0.610 0.67 0.860 0.780 0.745 0.75 0.895 1.060 NA [5,] 0.620 0.74 0.890 0.790 0.780 0.78 0.930 1.090 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5858779 0.5980725 0.7175477 0.7558779 0.7235973 0.7263168 0.7775477 [2,] 0.6041221 0.6619275 0.8224523 0.7741221 0.7464027 0.7536832 0.8824523 [,8] [,9] [1,] 0.9648283 NA [2,] 1.0651717 NA $out [1] 0.81 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.57, 0.59, 0.595, 0.61, 0.62, 0.57, 0.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dmta1218981655.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.72000 0.7350 0.723750 [2,] 0.74750 0.7400 0.736250 [3,] 0.75875 0.7475 0.743125 [4,] 0.78750 0.7550 0.801250 [5,] 0.80500 0.7700 0.807500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.7405057 0.7406584 0.713478 [2,] 0.7769943 0.7543416 0.772772 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.72, 0.7475, 0.75875, 0.7875, 0.805, 0.735, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yyst1218981655.ps tmp/1yyst1218981655.png") > system("convert tmp/2gi031218981655.ps tmp/2gi031218981655.png") > system("convert tmp/3bfo41218981655.ps tmp/3bfo41218981655.png") > system("convert tmp/4rimy1218981655.ps tmp/4rimy1218981655.png") > system("convert tmp/538171218981655.ps tmp/538171218981655.png") > system("convert tmp/6xise1218981655.ps tmp/6xise1218981655.png") > system("convert tmp/7dmta1218981655.ps tmp/7dmta1218981655.png") > > > proc.time() user system elapsed 1.398 0.926 2.009