R version 2.9.0 (2009-04-17) Copyright (C) 2009 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.9,0.92,0.92,0.95,1.06,1.17,1.23,1.26,1.37,1.37,1.31,1.21,1.2,1.11,1.11,1.11,1.17,1.08,1.05,1.03,1.04,1.02,1.01,1.01,0.98,0.96,0.94,0.99,0.99,0.98,1.02,1.06,1.06,1.06,1.06,1.06,1.04,1.02,1.01,1,1.04,1.09,1.08,1.06,1.06,1.03,0.97,0.98,0.93,0.88,0.86,0.9,0.91,0.93,0.89,0.88,0.83,0.81,0.83,0.8,0.76,0.73,0.74,0.74,0.75,0.74,0.74,0.73,0.71,0.71,0.7,0.75,0.81,0.78,0.75) > 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] 75 > (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 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.90 1.20 0.98 1.04 0.93 0.76 0.81 [2,] 0.92 1.11 0.96 1.02 0.88 0.73 0.78 [3,] 0.92 1.11 0.94 1.01 0.86 0.74 0.75 [4,] 0.95 1.11 0.99 1.00 0.90 0.74 NA [5,] 1.06 1.17 0.99 1.04 0.91 0.75 NA [6,] 1.17 1.08 0.98 1.09 0.93 0.74 NA [7,] 1.23 1.05 1.02 1.08 0.89 0.74 NA [8,] 1.26 1.03 1.06 1.06 0.88 0.73 NA [9,] 1.37 1.04 1.06 1.06 0.83 0.71 NA [10,] 1.37 1.02 1.06 1.03 0.81 0.71 NA [11,] 1.31 1.01 1.06 0.97 0.83 0.70 NA [12,] 1.21 1.01 1.06 0.98 0.80 0.75 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.02 -0.09 -0.02 -0.02 -0.05 -0.03 -0.03 [2,] 0.00 0.00 -0.02 -0.01 -0.02 0.01 -0.03 [3,] 0.03 0.00 0.05 -0.01 0.04 0.00 NA [4,] 0.11 0.06 0.00 0.04 0.01 0.01 NA [5,] 0.11 -0.09 -0.01 0.05 0.02 -0.01 NA [6,] 0.06 -0.03 0.04 -0.01 -0.04 0.00 NA [7,] 0.03 -0.02 0.04 -0.02 -0.01 -0.01 NA [8,] 0.11 0.01 0.00 0.00 -0.05 -0.02 NA [9,] 0.00 -0.02 0.00 -0.03 -0.02 0.00 NA [10,] -0.06 -0.01 0.00 -0.06 0.02 -0.01 NA [11,] -0.10 0.00 0.00 0.01 -0.03 0.05 NA [12,] -0.01 -0.03 -0.02 -0.05 -0.04 0.06 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/1h4251249508852.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/2wf5z1249508852.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/341yd1249508852.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/4krvh1249508852.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.760 0.73 0.740 0.90 0.750 0.74 0.740 0.730 0.71 0.710 0.70 0.750 [2,] 0.855 0.83 0.805 0.90 0.910 0.93 0.890 0.880 0.83 0.810 0.83 0.800 [3,] 0.930 0.92 0.920 0.97 1.015 1.03 1.035 1.045 1.05 1.025 0.99 0.995 [4,] 1.010 0.99 0.975 1.00 1.060 1.09 1.080 1.060 1.06 1.060 1.06 1.060 [5,] 1.200 1.11 1.110 1.11 1.170 1.17 1.230 1.260 1.37 1.370 1.31 1.210 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8374365 0.8244506 0.8184787 0.9054968 0.9182452 0.9267948 0.9124439 [2,] 1.0225635 1.0155494 1.0215213 1.0345032 1.1117548 1.1332052 1.1575561 [,8] [,9] [,10] [,11] [,12] [1,] 0.9288942 0.9016426 0.863742 0.8416426 0.8272916 [2,] 1.1611058 1.1983574 1.186258 1.1383574 1.1627084 $out [1] 0.74 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.76, 0.855, 0.93, 1.01, 1.2, 0.73, 0.83, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53a9d1249508852.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.05 -0.03 -0.010 0.000 -0.090 -0.040 -0.02 -0.05 -0.03 -0.06 -0.03 [2,] -0.04 -0.02 0.000 0.010 -0.010 -0.030 -0.02 -0.02 -0.02 -0.06 -0.03 [3,] -0.03 -0.01 0.015 0.025 0.005 -0.005 -0.01 0.00 -0.01 -0.01 0.00 [4,] -0.02 0.00 0.040 0.060 0.050 0.040 0.03 0.01 0.00 0.00 0.01 [5,] -0.02 0.01 0.050 0.110 0.110 0.060 0.04 0.01 0.00 0.02 0.05 [,12] [1,] -0.050 [2,] -0.040 [3,] -0.025 [4,] -0.010 [5,] -0.010 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.04194368 -0.021943677 -0.01080129 -0.007251615 -0.03370194 -0.05015226 [2,] -0.01805632 0.001943677 0.04080129 0.057251615 0.04370194 0.04015226 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.04225161 -0.01935097 -0.022900646 -0.04870194 -0.02580129 -0.044350969 [2,] 0.02225161 0.01935097 0.002900646 0.02870194 0.02580129 -0.005649031 $out [1] 0.02 -0.09 0.11 -0.10 0.06 $group [1] 1 1 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.05, -0.04, -0.03, -0.02, -0.02, -0.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/604zy1249508852.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,] 0.900 1.010 0.940 0.970 0.800 0.700 0.750 [2,] 0.935 1.025 0.980 1.005 0.830 0.720 0.765 [3,] 1.190 1.065 1.005 1.035 0.880 0.740 0.780 [4,] 1.285 1.110 1.060 1.060 0.905 0.745 0.795 [5,] 1.370 1.200 1.060 1.090 0.930 0.760 0.810 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.030363 1.026231 0.9685115 1.009914 0.845792 0.7285973 0.7526336 [2,] 1.349637 1.103769 1.0414885 1.060086 0.914208 0.7514027 0.8073664 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.9, 0.935, 1.19, 1.285, 1.37, 1.01, 1.025, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qiey1249508852.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.9042857 0.9200 0.890000 [2,] 0.9470238 0.9500 0.939375 [3,] 0.9833333 1.0050 0.956875 [4,] 1.0008333 1.0325 0.990625 [5,] 1.0116667 1.0500 1.015000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.9587904 0.9673712 0.9334995 [2,] 1.0078762 1.0426288 0.9802505 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.904285714285714, 0.94702380952381, 0.983333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h4251249508852.ps tmp/1h4251249508852.png") > system("convert tmp/2wf5z1249508852.ps tmp/2wf5z1249508852.png") > system("convert tmp/341yd1249508852.ps tmp/341yd1249508852.png") > system("convert tmp/4krvh1249508852.ps tmp/4krvh1249508852.png") > system("convert tmp/53a9d1249508852.ps tmp/53a9d1249508852.png") > system("convert tmp/604zy1249508852.ps tmp/604zy1249508852.png") > system("convert tmp/7qiey1249508852.ps tmp/7qiey1249508852.png") > > > proc.time() user system elapsed 1.229 0.970 1.775