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(430.00,433.87,434.55,434.55,434.55,434.55,434.71,434.71,434.71,434.71,434.73,436.34,437.55,439.58,439.65,439.76,439.76,439.76,440.06,440.13,441.18,441.14,441.14,441.19,449.06,456.46,456.79,456.87,457.25,455.93,456.00,456.22,456.22,456.58,457.61,457.61,460.43,460.43,462.18,462.37,462.59,463.19,463.48,464.30,461.41,463.35,463.35,463.35,464.27,472.28,472.36,472.56,472.56,472.56,474.15,474.59,474.97,474.99,474.99,474.99,478.34,485.70,485.75,485.85,485.84,485.85,485.84,486.00,488.79,489.71,489.71,489.71) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 430.00 437.55 449.06 460.43 464.27 478.34 NA [2,] 433.87 439.58 456.46 460.43 472.28 485.70 NA [3,] 434.55 439.65 456.79 462.18 472.36 485.75 NA [4,] 434.55 439.76 456.87 462.37 472.56 485.85 NA [5,] 434.55 439.76 457.25 462.59 472.56 485.84 NA [6,] 434.55 439.76 455.93 463.19 472.56 485.85 NA [7,] 434.71 440.06 456.00 463.48 474.15 485.84 NA [8,] 434.71 440.13 456.22 464.30 474.59 486.00 NA [9,] 434.71 441.18 456.22 461.41 474.97 488.79 NA [10,] 434.71 441.14 456.58 463.35 474.99 489.71 NA [11,] 434.73 441.14 457.61 463.35 474.99 489.71 NA [12,] 436.34 441.19 457.61 463.35 474.99 489.71 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.87 2.03 7.40 0.00 8.01 7.36 NA [2,] 0.68 0.07 0.33 1.75 0.08 0.05 NA [3,] 0.00 0.11 0.08 0.19 0.20 0.10 NA [4,] 0.00 0.00 0.38 0.22 0.00 -0.01 NA [5,] 0.00 0.00 -1.32 0.60 0.00 0.01 NA [6,] 0.16 0.30 0.07 0.29 1.59 -0.01 NA [7,] 0.00 0.07 0.22 0.82 0.44 0.16 NA [8,] 0.00 1.05 0.00 -2.89 0.38 2.79 NA [9,] 0.00 -0.04 0.36 1.94 0.02 0.92 NA [10,] 0.02 0.00 1.03 0.00 0.00 0.00 NA [11,] 1.61 0.05 0.00 0.00 0.00 0.00 NA [12,] 1.21 7.87 2.82 0.92 3.35 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/1ifv11209222299.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/2jmle1209222299.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/3nocd1209222299.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/4981h1209222299.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] [1,] 430.000 433.870 434.550 434.55 434.55 434.55 434.71 434.71 434.710 434.710 [2,] 437.550 439.580 439.650 439.76 439.76 439.76 440.06 440.13 441.180 441.140 [3,] 454.745 458.445 459.485 459.62 459.92 459.56 459.74 460.26 458.815 459.965 [4,] 464.270 472.280 472.360 472.56 472.56 472.56 474.15 474.59 474.970 474.990 [5,] 478.340 485.700 485.750 485.85 485.84 485.85 485.84 486.00 488.790 489.710 [,11] [,12] [1,] 434.73 436.34 [2,] 441.14 441.19 [3,] 460.48 460.48 [4,] 474.99 474.99 [5,] 489.71 489.71 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 437.5097 437.3524 438.386 438.4629 438.7629 438.4029 437.7508 438.0322 [2,] 471.9803 479.5376 480.584 480.7771 481.0771 480.7171 481.7292 482.4878 [,9] [,10] [,11] [,12] [1,] 437.0194 438.1307 438.6457 438.6779 [2,] 480.6106 481.7993 482.3143 482.2821 $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(430, 437.55, 454.745, 464.27, 478.34, 433.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5p10a1209222299.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.000 0.050 0.000 -0.01 0.00 -0.010 0.00 0.00 -0.04 0.00 0.00 0.92 [2,] 2.030 0.070 0.080 0.00 0.00 0.070 0.07 0.00 0.00 0.00 0.00 1.21 [3,] 5.615 0.205 0.105 0.00 0.00 0.225 0.19 0.19 0.19 0.00 0.00 2.82 [4,] 7.400 0.680 0.190 0.22 0.01 0.300 0.44 1.05 0.92 0.02 0.05 3.35 [5,] 8.010 0.680 0.200 0.38 0.01 0.300 0.82 1.05 1.94 0.02 0.05 3.35 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.151177 -0.1884697 0.03404645 -0.1419071 -0.006450323 0.07664257 [2,] 9.078823 0.5984697 0.17595355 0.1419071 0.006450323 0.37335743 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.04866195 -0.4872839 -0.4034297 -0.01290065 -0.03225161 1.307881 [2,] 0.42866195 0.8672839 0.7834297 0.01290065 0.03225161 4.332119 $out [1] 1.75 -1.32 0.60 1.59 -2.89 2.79 1.03 1.61 7.87 $group [1] 2 5 5 6 8 8 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 2.02999999999997, 5.61500000000001, 7.39999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zreg1209222299.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,] 434.55 439.580 455.93 460.430 472.280 485.700 NA [2,] 434.55 439.705 456.11 461.795 472.460 485.795 NA [3,] 434.63 439.910 456.52 462.890 473.355 485.850 NA [4,] 434.71 441.140 457.06 463.350 474.980 489.250 NA [5,] 434.73 441.190 457.61 464.300 474.990 489.710 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 434.557 439.2555 456.0867 462.1808 472.2056 484.2742 NA [2,] 434.703 440.5645 456.9533 463.5992 474.5044 487.4258 NA $out [1] 430.00 433.87 436.34 437.55 449.06 464.27 478.34 $group [1] 1 1 1 2 3 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(434.55, 434.55, 434.63, 434.71, 434.73, 439.58, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7prkq1209222299.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,] 458.0533 458.4450 456.5588 [2,] 458.5933 459.1500 456.9425 [3,] 458.8992 459.6800 457.4319 [4,] 459.8133 460.1125 458.4000 [5,] 460.5317 460.4800 458.6875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 458.3427 459.241 456.7671 [2,] 459.4556 460.119 458.0967 $out [1] 453.2750 454.7450 451.8687 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(458.053333333333, 458.593333333333, 458.899166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ifv11209222299.ps tmp/1ifv11209222299.png") > system("convert tmp/2jmle1209222299.ps tmp/2jmle1209222299.png") > system("convert tmp/3nocd1209222299.ps tmp/3nocd1209222299.png") > system("convert tmp/4981h1209222299.ps tmp/4981h1209222299.png") > system("convert tmp/5p10a1209222299.ps tmp/5p10a1209222299.png") > system("convert tmp/6zreg1209222299.ps tmp/6zreg1209222299.png") > system("convert tmp/7prkq1209222299.ps tmp/7prkq1209222299.png") > > > proc.time() user system elapsed 2.582 1.622 2.818