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. 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(-15,-15,-10,-12,-11,-11,-17,-18,-19,-22,-24,-24,-20,-25,-22,-17,-9,-11,-13,-11,-9,-7,-3,-3,-6,-4,-8,-1,-2,-2,-1,1,2,2,-1,1,-1,-8,1,2,-2,-2,-2,-2,-6,-4,-5,-2,-1,-5,-9,-8,-14,-10,-11,-11,-11,-5,-2,-3,-6,-6,-7,-6,-2,-2,-4,0,-6,-4,-3,-1,-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] 73 > (np <- floor(n / par1)) [1] 6 > 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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -15 -20 -6 -1 -1 -6 -3 [2,] -15 -25 -4 -8 -5 -6 NA [3,] -10 -22 -8 1 -9 -7 NA [4,] -12 -17 -1 2 -8 -6 NA [5,] -11 -9 -2 -2 -14 -2 NA [6,] -11 -11 -2 -2 -10 -2 NA [7,] -17 -13 -1 -2 -11 -4 NA [8,] -18 -11 1 -2 -11 0 NA [9,] -19 -9 2 -6 -11 -6 NA [10,] -22 -7 2 -4 -5 -4 NA [11,] -24 -3 -1 -5 -2 -3 NA [12,] -24 -3 1 -2 -3 -1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -5 2 -7 -4 0 NA [2,] 5 3 -4 9 -4 -1 NA [3,] -2 5 7 1 1 1 NA [4,] 1 8 -1 -4 -6 4 NA [5,] 0 -2 0 0 4 0 NA [6,] -6 -2 1 0 -1 -2 NA [7,] -1 2 2 0 0 4 NA [8,] -1 2 1 -4 0 -6 NA [9,] -3 2 0 2 6 2 NA [10,] -2 4 -3 -1 3 1 NA [11,] 0 0 2 3 -1 2 NA [12,] 4 -3 -2 1 -3 -2 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/16ra81272290050.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/freestat/rcomp/tmp/2g09b1272290050.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/freestat/rcomp/tmp/3g09b1272290050.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/freestat/rcomp/tmp/49r8w1272290050.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,] -20.0 -25 -10.0 -17 -14.0 -11 -17.0 -18.0 -11.0 -7.0 -5 -3.0 [2,] -10.5 -15 -10.0 -12 -11.0 -11 -13.0 -11.0 -11.0 -7.0 -5 -3.0 [3,] -6.0 -7 -8.5 -7 -5.5 -6 -7.5 -6.5 -7.5 -4.5 -3 -2.5 [4,] -2.0 -5 -7.0 -1 -2.0 -2 -2.0 0.0 -6.0 -4.0 -2 -1.0 [5,] -1.0 -4 -7.0 2 -2.0 -2 -1.0 1.0 -6.0 -4.0 -1 1.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -11.0760629 -13.450323 -10.435097 -14.09535529 -11.3052907 -11.8052907 [2,] -0.9239371 -0.549677 -6.564903 0.09535529 0.3052907 -0.1947093 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -14.5953553 -13.5953553 -10.725161 -6.435097 -4.935097 -3.790065 [2,] -0.4046447 0.5953553 -4.274839 -2.564903 -1.064903 -1.209935 $out [1] -22 1 -19 2 -22 2 -24 -24 $group [1] 3 3 9 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-20, -10.5, -6, -2, -1, -25, -15, -7, -5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/59r8w1272290050.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,] -7 -4 -2 -6 0 -2.0 -1 -6.0 -3 -3 -1 -3 [2,] -5 -4 1 -4 0 -2.0 0 -4.0 0 -2 0 -3 [3,] -2 1 1 0 0 -1.5 1 -0.5 2 0 1 -2 [4,] 0 5 5 4 0 0.0 2 1.0 2 3 2 1 [5,] 2 9 7 8 0 1.0 4 2.0 2 4 3 4 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.225161 -4.805291 -1.580129 -5.160258 0 -2.7900646 -0.2900646 [2,] 1.225161 6.805291 3.580129 5.160258 0 -0.2099354 2.2900646 [,8] [,9] [,10] [,11] [,12] [1,] -3.725161 0.7099354 -3.225161 -0.2900646 -4.5801292 [2,] 2.725161 3.2900646 3.225161 2.2900646 0.5801292 $out [1] -2 4 -6 6 $group [1] 5 5 6 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7, -5, -2, 0, 2, -4, -4, 1, 5, 9, -2, 1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/69r8w1272290050.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] [1,] -24.0 -25.0 -8 -8.0 -14.0 -7 -3 [2,] -20.5 -18.5 -3 -4.5 -11.0 -6 -3 [3,] -16.0 -11.0 -1 -2.0 -8.5 -4 -3 [4,] -11.5 -8.0 1 -1.5 -4.0 -2 -3 [5,] -10.0 -3.0 2 2.0 -1.0 0 -3 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -20.10496 -15.78912 -2.8244269 -3.3683201 -11.692747 -5.824427 -3 [2,] -11.89504 -6.21088 0.8244269 -0.6316799 -5.307253 -2.175573 -3 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(-24, -20.5, -16, -11.5, -10, -25, -18.5, -11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7k0pz1272290050.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,] -9.166667 -8.50 -9.2500 [2,] -8.083333 -7.25 -7.8750 [3,] -6.916667 -6.25 -6.3125 [4,] -6.500000 -5.00 -5.5000 [5,] -5.333333 -2.50 -2.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -7.638836 -7.27624 -7.395753 [2,] -6.194498 -5.22376 -5.229247 $out [1] -10.5 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-9.16666666666667, -8.08333333333333, -6.91666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16ra81272290050.ps tmp/16ra81272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/2g09b1272290050.ps tmp/2g09b1272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/3g09b1272290050.ps tmp/3g09b1272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/49r8w1272290050.ps tmp/49r8w1272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/59r8w1272290050.ps tmp/59r8w1272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/69r8w1272290050.ps tmp/69r8w1272290050.png",intern=TRUE)) character(0) > try(system("convert tmp/7k0pz1272290050.ps tmp/7k0pz1272290050.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.929 1.515 2.247