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(10.1200,10.1200,10.0500,10.1400,10.1700,10.2000,10.2000,10.3500,10.4300,10.5200,10.5700,10.5700,10.5700,10.6500,10.5700,10.6100,10.6300,10.7100,10.7200,10.7700,10.7900,10.8200,10.9000,10.8300,10.9200,10.9100,10.8800,10.8700,11.0000,10.9900,11.0300,11.0400,10.9900,10.9000,11.0000,10.9900,10.9200,10.9800,11.1500,11.1900,11.3300,11.3800,11.4000,11.4500,11.5600,11.6100,11.8200,11.7700,11.8500,11.8200,11.9200,11.8600,11.8700,11.9400,11.8600,11.9200,11.8300,11.9100,11.9300,11.9900,11.9600,12.1200,11.8500,12.0100,12.1000,12.2100,12.3100,12.3100,12.3900,12.3500,12.4100,12.5100) > 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,] 10.12 10.57 10.92 10.92 11.85 11.96 NA [2,] 10.12 10.65 10.91 10.98 11.82 12.12 NA [3,] 10.05 10.57 10.88 11.15 11.92 11.85 NA [4,] 10.14 10.61 10.87 11.19 11.86 12.01 NA [5,] 10.17 10.63 11.00 11.33 11.87 12.10 NA [6,] 10.20 10.71 10.99 11.38 11.94 12.21 NA [7,] 10.20 10.72 11.03 11.40 11.86 12.31 NA [8,] 10.35 10.77 11.04 11.45 11.92 12.31 NA [9,] 10.43 10.79 10.99 11.56 11.83 12.39 NA [10,] 10.52 10.82 10.90 11.61 11.91 12.35 NA [11,] 10.57 10.90 11.00 11.82 11.93 12.41 NA [12,] 10.57 10.83 10.99 11.77 11.99 12.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.08 -0.01 0.06 -0.03 0.16 NA [2,] -0.07 -0.08 -0.03 0.17 0.10 -0.27 NA [3,] 0.09 0.04 -0.01 0.04 -0.06 0.16 NA [4,] 0.03 0.02 0.13 0.14 0.01 0.09 NA [5,] 0.03 0.08 -0.01 0.05 0.07 0.11 NA [6,] 0.00 0.01 0.04 0.02 -0.08 0.10 NA [7,] 0.15 0.05 0.01 0.05 0.06 0.00 NA [8,] 0.08 0.02 -0.05 0.11 -0.09 0.08 NA [9,] 0.09 0.03 -0.09 0.05 0.08 -0.04 NA [10,] 0.05 0.08 0.10 0.21 0.02 0.06 NA [11,] 0.00 -0.07 -0.01 -0.05 0.06 0.10 NA [12,] 0.00 0.09 -0.07 0.08 -0.03 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/1p3421259707175.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/2sxtp1259707175.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/38b1a1259707175.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/4q6jx1259707175.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] [1,] 10.12 10.120 10.050 10.14 10.170 10.200 10.200 10.350 10.430 10.520 10.57 [2,] 10.57 10.650 10.570 10.61 10.630 10.710 10.720 10.770 10.790 10.820 10.90 [3,] 10.92 10.945 11.015 11.03 11.165 11.185 11.215 11.245 11.275 11.255 11.41 [4,] 11.85 11.820 11.850 11.86 11.870 11.940 11.860 11.920 11.830 11.910 11.93 [5,] 11.96 12.120 11.920 12.01 12.100 12.210 12.310 12.310 12.390 12.350 12.41 [,12] [1,] 10.57 [2,] 10.83 [3,] 11.38 [4,] 11.99 [5,] 12.51 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.09436 10.19031 10.18936 10.22371 10.36516 10.39161 10.47966 10.50321 [2,] 11.74564 11.69969 11.84064 11.83629 11.96484 11.97839 11.95034 11.98679 [,9] [,10] [,11] [,12] [1,] 10.60417 10.55191 10.74562 10.63176 [2,] 11.94583 11.95809 12.07438 12.12824 $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(10.12, 10.57, 10.92, 11.85, 11.96, 10.12, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56vwa1259707175.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.03 -0.27 -0.06 0.01 -0.01 0.000 0.00 -0.09 -0.09 0.02 -0.070 -0.07 [2,] -0.01 -0.08 -0.01 0.02 0.03 0.000 0.01 -0.05 -0.04 0.05 -0.050 -0.03 [3,] 0.03 -0.05 0.04 0.06 0.06 0.015 0.05 0.05 0.04 0.07 -0.005 0.00 [4,] 0.08 0.10 0.09 0.13 0.08 0.040 0.06 0.08 0.08 0.10 0.060 0.08 [5,] 0.16 0.17 0.16 0.14 0.11 0.040 0.06 0.11 0.09 0.10 0.100 0.09 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.02805291 -0.16610581 -0.02450323 -0.01095355 0.02774839 -0.01080129 [2,] 0.08805291 0.06610581 0.10450323 0.13095355 0.09225161 0.04080129 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01774839 -0.0338542 -0.03740388 0.03774839 -0.07595355 -0.07772572 [2,] 0.08225161 0.1338542 0.11740388 0.10225161 0.06595355 0.07772572 $out [1] -0.08 0.10 0.15 0.21 $group [1] 6 6 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0299999999999994, -0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6g52b1259707175.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,] 10.050 10.570 10.870 10.920 11.820 11.850 NA [2,] 10.130 10.620 10.905 11.170 11.855 12.055 NA [3,] 10.200 10.715 10.990 11.390 11.890 12.260 NA [4,] 10.475 10.805 11.000 11.585 11.925 12.370 NA [5,] 10.570 10.900 11.040 11.820 11.990 12.510 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.04264 10.63062 10.94667 11.20072 11.85807 12.11633 NA [2,] 10.35736 10.79938 11.03333 11.57928 11.92193 12.40367 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10.05, 10.13, 10.2, 10.475, 10.57, 10.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bpk01259707175.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,] 11.05667 10.9200 11.13750 [2,] 11.10667 11.0225 11.17312 [3,] 11.24583 11.2000 11.28063 [4,] 11.34167 11.2650 11.32875 [5,] 11.44333 11.4100 11.41375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.13865 11.08939 11.20964 [2,] 11.35302 11.31061 11.35161 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11.0566666666667, 11.1066666666667, 11.2458333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1p3421259707175.ps tmp/1p3421259707175.png") > system("convert tmp/2sxtp1259707175.ps tmp/2sxtp1259707175.png") > system("convert tmp/38b1a1259707175.ps tmp/38b1a1259707175.png") > system("convert tmp/4q6jx1259707175.ps tmp/4q6jx1259707175.png") > system("convert tmp/56vwa1259707175.ps tmp/56vwa1259707175.png") > system("convert tmp/6g52b1259707175.ps tmp/6g52b1259707175.png") > system("convert tmp/7bpk01259707175.ps tmp/7bpk01259707175.png") > > > proc.time() user system elapsed 1.179 0.927 1.456