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(8.7,8.7,8.7,8.6,8.5,8.5,8.4,8.4,8.3,8.2,8.1,8.0,8.1,8.1,8.0,7.8,7.7,7.7,7.7,7.6,7.5,7.3,7.1,7.1,7.2,7.2,7.2,6.9,6.8,6.8,6.8,6.9,7.0,7.2,7.2,7.2,7.0,7.0,7.2,7.4,7.8,8.0,7.8,7.8,7.9,7.9,8.0,8.0,8.0,8.0,8.2,8.4,8.6,8.6,8.5,8.5,8.4,8.4,8.4) > par1 = '4' > #'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] 59 > (np <- floor(n / par1)) [1] 14 > 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] 15 15 15 14 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 8.7 8.5 8.3 8.1 7.7 7.5 7.2 6.8 7.0 7.0 7.8 7.9 8.0 8.6 [2,] 8.7 8.5 8.2 8.1 7.7 7.3 7.2 6.8 7.2 7.0 8.0 7.9 8.0 8.6 [3,] 8.7 8.4 8.1 8.0 7.7 7.1 7.2 6.8 7.2 7.2 7.8 8.0 8.2 8.5 [4,] 8.6 8.4 8.0 7.8 7.6 7.1 6.9 6.9 7.2 7.4 7.8 8.0 8.4 8.5 [,15] [1,] 8.4 [2,] 8.4 [3,] 8.4 [4,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 0.0 0.0 -0.1 0.0 0.0 -0.2 0.0 0.0 0.2 0.0 0.2 0.0 0.0 0.0 [2,] 0.0 -0.1 -0.1 -0.1 0.0 -0.2 0.0 0.0 0.0 0.2 -0.2 0.1 0.2 -0.1 [3,] -0.1 0.0 -0.1 -0.2 -0.1 0.0 -0.3 0.1 0.0 0.2 0.0 0.0 0.2 0.0 [4,] -0.1 -0.1 0.1 -0.1 -0.1 0.1 -0.1 0.1 -0.2 0.4 0.1 0.0 0.2 -0.1 [,15] [1,] 0 [2,] 0 [3,] NA [4,] 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/1g2nt1290782508.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/2g2nt1290782508.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/3g2nt1290782508.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/4ru4e1290782508.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] [1,] 6.80 6.80 6.8 6.9 [2,] 7.35 7.25 7.2 7.2 [3,] 7.90 8.00 8.0 7.8 [4,] 8.35 8.30 8.3 8.4 [5,] 8.70 8.70 8.7 8.6 $n [1] 15 15 15 14 $conf [,1] [,2] [,3] [,4] [1,] 7.492046 7.571648 7.55125 7.293273 [2,] 8.307954 8.428352 8.44875 8.306727 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" Warning message: In bxp(list(stats = c(6.8, 7.35, 7.9, 8.35, 8.7, 6.8, 7.25, 8, 8.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ru4e1290782508.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] [1,] 0 -0.2 -0.2 -0.20 [2,] 0 -0.1 -0.1 -0.10 [3,] 0 0.0 0.0 -0.05 [4,] 0 0.0 0.0 0.10 [5,] 0 0.1 0.1 0.40 $n [1] 15 15 14 14 $conf [,1] [,2] [,3] [,4] [1,] 0 -0.04079542 -0.04222728 -0.13445455 [2,] 0 0.04079542 0.04222728 0.03445455 $out [1] -0.1 -0.2 0.2 0.2 0.2 0.2 -0.3 0.2 0.2 $group [1] 1 1 1 1 2 2 3 3 3 $names [1] "1" "2" "3" "4" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, -0.2, -0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62llg1290782508.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] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 8.60 8.40 8.00 7.80 7.60 7.1 6.90 6.80 7.0 7.0 7.8 7.90 8.0 8.50 [2,] 8.65 8.40 8.05 7.90 7.65 7.1 7.05 6.80 7.1 7.0 7.8 7.90 8.0 8.50 [3,] 8.70 8.45 8.15 8.05 7.70 7.2 7.20 6.80 7.2 7.1 7.8 7.95 8.1 8.55 [4,] 8.70 8.50 8.25 8.10 7.70 7.4 7.20 6.85 7.2 7.3 7.9 8.00 8.3 8.60 [5,] 8.70 8.50 8.30 8.10 7.70 7.5 7.20 6.90 7.2 7.4 8.0 8.00 8.4 8.60 [,15] [1,] 8.4 [2,] 8.4 [3,] 8.4 [4,] 8.4 [5,] 8.4 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 8.6605 8.371 7.992 7.892 7.6605 6.963 7.0815 6.7605 7.121 6.863 7.721 [2,] 8.7395 8.529 8.308 8.208 7.7395 7.437 7.3185 6.8395 7.279 7.337 7.879 [,12] [,13] [,14] [,15] [1,] 7.871 7.863 8.471 8.4 [2,] 8.029 8.337 8.629 8.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" NA Warning message: In bxp(list(stats = c(8.6, 8.65, 8.7, 8.7, 8.7, 8.4, 8.4, 8.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72llg1290782508.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,] 7.757143 7.80 7.7500 [2,] 7.788571 7.85 7.7625 [3,] 7.826667 7.95 7.7750 [4,] 7.836667 8.00 7.8125 [5,] 7.840000 8.00 7.8500 $n [1] 4 4 4 $conf [,1] [,2] [,3] [1,] 7.788671 7.8315 7.7355 [2,] 7.864662 8.0685 7.8145 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.75714285714286, 7.78857142857143, 7.82666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1g2nt1290782508.ps tmp/1g2nt1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/2g2nt1290782508.ps tmp/2g2nt1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/3g2nt1290782508.ps tmp/3g2nt1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/4ru4e1290782508.ps tmp/4ru4e1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/5ru4e1290782508.ps tmp/5ru4e1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/62llg1290782508.ps tmp/62llg1290782508.png",intern=TRUE)) character(0) > try(system("convert tmp/72llg1290782508.ps tmp/72llg1290782508.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.216 0.988 2.893