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(2.25,2.06,1.99,2.25,2.26,2.36,2.3,2.19,2.31,2.21,2.21,2.26,2.18,2.21,2.33,2.12,2.08,1.97,2.09,2.11,2.24,2.45,2.68,2.73,2.76,2.83,3.16,3.22,3.22,3.34,3.35,3.42,3.58,3.71,3.68,3.83,3.94,3.88,4.03,4.15,4.32,4.4,4.37,4.14,4.11,4.16,3.98,4.13,3.76,3.66,3.85,4.03,4.31,4.58,4.46,4.41,3.84,2.84,2.66,2.17) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.25 2.18 2.76 3.94 3.76 NA [2,] 2.06 2.21 2.83 3.88 3.66 NA [3,] 1.99 2.33 3.16 4.03 3.85 NA [4,] 2.25 2.12 3.22 4.15 4.03 NA [5,] 2.26 2.08 3.22 4.32 4.31 NA [6,] 2.36 1.97 3.34 4.40 4.58 NA [7,] 2.30 2.09 3.35 4.37 4.46 NA [8,] 2.19 2.11 3.42 4.14 4.41 NA [9,] 2.31 2.24 3.58 4.11 3.84 NA [10,] 2.21 2.45 3.71 4.16 2.84 NA [11,] 2.21 2.68 3.68 3.98 2.66 NA [12,] 2.26 2.73 3.83 4.13 2.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.19 0.03 0.07 -0.06 -0.10 NA [2,] -0.07 0.12 0.33 0.15 0.19 NA [3,] 0.26 -0.21 0.06 0.12 0.18 NA [4,] 0.01 -0.04 0.00 0.17 0.28 NA [5,] 0.10 -0.11 0.12 0.08 0.27 NA [6,] -0.06 0.12 0.01 -0.03 -0.12 NA [7,] -0.11 0.02 0.07 -0.23 -0.05 NA [8,] 0.12 0.13 0.16 -0.03 -0.57 NA [9,] -0.10 0.21 0.13 0.05 -1.00 NA [10,] 0.00 0.23 -0.03 -0.18 -0.18 NA [11,] 0.05 0.05 0.15 0.15 -0.49 NA [12,] -0.08 0.03 0.11 -0.37 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/1wz131262769811.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/28bt11262769811.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/3vl8u1262769811.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/495tz1262769811.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,] 2.18 2.06 1.99 2.12 2.08 1.97 2.09 2.11 2.24 2.21 2.21 2.17 [2,] 2.25 2.21 2.33 2.25 2.26 2.36 2.30 2.19 2.31 2.45 2.66 2.26 [3,] 2.76 2.83 3.16 3.22 3.22 3.34 3.35 3.42 3.58 2.84 2.68 2.73 [4,] 3.76 3.66 3.85 4.03 4.31 4.40 4.37 4.14 3.84 3.71 3.68 3.83 [5,] 3.94 3.88 4.03 4.15 4.32 4.58 4.46 4.41 4.11 4.16 3.98 4.13 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.693038 1.805434 2.085972 1.962256 1.771475 1.898541 1.887343 2.042135 [2,] 3.826962 3.854566 4.234028 4.477744 4.668525 4.781459 4.812657 4.797865 [,9] [,10] [,11] [,12] [1,] 2.498906 1.949687 1.959271 1.620642 [2,] 4.661094 3.730313 3.400729 3.839358 $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(2.18, 2.25, 2.76, 3.76, 3.94, 2.06, 2.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ru541262769811.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.19 0.12 0.06 -0.04 0.08 -0.12 -0.23 -0.03 -0.10 -0.18 0.05 -0.370 [2,] -0.10 0.12 0.06 0.00 0.08 -0.06 -0.11 -0.03 -0.10 -0.18 0.05 -0.225 [3,] -0.06 0.15 0.12 0.01 0.10 -0.03 -0.05 0.12 0.05 -0.03 0.05 -0.025 [4,] 0.03 0.19 0.18 0.17 0.12 0.01 0.02 0.13 0.13 0.00 0.15 0.070 [5,] 0.07 0.19 0.26 0.28 0.12 0.01 0.07 0.16 0.21 0.23 0.15 0.110 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.15185767 0.1005382 0.0352083 -0.1101216 0.0717361 -0.07946182 [2,] 0.03185767 0.1994618 0.2047917 0.1301216 0.1282639 0.01946182 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.14185767 0.006944403 -0.1125174 -0.15718755 -0.02065975 -0.25805 [2,] 0.04185767 0.233055597 0.2125174 0.09718755 0.12065975 0.20805 $out [1] -0.07 0.33 -0.21 -0.11 0.27 0.12 -0.57 -1.00 -0.49 $group [1] 2 2 3 5 5 6 8 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.19, -0.0999999999999996, -0.06, 0.0299999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r6vm1262769811.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] [1,] 2.19 1.970 2.760 3.880 2.170 NA [2,] 2.20 2.100 3.190 4.005 3.250 NA [3,] 2.25 2.195 3.345 4.135 3.845 NA [4,] 2.28 2.390 3.630 4.240 4.360 NA [5,] 2.36 2.730 3.830 4.400 4.580 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.213511 2.062729 3.144313 4.027815 3.338722 NA [2,] 2.286489 2.327271 3.545687 4.242185 4.351278 NA $out [1] 2.06 1.99 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2.19, 2.2, 2.25, 2.28, 2.36, 1.97, 2.1, 2.195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7jofn1262769811.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,] 2.928 2.680 2.9350 [2,] 3.033 2.795 3.0600 [3,] 3.114 3.190 3.1150 [4,] 3.246 3.345 3.2275 [5,] 3.330 3.580 3.3800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.016849 2.939141 3.038602 [2,] 3.211151 3.440859 3.191398 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.928, 3.033, 3.114, 3.246, 3.33, 2.68, 2.795, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1wz131262769811.ps tmp/1wz131262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/28bt11262769811.ps tmp/28bt11262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/3vl8u1262769811.ps tmp/3vl8u1262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/495tz1262769811.ps tmp/495tz1262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/5ru541262769811.ps tmp/5ru541262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/6r6vm1262769811.ps tmp/6r6vm1262769811.png",intern=TRUE)) character(0) > try(system("convert tmp/7jofn1262769811.ps tmp/7jofn1262769811.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.193 0.948 5.901