R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(14.5,15.1,17.4,16.2,15.6,17.2,14.9,13.8,17.5,16.2,17.5,16.6,16.2,16.6,19.6,15.9,18,18.3,16.3,14.9,18.2,18.4,18.5,16,17.4,17.2,19.6,17.2,18.3,19.3,18.1,16.2,18.4,20.5,19,16.5,18.7,19,19.2,20.5,19.3,20.6,20.1,16.1,20.4,19.7,15.6,14.4,13.7,14.1,15,14.2,13.6,15.4,14.8,12.5,16.2,16.1,16,15.8,14.9,15.4,18.6,17.1,16.8,19.5,17.3,15.8,19.3,18.8,18.5,17.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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.5 16.2 17.4 18.7 13.7 14.9 NA [2,] 15.1 16.6 17.2 19.0 14.1 15.4 NA [3,] 17.4 19.6 19.6 19.2 15.0 18.6 NA [4,] 16.2 15.9 17.2 20.5 14.2 17.1 NA [5,] 15.6 18.0 18.3 19.3 13.6 16.8 NA [6,] 17.2 18.3 19.3 20.6 15.4 19.5 NA [7,] 14.9 16.3 18.1 20.1 14.8 17.3 NA [8,] 13.8 14.9 16.2 16.1 12.5 15.8 NA [9,] 17.5 18.2 18.4 20.4 16.2 19.3 NA [10,] 16.2 18.4 20.5 19.7 16.1 18.8 NA [11,] 17.5 18.5 19.0 15.6 16.0 18.5 NA [12,] 16.6 16.0 16.5 14.4 15.8 17.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6 0.4 -0.2 0.3 0.4 0.5 NA [2,] 2.3 3.0 2.4 0.2 0.9 3.2 NA [3,] -1.2 -3.7 -2.4 1.3 -0.8 -1.5 NA [4,] -0.6 2.1 1.1 -1.2 -0.6 -0.3 NA [5,] 1.6 0.3 1.0 1.3 1.8 2.7 NA [6,] -2.3 -2.0 -1.2 -0.5 -0.6 -2.2 NA [7,] -1.1 -1.4 -1.9 -4.0 -2.3 -1.5 NA [8,] 3.7 3.3 2.2 4.3 3.7 3.5 NA [9,] -1.3 0.2 2.1 -0.7 -0.1 -0.5 NA [10,] 1.3 0.1 -1.5 -4.1 -0.1 -0.3 NA [11,] -0.9 -2.5 -2.5 -1.2 -0.2 -1.2 NA [12,] -0.4 1.4 2.2 -0.7 -0.9 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/wessaorg/rcomp/tmp/1wmsl1319292606.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/wessaorg/rcomp/tmp/2fad81319292606.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/wessaorg/rcomp/tmp/3wnrg1319292606.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/wessaorg/rcomp/tmp/4upnc1319292606.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,] 13.70 14.1 15.0 14.20 13.6 15.4 14.8 12.50 16.2 16.1 15.6 15.80 [2,] 14.50 15.1 17.4 15.90 15.6 17.2 14.9 13.80 17.5 16.2 16.0 15.80 [3,] 15.55 16.0 18.9 16.65 17.4 18.8 16.8 15.35 18.3 18.6 18.0 16.25 [4,] 17.40 17.2 19.6 17.20 18.3 19.5 18.1 16.10 19.3 19.7 18.5 16.60 [5,] 18.70 19.0 19.6 17.20 19.3 20.6 20.1 16.20 20.4 20.5 19.0 17.30 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13.67941 14.64543 17.48093 15.81146 15.65841 17.31643 14.7359 13.86643 [2,] 17.42059 17.35457 20.31907 17.48854 19.14159 20.28357 18.8641 16.83357 [,9] [,10] [,11] [,12] [1,] 17.13894 16.34239 16.38742 15.73397 [2,] 19.46106 20.85761 19.61258 16.76603 $out [1] 20.5 14.4 $group [1] 4 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(13.7, 14.5, 15.55, 17.4, 18.7, 14.1, 15.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5v7br1319292606.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.3 0.20 -3.70 -1.20 0.30 -2.3 -2.3 3.3 -1.3 -1.5 -2.5 -0.9 [2,] 0.3 0.90 -2.40 -0.60 1.00 -2.2 -2.3 3.3 -0.7 -1.5 -2.5 -0.7 [3,] 0.4 2.35 -1.35 -0.45 1.45 -1.6 -1.7 3.6 -0.3 -0.2 -1.2 -0.4 [4,] 0.5 3.00 -0.80 1.10 1.80 -0.6 -1.4 3.7 0.2 0.1 -0.9 1.4 [5,] 0.6 3.20 1.30 2.10 2.70 -0.5 -1.1 4.3 0.2 1.3 -0.2 2.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.2709935 0.9954322 -2.3820517 -1.5465549 0.9339742 -2.6320517 -2.280529 [2,] 0.5290065 3.7045678 -0.3179483 0.6465549 1.9660258 -0.5679483 -1.119471 [,8] [,9] [,10] [,11] [,12] [1,] 3.341987 -0.8805291 -1.2320517 -2.2320517 -1.883855 [2,] 3.858013 0.2805291 0.8320517 -0.1679483 1.083855 $out [1] -0.2 -4.0 2.2 2.1 -4.1 $group [1] 1 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.300000000000001, 0.300000000000001, 0.400000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/67u8r1319292606.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] [,7] [1,] 13.8 14.90 16.20 14.40 12.5 14.9 NA [2,] 15.0 16.10 17.20 17.40 13.9 16.3 NA [3,] 16.2 17.30 18.20 19.25 14.9 17.3 NA [4,] 17.3 18.35 19.15 20.25 15.9 18.7 NA [5,] 17.5 19.60 20.50 20.60 16.2 19.5 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.15095 16.27376 17.31059 17.9501 13.98779 16.20534 NA [2,] 17.24905 18.32624 19.08941 20.5499 15.81221 18.39466 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13.8, 15, 16.2, 17.3, 17.5, 14.9, 16.1, 17.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7svis1319292606.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,] 14.88333 15.350 15.05000 [2,] 16.16667 16.125 16.16250 [3,] 16.92500 17.100 16.81875 [4,] 18.25833 18.450 18.24375 [5,] 18.38333 18.900 18.60000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.97098 16.03955 15.86948 [2,] 17.87902 18.16045 17.76802 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(14.8833333333333, 16.1666666666667, 16.925, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1wmsl1319292606.ps tmp/1wmsl1319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/2fad81319292606.ps tmp/2fad81319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/3wnrg1319292606.ps tmp/3wnrg1319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/4upnc1319292606.ps tmp/4upnc1319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/5v7br1319292606.ps tmp/5v7br1319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/67u8r1319292606.ps tmp/67u8r1319292606.png",intern=TRUE)) character(0) > try(system("convert tmp/7svis1319292606.ps tmp/7svis1319292606.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.765 0.395 2.205