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(10.99,11,10.9,10.99,11.04,11.03,10.99,11,10.87,10.88,10.91,10.92,10.83,10.9,10.82,10.79,10.77,10.72,10.71,10.63,10.61,10.57,10.65,10.57,10.57,10.57,10.52,10.43,10.35,10.2,10.2,10.17,10.14,10.05,10.12,10.12,10.03,10.03,9.96,9.94,9.9,9.84,9.82,9.78,9.77,9.75,9.72,9.65,9.63,9.62,9.63,9.62,9.65,9.61,9.57,9.61,9.58,9.55,9.5,9.47,9.43,9.38,9.35,9.34,9.35,9.33,9.31,9.29,9.27,9.29,9.27,9.26) > 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.99 10.83 10.57 10.03 9.63 9.43 NA [2,] 11.00 10.90 10.57 10.03 9.62 9.38 NA [3,] 10.90 10.82 10.52 9.96 9.63 9.35 NA [4,] 10.99 10.79 10.43 9.94 9.62 9.34 NA [5,] 11.04 10.77 10.35 9.90 9.65 9.35 NA [6,] 11.03 10.72 10.20 9.84 9.61 9.33 NA [7,] 10.99 10.71 10.20 9.82 9.57 9.31 NA [8,] 11.00 10.63 10.17 9.78 9.61 9.29 NA [9,] 10.87 10.61 10.14 9.77 9.58 9.27 NA [10,] 10.88 10.57 10.05 9.75 9.55 9.29 NA [11,] 10.91 10.65 10.12 9.72 9.50 9.27 NA [12,] 10.92 10.57 10.12 9.65 9.47 9.26 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01 0.07 0.00 0.00 -0.01 -0.05 NA [2,] -0.10 -0.08 -0.05 -0.07 0.01 -0.03 NA [3,] 0.09 -0.03 -0.09 -0.02 -0.01 -0.01 NA [4,] 0.05 -0.02 -0.08 -0.04 0.03 0.01 NA [5,] -0.01 -0.05 -0.15 -0.06 -0.04 -0.02 NA [6,] -0.04 -0.01 0.00 -0.02 -0.04 -0.02 NA [7,] 0.01 -0.08 -0.03 -0.04 0.04 -0.02 NA [8,] -0.13 -0.02 -0.03 -0.01 -0.03 -0.02 NA [9,] 0.01 -0.04 -0.09 -0.02 -0.03 0.02 NA [10,] 0.03 0.08 0.07 -0.03 -0.05 -0.02 NA [11,] 0.01 -0.08 0.00 -0.07 -0.03 -0.01 NA [12,] -0.09 0.00 -0.09 -0.02 -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/1svy61209416282.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/26yts1209416282.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/3e8a71209416282.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/4zwdt1209416282.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,] 9.43 9.38 9.35 9.340 9.350 9.33 9.31 9.290 9.270 9.29 9.27 [2,] 9.63 9.62 9.63 9.620 9.650 9.61 9.57 9.610 9.580 9.55 9.50 [3,] 10.30 10.30 10.24 10.185 10.125 10.02 10.01 9.975 9.955 9.90 9.92 [4,] 10.83 10.90 10.82 10.790 10.770 10.72 10.71 10.630 10.610 10.57 10.65 [5,] 10.99 11.00 10.90 10.990 11.040 11.03 10.99 11.000 10.870 10.88 10.91 [,12] [1,] 9.260 [2,] 9.470 [3,] 9.885 [4,] 10.570 [5,] 10.920 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.525961 9.474359 9.472412 9.430312 9.402564 9.304014 9.274663 [2,] 11.074039 11.125641 11.007588 10.939688 10.847436 10.735986 10.745337 [,8] [,9] [,10] [,11] [,12] [1,] 9.317067 9.290617 9.242067 9.178213 9.175464 [2,] 10.632933 10.619383 10.557933 10.661787 10.594536 $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(9.43, 9.63, 10.3, 10.83, 10.99, 9.38, 9.62, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wm3c1209416282.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.01 -0.10 -0.030 -0.080 -0.060 -0.04 -0.080 -0.030 -0.090 -0.050 -0.08 [2,] -0.01 -0.08 -0.030 -0.040 -0.060 -0.04 -0.040 -0.030 -0.040 -0.030 -0.07 [3,] 0.00 -0.06 -0.015 -0.005 -0.045 -0.02 -0.025 -0.025 -0.025 0.005 -0.02 [4,] 0.01 -0.03 -0.010 0.030 -0.020 -0.01 0.010 -0.020 0.010 0.070 0.00 [5,] 0.01 0.01 -0.010 0.050 -0.010 0.00 0.040 -0.010 0.020 0.080 0.01 [,12] [1,] -0.09 [2,] -0.09 [3,] -0.04 [4,] -0.02 [5,] 0.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01290065 -0.09225161 -0.027900646 -0.05015226 -0.07080129 -0.039350969 [2,] 0.01290065 -0.02774839 -0.002099354 0.04015226 -0.01919871 -0.000649031 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.057251615 -0.03145032 -0.057251615 -0.05950323 -0.06515226 -0.089461824 [2,] 0.007251615 -0.01854968 0.007251615 0.06950323 0.02515226 0.009461824 $out [1] 0.07 -0.05 0.09 -0.09 -0.15 -0.13 $group [1] 1 1 3 3 5 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0100000000000016, -0.0100000000000016, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6bfmd1209416282.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.870 10.570 10.050 9.65 9.470 9.26 NA [2,] 10.905 10.620 10.130 9.76 9.560 9.28 NA [3,] 10.990 10.715 10.200 9.83 9.610 9.32 NA [4,] 11.000 10.805 10.475 9.95 9.625 9.35 NA [5,] 11.040 10.900 10.570 10.03 9.650 9.43 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.94667 10.63062 10.04264 9.74334 9.580353 9.288073 NA [2,] 11.03333 10.79938 10.35736 9.91666 9.639647 9.351927 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10.87, 10.905, 10.99, 11, 11.04, 10.57, 10.62, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7h2k41209416282.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,] 9.998333 9.8850 9.98625 [2,] 10.034167 9.9375 10.04812 [3,] 10.110833 10.0150 10.11812 [4,] 10.190833 10.2125 10.21438 [5,] 10.250000 10.3000 10.27000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.03938 9.88957 10.04230 [2,] 10.18229 10.14043 10.19395 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(9.99833333333333, 10.0341666666667, 10.1108333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1svy61209416282.ps tmp/1svy61209416282.png") > system("convert tmp/26yts1209416282.ps tmp/26yts1209416282.png") > system("convert tmp/3e8a71209416282.ps tmp/3e8a71209416282.png") > system("convert tmp/4zwdt1209416282.ps tmp/4zwdt1209416282.png") > system("convert tmp/5wm3c1209416282.ps tmp/5wm3c1209416282.png") > system("convert tmp/6bfmd1209416282.ps tmp/6bfmd1209416282.png") > system("convert tmp/7h2k41209416282.ps tmp/7h2k41209416282.png") > > > proc.time() user system elapsed 1.416 0.941 1.716