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(9367,31124,26551,30651,25859,25100,25778,20418,18688,20424,24776,19814,12738,31566,30111,30019,31934,25826,26835,20205,17789,20520,22518,15572,11509,25447,24090,27786,26195,20516,22759,19028,16971,20036,22485,18730,14538,27561,25985,34670,32066,27186,29586,21359,21553,19573,24256,22380,16167,27297,28287,33474,28229,28785,25597,18130,20198,22849,23118,21925,18785) > 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] 61 > (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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9367 12738 11509 14538 16167 18785 [2,] 31124 31566 25447 27561 27297 NA [3,] 26551 30111 24090 25985 28287 NA [4,] 30651 30019 27786 34670 33474 NA [5,] 25859 31934 26195 32066 28229 NA [6,] 25100 25826 20516 27186 28785 NA [7,] 25778 26835 22759 29586 25597 NA [8,] 20418 20205 19028 21359 18130 NA [9,] 18688 17789 16971 21553 20198 NA [10,] 20424 20520 20036 19573 22849 NA [11,] 24776 22518 22485 24256 23118 NA [12,] 19814 15572 18730 22380 21925 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21757 18828 13938 13023 11130 NA [2,] -4573 -1455 -1357 -1576 990 NA [3,] 4100 -92 3696 8685 5187 NA [4,] -4792 1915 -1591 -2604 -5245 NA [5,] -759 -6108 -5679 -4880 556 NA [6,] 678 1009 2243 2400 -3188 NA [7,] -5360 -6630 -3731 -8227 -7467 NA [8,] -1730 -2416 -2057 194 2068 NA [9,] 1736 2731 3065 -1980 2651 NA [10,] 4352 1998 2449 4683 269 NA [11,] -4962 -6946 -3755 -1876 -1193 NA [12,] -7076 -4063 -4192 -6213 -3140 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/1yzen1331537841.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/2zqgs1331537841.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/3w1201331537841.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/4pjau1331537841.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,] 9367 25447 24090 27786 25859 25100 25597 18130 16971 19573 22485 15572 [2,] 11509 27297 25985 30019 26195 25100 25597 19028 17789 20036 22518 18730 [3,] 13638 27561 26551 30651 28229 25826 25778 20205 18688 20424 23118 19814 [4,] 16167 31124 28287 33474 31934 27186 26835 20418 20198 20520 24256 21925 [5,] 18785 31566 30111 34670 32066 28785 26835 21359 21553 20520 24776 22380 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10633.44 24856.85 24924.41 28209.71 24173.84 24352.04 24903.23 19222.83 [2,] 16642.56 30265.15 28177.59 33092.29 32284.16 27299.96 26652.77 21187.17 [,9] [,10] [,11] [,12] [1,] 16985.81 20082.01 21889.93 17556.42 [2,] 20390.19 20765.99 24346.07 22071.58 $out [1] 20516 22759 29586 22849 $group [1] 6 7 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9367, 11509, 13638, 16167, 18785, 25447, 27297, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5om881331537841.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,] 11130 -1576 3696 -5245 -6108 678 -8227 -2416 1736 269 -6946 -7076 [2,] 13023 -1576 3696 -4792 -5679 678 -7467 -2057 1736 1998 -4962 -6213 [3,] 13938 -1455 4100 -2604 -4880 1009 -6630 -1730 2651 2449 -3755 -4192 [4,] 18828 -1357 5187 -1591 -759 2243 -5360 194 2731 4352 -1876 -4063 [5,] 21757 -1357 5187 1915 556 2400 -3731 2068 3065 4683 -1193 -3140 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9836.202 -1609.745 3046.463 -4865.8185 -8356.46 -96.82506 -8118.801 [2,] 18039.798 -1300.255 5153.537 -342.1815 -1403.54 2114.82506 -5141.199 [,8] [,9] [,10] [,11] [,12] [1,] -3320.5509 1947.936 785.6695 -5935.56 -5711.185 [2,] -139.4491 3354.064 4112.3305 -1574.44 -2672.815 $out [1] -4573 990 -92 8685 -3188 -1980 $group [1] 2 2 3 3 6 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11130, 13023, 13938, 18828, 21757, -1576, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6mwtk1331537841.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,] 18688 12738 11509.0 14538.0 16167.0 18785 [2,] 20116 18997 18879.0 21456.0 21061.5 18785 [3,] 24938 24172 21500.5 25120.5 24357.5 18785 [4,] 26205 30065 24768.5 28573.5 28258.0 18785 [5,] 31124 31934 27786.0 34670.0 33474.0 18785 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 22160.77 19123.81 18814.26 21874.16 21075.13 18785 [2,] 27715.23 29220.19 24186.74 28366.84 27639.87 18785 $out [1] 9367 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(18688, 20116, 24938, 26205, 31124, 12738, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7dq4r1331537841.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,] 13850.67 13638.0 13788.00 [2,] 19756.10 20009.5 20000.50 [3,] 24456.60 24448.0 24765.00 [4,] 27801.90 27056.0 28100.25 [5,] 31320.00 30651.0 31746.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 20786.86 21234.04 21070.65 [2,] 28126.34 27661.96 28459.35 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(13850.6666666667, 19756.1, 24456.6, 27801.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1yzen1331537841.ps tmp/1yzen1331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/2zqgs1331537841.ps tmp/2zqgs1331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/3w1201331537841.ps tmp/3w1201331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/4pjau1331537841.ps tmp/4pjau1331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/5om881331537841.ps tmp/5om881331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/6mwtk1331537841.ps tmp/6mwtk1331537841.png",intern=TRUE)) character(0) > try(system("convert tmp/7dq4r1331537841.ps tmp/7dq4r1331537841.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.560 0.460 2.022