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(3.4,3.4,3.4,-3.5,-3.5,-3.5,-8.3,-8.3,-8.3,-16.7,-16.7,-16.7,-11.6,-11.6,-11.6,-8.4,-8.4,-8.4,-8.6,-8.6,-8.6,0.6,0.6,0.6,-1.5,-1.5,-1.5,9.3,9.3,9.3,2.0,2.0,2.0,-5.5,-5.5,-5.5,4.0,4.0,4.0,-0.5,-0.5,-0.5,10.9,10.9,10.9,19.4,19.4,19.4,13.9,13.9,13.9,10.6,10.6,10.6,4.8,4.8,4.8,4.7,4.7,4.7,-3.9,-3.9,-3.9,-0.2,-0.2,-0.2) > 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] 66 > (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] 6 6 6 6 6 6 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.4 -11.6 -1.5 4.0 13.9 -3.9 [2,] 3.4 -11.6 -1.5 4.0 13.9 -3.9 [3,] 3.4 -11.6 -1.5 4.0 13.9 -3.9 [4,] -3.5 -8.4 9.3 -0.5 10.6 -0.2 [5,] -3.5 -8.4 9.3 -0.5 10.6 -0.2 [6,] -3.5 -8.4 9.3 -0.5 10.6 -0.2 [7,] -8.3 -8.6 2.0 10.9 4.8 NA [8,] -8.3 -8.6 2.0 10.9 4.8 NA [9,] -8.3 -8.6 2.0 10.9 4.8 NA [10,] -16.7 0.6 -5.5 19.4 4.7 NA [11,] -16.7 0.6 -5.5 19.4 4.7 NA [12,] -16.7 0.6 -5.5 19.4 4.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0 0.0 0.0 0.0 0.0 0.0 [2,] 0.0 0.0 0.0 0.0 0.0 0.0 [3,] -6.9 3.2 10.8 -4.5 -3.3 3.7 [4,] 0.0 0.0 0.0 0.0 0.0 0.0 [5,] 0.0 0.0 0.0 0.0 0.0 0.0 [6,] -4.8 -0.2 -7.3 11.4 -5.8 NA [7,] 0.0 0.0 0.0 0.0 0.0 NA [8,] 0.0 0.0 0.0 0.0 0.0 NA [9,] -8.4 9.2 -7.5 8.5 -0.1 NA [10,] 0.0 0.0 0.0 0.0 0.0 NA [11,] 0.0 0.0 0.0 0.0 0.0 NA [12,] 5.1 -2.1 9.5 -5.5 -8.6 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/17rlw1290792612.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/27rlw1290792612.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/37rlw1290792612.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/40i2g1290792612.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,] -11.60 -11.60 -11.60 -8.40 -8.40 -8.40 -8.6 -8.6 -8.6 -16.7 -16.7 -16.7 [2,] -3.90 -3.90 -3.90 -3.50 -3.50 -3.50 -8.3 -8.3 -8.3 -5.5 -5.5 -5.5 [3,] 0.95 0.95 0.95 -0.35 -0.35 -0.35 2.0 2.0 2.0 0.6 0.6 0.6 [4,] 4.00 4.00 4.00 9.30 9.30 9.30 4.8 4.8 4.8 4.7 4.7 4.7 [5,] 13.90 13.90 13.90 10.60 10.60 10.60 10.9 10.9 10.9 19.4 19.4 19.4 $n [1] 6 6 6 6 6 6 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.145755 -4.145755 -4.145755 -8.606413 -8.606413 -8.606413 -7.256427 [2,] 6.045755 6.045755 6.045755 7.906413 7.906413 7.906413 11.256427 [,8] [,9] [,10] [,11] [,12] [1,] -7.256427 -7.256427 -6.607294 -6.607294 -6.607294 [2,] 11.256427 11.256427 7.807294 7.807294 7.807294 $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(-11.6, -3.9, 0.95, 4, 13.9, -11.6, -3.9, 0.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50i2g1290792612.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 -6.90 0 0 -7.3 0 0 -8.4 0 0 -8.6 [2,] 0 0 -4.50 0 0 -5.8 0 0 -7.5 0 0 -5.5 [3,] 0 0 -0.05 0 0 -4.8 0 0 -0.1 0 0 -2.1 [4,] 0 0 3.70 0 0 -0.2 0 0 8.5 0 0 5.1 [5,] 0 0 10.80 0 0 -0.2 0 0 9.2 0 0 9.5 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0 0 -5.339265 0 0 -8.7569459 0 0 -11.40556 0 0 [2,] 0 0 5.239265 0 0 -0.8430541 0 0 11.20556 0 0 [,12] [1,] -9.589933 [2,] 5.389933 $out [1] 11.4 $group [1] 6 $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, -6.9, -4.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60i2g1290792612.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,] -16.70 -11.6 -5.50 -0.50 4.70 -3.90 [2,] -12.50 -10.1 -3.50 1.75 4.75 -3.90 [3,] -5.90 -8.5 0.25 7.45 7.70 -2.05 [4,] -0.05 -3.9 5.65 15.15 12.25 -0.20 [5,] 3.40 0.6 9.30 19.40 13.90 -0.20 $n [1] 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -11.5785286 -11.327862 -3.923376 1.33817 4.2792 -4.4366195 [2,] -0.2214714 -5.672138 4.423376 13.56183 11.1208 0.3366195 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-16.7, -12.5, -5.9, -0.05, 3.4, -11.6, -10.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7t92j1290792612.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,] 0.1600000 -0.350 -1.75000 [2,] 0.3300000 0.125 -1.07500 [3,] 0.6083333 0.775 -0.06250 [4,] 0.9666667 1.475 1.18125 [5,] 1.2166667 2.000 2.08750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3179454 0.1592559 -1.0915908 [2,] 0.8987213 1.3907441 0.9665908 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.16, 0.33, 0.608333333333333, 0.966666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/17rlw1290792612.ps tmp/17rlw1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/27rlw1290792612.ps tmp/27rlw1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/37rlw1290792612.ps tmp/37rlw1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/40i2g1290792612.ps tmp/40i2g1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/50i2g1290792612.ps tmp/50i2g1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/60i2g1290792612.ps tmp/60i2g1290792612.png",intern=TRUE)) character(0) > try(system("convert tmp/7t92j1290792612.ps tmp/7t92j1290792612.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.229 0.986 3.051