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(5.29,5.29,5.29,5.31,5.33,5.34,5.34,5.37,5.41,5.41,5.38,5.44,5.44,5.46,5.46,5.45,5.46,5.46,5.48,5.47,5.48,5.51,5.55,5.58,5.59,5.6,5.6,5.67,5.71,5.7,5.73,5.72,5.75,5.75,5.77,5.83,5.85,5.87,5.86,5.87,5.93,5.97,5.98,5.99,5.99,6.03,6.06,6.07,6.08,6.08,6.1,6.13,6.14,6.14,6.16,6.2,6.19,6.32,6.32,6.33,6.32,6.33,6.38,6.42,6.46,6.47,6.42,6.48,6.47,6.49,6.48,6.51,6.51,6.52,6.57,6.59,6.62,6.63,6.61,6.64) > 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] 80 > (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 7 7 7 7 7 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.29 5.44 5.59 5.85 6.08 6.32 6.51 [2,] 5.29 5.46 5.60 5.87 6.08 6.33 6.52 [3,] 5.29 5.46 5.60 5.86 6.10 6.38 6.57 [4,] 5.31 5.45 5.67 5.87 6.13 6.42 6.59 [5,] 5.33 5.46 5.71 5.93 6.14 6.46 6.62 [6,] 5.34 5.46 5.70 5.97 6.14 6.47 6.63 [7,] 5.34 5.48 5.73 5.98 6.16 6.42 6.61 [8,] 5.37 5.47 5.72 5.99 6.20 6.48 6.64 [9,] 5.41 5.48 5.75 5.99 6.19 6.47 NA [10,] 5.41 5.51 5.75 6.03 6.32 6.49 NA [11,] 5.38 5.55 5.77 6.06 6.32 6.48 NA [12,] 5.44 5.58 5.83 6.07 6.33 6.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.02 0.01 0.02 0.00 0.01 0.01 [2,] 0.00 0.00 0.00 -0.01 0.02 0.05 0.05 [3,] 0.02 -0.01 0.07 0.01 0.03 0.04 0.02 [4,] 0.02 0.01 0.04 0.06 0.01 0.04 0.03 [5,] 0.01 0.00 -0.01 0.04 0.00 0.01 0.01 [6,] 0.00 0.02 0.03 0.01 0.02 -0.05 -0.02 [7,] 0.03 -0.01 -0.01 0.01 0.04 0.06 0.03 [8,] 0.04 0.01 0.03 0.00 -0.01 -0.01 NA [9,] 0.00 0.03 0.00 0.04 0.13 0.02 NA [10,] -0.03 0.04 0.02 0.03 0.00 -0.01 NA [11,] 0.06 0.03 0.06 0.01 0.01 0.03 NA [12,] 0.00 0.01 0.02 0.01 -0.01 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/1mu1y1242295398.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/2m5731242295398.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/30jkd1242295398.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/4c53f1242295398.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,] 5.290 5.290 5.29 5.310 5.330 5.340 5.340 5.370 5.41 5.41 5.380 5.44 [2,] 5.515 5.530 5.53 5.560 5.585 5.580 5.605 5.595 5.48 5.51 5.550 5.58 [3,] 5.850 5.870 5.86 5.870 5.930 5.970 5.980 5.990 5.87 5.89 5.915 5.95 [4,] 6.200 6.205 6.24 6.275 6.300 6.305 6.290 6.340 6.19 6.32 6.320 6.33 [5,] 6.510 6.520 6.57 6.590 6.620 6.630 6.610 6.640 6.47 6.49 6.480 6.51 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.440929 5.466901 5.435999 5.443014 5.503014 5.537042 5.570929 5.545098 [2,] 6.259071 6.273099 6.284001 6.296986 6.356986 6.402958 6.389071 6.434902 [,9] [,10] [,11] [,12] [1,] 5.412027 5.367524 5.418325 5.466226 [2,] 6.327973 6.412476 6.411675 6.433774 $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(5.29, 5.515, 5.85, 6.2, 6.51, 5.29, 5.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5on1d1242295398.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] [1,] 0.000 -0.010 -0.010 0.010 -0.01 -0.05 -1.000000e-02 -0.010 0.000 -0.03 [2,] 0.005 0.000 0.015 0.015 0.00 -0.01 -4.440892e-16 -0.010 0.000 -0.01 [3,] 0.010 0.000 0.020 0.030 0.01 0.01 3.000000e-02 0.005 0.025 0.01 [4,] 0.015 0.035 0.035 0.040 0.01 0.02 3.500000e-02 0.030 0.040 0.03 [5,] 0.020 0.050 0.040 0.060 0.01 0.03 6.000000e-02 0.040 0.040 0.04 [,11] [,12] [1,] 0.01 -0.010 [2,] 0.01 0.000 [3,] 0.03 0.005 [4,] 0.06 0.010 [5,] 0.06 0.020 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.004028161 -0.02090144 0.008056323 0.01507040 0.004028161 -0.007915516 [2,] 0.015971839 0.02090144 0.031943677 0.04492960 0.015971839 0.027915516 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.009098565 -0.02080129 -0.000801292 -0.01580129 -0.002251615 -0.001450323 [2,] 0.050901435 0.03080129 0.050801292 0.03580129 0.062251615 0.011450323 $out [1] 0.07 0.04 0.13 $group [1] 3 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.00499999999999989, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6da3x1242295398.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,] 5.290 5.440 5.590 5.850 6.080 6.320 6.510 [2,] 5.300 5.460 5.635 5.870 6.115 6.400 6.545 [3,] 5.340 5.465 5.715 5.975 6.150 6.465 6.600 [4,] 5.395 5.495 5.750 6.010 6.260 6.480 6.625 [5,] 5.440 5.510 5.830 6.070 6.330 6.510 6.640 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.29667 5.449036 5.662548 5.911145 6.083865 6.428511 6.555311 [2,] 5.38333 5.480964 5.767452 6.038855 6.216135 6.501489 6.644689 $out [1] 5.55 5.58 $group [1] 2 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(5.29, 5.3, 5.34, 5.395, 5.44, 5.44, 5.46, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7q3mp1242295398.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,] 5.868571 5.8500 5.84375 [2,] 5.887976 5.8700 5.87625 [3,] 5.923333 5.9025 5.92375 [4,] 5.959286 5.9600 5.94500 [5,] 5.981429 5.9900 5.96750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.890809 5.86145 5.892393 [2,] 5.955858 5.94355 5.955107 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(5.86857142857143, 5.88797619047619, 5.92333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1mu1y1242295398.ps tmp/1mu1y1242295398.png") > system("convert tmp/2m5731242295398.ps tmp/2m5731242295398.png") > system("convert tmp/30jkd1242295398.ps tmp/30jkd1242295398.png") > system("convert tmp/4c53f1242295398.ps tmp/4c53f1242295398.png") > system("convert tmp/5on1d1242295398.ps tmp/5on1d1242295398.png") > system("convert tmp/6da3x1242295398.ps tmp/6da3x1242295398.png") > system("convert tmp/7q3mp1242295398.ps tmp/7q3mp1242295398.png") > > > proc.time() user system elapsed 1.203 0.966 1.571