R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(98.19,98.19,98.19,98.19,98.19,98.19,98.19,100.48,102.78,102.78,102.78,102.78,102.78,102.78,102.78,102.78,102.78,102.78,102.78,101.67,101.67,101.67,101.67,101.67,101.67,101.67,101.67,101.67,101.67,101.67,101.67,105.79,105.79,105.79,105.79,105.79,105.79,105.79,105.79,105.79,105.79,105.79,105.79,104.47,104.47,104.47,104.47,104.47,104.47,104.47,104.47,105.5,105.5,105.5,105.5,106.61,106.61,106.61,106.61,106.61) > 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,] 98.19 102.78 101.67 105.79 104.47 NA [2,] 98.19 102.78 101.67 105.79 104.47 NA [3,] 98.19 102.78 101.67 105.79 104.47 NA [4,] 98.19 102.78 101.67 105.79 105.50 NA [5,] 98.19 102.78 101.67 105.79 105.50 NA [6,] 98.19 102.78 101.67 105.79 105.50 NA [7,] 98.19 102.78 101.67 105.79 105.50 NA [8,] 100.48 101.67 105.79 104.47 106.61 NA [9,] 102.78 101.67 105.79 104.47 106.61 NA [10,] 102.78 101.67 105.79 104.47 106.61 NA [11,] 102.78 101.67 105.79 104.47 106.61 NA [12,] 102.78 101.67 105.79 104.47 106.61 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.00 0.00 0.00 0.00 0.00 NA [2,] 0.00 0.00 0.00 0.00 0.00 NA [3,] 0.00 0.00 0.00 0.00 1.03 NA [4,] 0.00 0.00 0.00 0.00 0.00 NA [5,] 0.00 0.00 0.00 0.00 0.00 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 2.29 -1.11 4.12 -1.32 1.11 NA [8,] 2.30 0.00 0.00 0.00 0.00 NA [9,] 0.00 0.00 0.00 0.00 0.00 NA [10,] 0.00 0.00 0.00 0.00 0.00 NA [11,] 0.00 0.00 0.00 0.00 0.00 NA [12,] 0.00 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/rcomp/tmp/1zzo01321362313.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/rcomp/tmp/2477a1321362313.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/rcomp/tmp/35fqi1321362313.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/rcomp/tmp/4182d1321362313.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] [1,] 98.19 98.19 98.19 98.19 98.19 98.19 98.19 100.48 101.67 101.67 [2,] 101.67 101.67 101.67 101.67 101.67 101.67 101.67 101.67 102.78 102.78 [3,] 102.78 102.78 102.78 102.78 102.78 102.78 102.78 104.47 104.47 104.47 [4,] 104.47 104.47 104.47 105.50 105.50 105.50 105.50 105.79 105.79 105.79 [5,] 105.79 105.79 105.79 105.79 105.79 105.79 105.79 106.61 106.61 106.61 [,11] [,12] [1,] 101.67 101.67 [2,] 102.78 102.78 [3,] 104.47 104.47 [4,] 105.79 105.79 [5,] 106.61 106.61 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.8015 100.8015 100.8015 100.0737 100.0737 100.0737 100.0737 101.5588 [2,] 104.7585 104.7585 104.7585 105.4863 105.4863 105.4863 105.4863 107.3812 [,9] [,10] [,11] [,12] [1,] 102.3431 102.3431 102.3431 102.3431 [2,] 106.5969 106.5969 106.5969 106.5969 $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(98.19, 101.67, 102.78, 104.47, 105.79, 98.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5vyov1321362313.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 0 0 0 0 0 -1.32 0 0 0 0 0 [2,] 0 0 0 0 0 0 -1.11 0 0 0 0 0 [3,] 0 0 0 0 0 0 1.11 0 0 0 0 0 [4,] 0 0 0 0 0 0 2.29 0 0 0 0 0 [5,] 0 0 0 0 0 0 4.12 0 0 0 0 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0 0 0 0 0 0 -1.292431 0 0 0 0 0 [2,] 0 0 0 0 0 0 3.512431 0 0 0 0 0 $out [1] 1.03 2.30 $group [1] 3 8 $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/rcomp/tmp/6lkog1321362313.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] [,6] [1,] 98.19 101.67 101.67 104.47 104.470 NA [2,] 98.19 101.67 101.67 104.47 104.985 NA [3,] 98.19 102.78 101.67 105.79 105.500 NA [4,] 102.78 102.78 105.79 105.79 106.610 NA [5,] 102.78 102.78 105.79 105.79 106.610 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 96.09647 102.2737 99.79084 105.1879 104.7588 NA [2,] 100.28353 103.2863 103.54916 106.3921 106.2412 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(98.19, 98.19, 98.19, 102.78, 102.78, 101.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7v1jy1321362313.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,] 102.580 102.78 103.0700 [2,] 102.683 102.78 103.3275 [3,] 102.786 102.78 103.5850 [4,] 104.264 104.47 104.2850 [5,] 104.264 104.47 104.2850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.0649 102.0092 103.1483 [2,] 103.5071 103.5508 104.0217 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.58, 102.683, 102.786, 104.264, 104.264, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zzo01321362313.ps tmp/1zzo01321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/2477a1321362313.ps tmp/2477a1321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/35fqi1321362313.ps tmp/35fqi1321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/4182d1321362313.ps tmp/4182d1321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/5vyov1321362313.ps tmp/5vyov1321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/6lkog1321362313.ps tmp/6lkog1321362313.png",intern=TRUE)) character(0) > try(system("convert tmp/7v1jy1321362313.ps tmp/7v1jy1321362313.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.780 0.190 1.935