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(5.44,5.44,5.44,5.44,5.49,5.49,5.49,5.49,5.49,5.49,5.6,5.6,5.6,5.6,5.6,5.6,5.6,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.82,5.82,5.95,5.95,5.95,5.95,5.95,5.95,6.02,6.02,6.05,6.05,6.05,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.17,6.17,6.17,6.17,6.17,6.28,6.27,6.28,6.28,6.27,6.27,6.28,6.59,6.59,6.59,6.59,6.59,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.79,6.79,6.79) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 NA [2,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 NA [3,] 5.44 5.60 5.82 6.05 6.17 6.59 6.63 NA [4,] 5.44 5.60 5.82 6.12 6.17 6.59 6.63 NA [5,] 5.49 5.60 5.95 6.12 6.28 6.63 6.63 NA [6,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 NA [7,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 NA [8,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 NA [9,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 NA [10,] 5.49 5.67 5.95 6.12 6.27 6.63 6.79 NA [11,] 5.60 5.67 6.02 6.12 6.28 6.63 6.79 NA [12,] 5.60 5.67 6.02 6.17 6.59 6.63 6.79 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.00 0.15 0.00 0.00 0.00 0.00 NA [3,] 0.00 0.00 0.00 0.07 0.00 0.00 0.00 NA [4,] 0.05 0.00 0.13 0.00 0.11 0.04 0.00 NA [5,] 0.00 0.07 0.00 0.00 -0.01 0.00 0.00 NA [6,] 0.00 0.00 0.00 0.00 0.01 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [8,] 0.00 0.00 0.00 0.00 -0.01 0.00 0.00 NA [9,] 0.00 0.00 0.00 0.00 0.00 0.00 0.16 NA [10,] 0.11 0.00 0.07 0.00 0.01 0.00 0.00 NA [11,] 0.00 0.00 0.00 0.05 0.31 0.00 0.00 NA [12,] 0.00 0.00 0.03 0.00 0.00 0.00 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/13unq1209313240.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/22njy1209313240.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/3ks1z1209313240.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/4uss81209313241.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.440 5.440 5.44 5.44 5.490 5.49 5.490 5.490 5.49 5.49 5.600 5.600 [2,] 5.635 5.635 5.71 5.71 5.775 5.81 5.810 5.810 5.81 5.81 5.845 5.845 [3,] 6.050 6.050 6.05 6.12 6.120 6.12 6.120 6.120 6.12 6.12 6.120 6.170 [4,] 6.380 6.380 6.38 6.38 6.455 6.45 6.455 6.455 6.45 6.45 6.455 6.610 [5,] 6.630 6.630 6.63 6.63 6.630 6.63 6.630 6.630 6.63 6.79 6.790 6.790 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.605098 5.605098 5.649887 5.719887 5.713915 5.737802 5.734816 5.734816 [2,] 6.494902 6.494902 6.450113 6.520113 6.526085 6.502198 6.505184 6.505184 [,9] [,10] [,11] [,12] [1,] 5.737802 5.737802 5.755718 5.713154 [2,] 6.502198 6.502198 6.484282 6.626846 $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.44, 5.635, 6.05, 6.38, 6.63, 5.44, 5.635, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5bxxo1209313241.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 0 0 0.00 0 0 0 0 0 0.00 0.000 0 [2,] 0 0 0 0.00 0 0 0 0 0 0.00 0.000 0 [3,] 0 0 0 0.04 0 0 0 0 0 0.00 0.000 0 [4,] 0 0 0 0.08 0 0 0 0 0 0.04 0.025 0 [5,] 0 0 0 0.13 0 0 0 0 0 0.07 0.050 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0 0 0 -0.00777471 0 0 0 0 0 -0.02388735 [2,] 0 0 0 0.08777471 0 0 0 0 0 0.02388735 [,11] [,12] [1,] -0.01492960 0 [2,] 0.01492960 0 $out [1] 0.15 0.07 0.07 -0.01 0.01 -0.01 0.16 0.11 0.31 0.03 $group [1] 2 3 5 5 6 8 9 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69xky1209313241.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] [,8] [1,] 5.44 5.60 5.67 6.050 6.17 6.59 6.63 NA [2,] 5.44 5.60 5.82 6.085 6.17 6.59 6.63 NA [3,] 5.49 5.67 5.95 6.120 6.27 6.63 6.63 NA [4,] 5.49 5.67 5.95 6.120 6.28 6.63 6.71 NA [5,] 5.49 5.67 6.02 6.170 6.28 6.63 6.79 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.467195 5.638073 5.890706 6.104036 6.219828 6.611756 6.593511 NA [2,] 5.512805 5.701927 6.009294 6.135964 6.320172 6.648244 6.666489 NA $out [1] 5.60 5.60 6.59 $group [1] 1 1 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5.44, 5.44, 5.49, 5.49, 5.49, 5.6, 5.6, 5.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7zry71209313241.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,] 6.021429 6.050 6.0075 [2,] 6.047857 6.085 6.0450 [3,] 6.108571 6.120 6.1300 [4,] 6.120714 6.120 6.1325 [5,] 6.210000 6.170 6.2275 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.075341 6.104036 6.090091 [2,] 6.141802 6.135964 6.169909 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.02142857142857, 6.04785714285714, 6.10857142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13unq1209313240.ps tmp/13unq1209313240.png") > system("convert tmp/22njy1209313240.ps tmp/22njy1209313240.png") > system("convert tmp/3ks1z1209313240.ps tmp/3ks1z1209313240.png") > system("convert tmp/4uss81209313241.ps tmp/4uss81209313241.png") > system("convert tmp/5bxxo1209313241.ps tmp/5bxxo1209313241.png") > system("convert tmp/69xky1209313241.ps tmp/69xky1209313241.png") > system("convert tmp/7zry71209313241.ps tmp/7zry71209313241.png") > > > proc.time() user system elapsed 1.433 0.969 1.703