R version 2.8.0 (2008-10-20) 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. Natural language support but running in an English locale 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(17.0,20.5,17.4,11.2,10.3,6.7,2.5,0.1,2.9,9.7,11.3,15.8,19.4,18.7,16.5,14.4,12.5,6.7,3.6,0.7,2.8,6.9,10.5,14.0,17.6,18.0,16.1,16.4,9.3,6.3,6.1,6.5,4.1,6.8,10.4,14.1,17.2,17.2,17.5,14.6,14.3,8.0,6.8,7.2,5.9,9.1,14.2,18.4,16.3,23.0,17.3,14.2,9.3) > 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] 53 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 17.0 19.4 17.6 17.2 16.3 [2,] 20.5 18.7 18.0 17.2 23.0 [3,] 17.4 16.5 16.1 17.5 17.3 [4,] 11.2 14.4 16.4 14.6 14.2 [5,] 10.3 12.5 9.3 14.3 9.3 [6,] 6.7 6.7 6.3 8.0 NA [7,] 2.5 3.6 6.1 6.8 NA [8,] 0.1 0.7 6.5 7.2 NA [9,] 2.9 2.8 4.1 5.9 NA [10,] 9.7 6.9 6.8 9.1 NA [11,] 11.3 10.5 10.4 14.2 NA [12,] 15.8 14.0 14.1 18.4 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 3.5 -0.7 0.4 0.0 6.7 [2,] -3.1 -2.2 -1.9 0.3 -5.7 [3,] -6.2 -2.1 0.3 -2.9 -3.1 [4,] -0.9 -1.9 -7.1 -0.3 -4.9 [5,] -3.6 -5.8 -3.0 -6.3 NA [6,] -4.2 -3.1 -0.2 -1.2 NA [7,] -2.4 -2.9 0.4 0.4 NA [8,] 2.8 2.1 -2.4 -1.3 NA [9,] 6.8 4.1 2.7 3.2 NA [10,] 1.6 3.6 3.6 5.1 NA [11,] 4.5 3.5 3.7 4.2 NA [12,] 3.6 3.6 3.1 -2.1 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/freestat/rcomp/tmp/1e7xb1292704034.ps",horizontal=F,onefile=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/freestat/rcomp/tmp/2e7xb1292704034.ps",horizontal=F,onefile=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/freestat/rcomp/tmp/3e7xb1292704034.ps",horizontal=F,onefile=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/freestat/rcomp/tmp/4phwe1292704034.ps",horizontal=F,onefile=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,] 16.3 17.2 16.1 14.2 9.3 6.30 2.50 0.10 2.80 6.80 10.40 14.00 [2,] 17.0 18.0 16.5 14.2 9.3 6.50 3.05 0.40 2.85 6.85 10.45 14.05 [3,] 17.2 18.7 17.3 14.4 10.3 6.70 4.85 3.60 3.50 8.00 10.90 14.95 [4,] 17.6 20.5 17.4 14.6 12.5 7.35 6.45 6.85 5.00 9.40 12.75 17.10 [5,] 17.6 23.0 17.5 14.6 14.3 8.00 6.80 7.20 5.90 9.70 14.20 18.40 $n [1] 5 5 5 5 5 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 16.77604 16.93351 16.66406 14.11736 8.038888 6.0285 2.164 -1.4955 1.8015 [2,] 17.62396 20.46649 17.93594 14.68264 12.561112 7.3715 7.536 8.6955 5.1985 [,10] [,11] [,12] [1,] 5.9855 9.083 12.5405 [2,] 10.0145 12.717 17.3595 $out [1] 19.4 11.2 16.4 $group [1] 1 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(16.3, 17, 17.2, 17.6, 17.6, 17.2, 18, 18.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5phwe1292704034.ps",horizontal=F,onefile=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.7 -3.1 -3.1 -7.1 -6.30 -4.20 -2.90 -2.40 2.70 1.60 3.50 -2.10 [2,] 0.0 -3.1 -3.1 -4.9 -6.05 -3.65 -2.65 -1.85 2.95 2.60 3.60 0.50 [3,] 0.4 -2.2 -2.9 -1.9 -4.70 -2.15 -1.00 0.40 3.65 3.60 3.95 3.35 [4,] 3.5 -1.9 -2.1 -0.9 -3.30 -0.70 0.40 2.45 5.45 4.35 4.35 3.60 [5,] 6.7 -1.9 -2.1 -0.3 -3.00 -0.20 0.40 2.80 6.80 5.10 4.50 3.60 $n [1] 5 5 5 5 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -2.073091 -3.047917 -3.606597 -4.72639 -6.8725 -4.4805 -3.4095 -2.997 [2,] 2.873091 -1.352083 -2.193403 0.92639 -2.5275 0.1805 1.4095 3.797 [,9] [,10] [,11] [,12] [1,] 1.675 2.2175 3.3575 0.901 [2,] 5.625 4.9825 4.5425 5.799 $out [1] 0.3 -5.7 -6.2 0.3 $group [1] 2 2 3 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.699999999999999, 0, 0.399999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6aigu1292704035.ps",horizontal=F,onefile=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] [1,] 0.10 0.70 4.10 5.90 14.2 [2,] 4.80 5.15 6.40 7.60 14.2 [3,] 10.75 11.50 9.85 14.25 16.3 [4,] 16.40 15.45 16.25 17.20 17.3 [5,] 20.50 19.40 18.00 18.40 17.3 $n [1] 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [1,] 5.459162 6.802101 5.357349 9.871376 14.10955 [2,] 16.040838 16.197899 14.342651 18.628624 18.49045 $out [1] 23.0 9.3 $group [1] 5 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(0.1, 4.8, 10.75, 16.4, 20.5, 0.7, 5.15, 11.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7aigu1292704035.ps",horizontal=F,onefile=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,] 3.6250 3.500 3.61250 [2,] 5.8375 5.775 5.80625 [3,] 11.3700 10.600 11.07500 [4,] 16.2675 16.075 16.10625 [5,] 19.4800 18.700 19.25000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.612807 5.902101 6.377101 [2,] 16.127193 15.297899 15.772899 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/1e7xb1292704034.ps tmp/1e7xb1292704034.png",intern=TRUE)) character(0) > try(system("convert tmp/2e7xb1292704034.ps tmp/2e7xb1292704034.png",intern=TRUE)) character(0) > try(system("convert tmp/3e7xb1292704034.ps tmp/3e7xb1292704034.png",intern=TRUE)) character(0) > try(system("convert tmp/4phwe1292704034.ps tmp/4phwe1292704034.png",intern=TRUE)) character(0) > try(system("convert tmp/5phwe1292704034.ps tmp/5phwe1292704034.png",intern=TRUE)) character(0) > try(system("convert tmp/6aigu1292704035.ps tmp/6aigu1292704035.png",intern=TRUE)) character(0) > try(system("convert tmp/7aigu1292704035.ps tmp/7aigu1292704035.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.916 1.470 2.130