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(77,70,67,76,85,106,108,120,108,111,109,104,104,117,111,110,116,118,115,111,112,97,106,93,95,97,81,71,75,70,72,80,78,80,81,99,87,100,95,128,112,104,102,108,103,99,96,85,78,74,106,100,109,87,107,106,109,83,84,83,65,68,61,75,66,78,68,68,174,64,48,45) > 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,] 77 104 95 87 78 65 NA [2,] 70 117 97 100 74 68 NA [3,] 67 111 81 95 106 61 NA [4,] 76 110 71 128 100 75 NA [5,] 85 116 75 112 109 66 NA [6,] 106 118 70 104 87 78 NA [7,] 108 115 72 102 107 68 NA [8,] 120 111 80 108 106 68 NA [9,] 108 112 78 103 109 174 NA [10,] 111 97 80 99 83 64 NA [11,] 109 106 81 96 84 48 NA [12,] 104 93 99 85 83 45 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7 13 2 13 -4 3 NA [2,] -3 -6 -16 -5 32 -7 NA [3,] 9 -1 -10 33 -6 14 NA [4,] 9 6 4 -16 9 -9 NA [5,] 21 2 -5 -8 -22 12 NA [6,] 2 -3 2 -2 20 -10 NA [7,] 12 -4 8 6 -1 0 NA [8,] -12 1 -2 -5 3 106 NA [9,] 3 -15 2 -4 -26 -110 NA [10,] -2 9 1 -3 1 -16 NA [11,] -5 -13 18 -11 -1 -3 NA [12,] 0 2 -12 -7 -18 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/www/html/rcomp/tmp/1vegt1272294063.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/25oge1272294063.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/35oge1272294063.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/4gffz1272294063.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,] 65.0 68.0 61 71 66 70.0 68.0 68 103.0 64 48 83 [2,] 77.0 70.0 67 75 75 78.0 72.0 80 103.0 80 81 83 [3,] 82.5 85.5 88 88 97 95.5 104.5 107 108.5 90 90 89 [4,] 95.0 100.0 106 110 112 106.0 108.0 111 112.0 99 106 99 [5,] 104.0 117.0 111 128 116 118.0 115.0 120 112.0 111 109 104 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 70.88942 66.14903 62.84374 65.42387 73.1338 77.4391 81.27884 87.004 [2,] 94.11058 104.85097 113.15626 110.57613 120.8662 113.5609 127.72116 126.996 [,9] [,10] [,11] [,12] [1,] 102.6947 77.74439 73.87419 78.67948 [2,] 114.3053 102.25561 106.12581 99.32052 $out [1] 78 174 45 $group [1] 9 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(65, 77, 82.5, 95, 104, 68, 70, 85.5, 100, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gffz1272294063.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.0 -7.0 -10 -16 -22.0 -10 -4 -12.0 -26.0 -3.0 -13 -18 [2,] -4.0 -7.0 -6 -9 -8.0 -3 -1 -5.0 -26.0 -3.0 -11 -12 [3,] 2.5 -5.5 4 5 -1.5 0 3 -0.5 -9.5 -0.5 -4 -7 [4,] 13.0 -3.0 14 9 12.0 2 8 3.0 2.0 1.0 -1 0 [5,] 13.0 -3.0 33 9 21.0 2 12 3.0 3.0 1.0 -1 2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.465549 -8.080129 -8.900646 -6.610581 -14.40065 -3.225161 -2.805291 [2,] 13.465549 -2.919871 16.900646 16.610581 11.40065 3.225161 8.805291 [,8] [,9] [,10] [,11] [,12] [1,] -5.660258 -27.560904 -3.080129 -10.450323 -15.479170 [2,] 4.660258 8.560904 2.080129 2.450323 1.479170 $out [1] -16 32 20 106 -110 9 -16 18 $group [1] 2 2 6 8 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7, -4, 2.5, 13, 13, -7, -7, -5.5, -3, -3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6gffz1272294063.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,] 67.0 93.0 70.0 85.0 74.0 61.0 NA [2,] 76.5 105.0 73.5 95.5 83.0 62.5 NA [3,] 105.0 111.0 80.0 101.0 93.5 67.0 NA [4,] 108.5 115.5 88.0 106.0 106.5 71.5 NA [5,] 120.0 118.0 99.0 112.0 109.0 78.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 90.40459 106.2109 73.38645 96.21088 82.7815 62.89504 NA [2,] 119.59541 115.7891 86.61355 105.78912 104.2185 71.10496 NA $out [1] 128 174 48 45 $group [1] 4 6 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(67, 76.5, 105, 108.5, 120, 93, 105, 111, 115.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79ow21272294063.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,] 84.33333 82.50 85.125 [2,] 87.08333 88.00 88.250 [3,] 91.16667 90.00 92.000 [4,] 94.58333 100.75 94.000 [5,] 98.83333 108.50 98.375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 87.74587 84.18464 89.37739 [2,] 94.58747 95.81536 94.62261 $out [1] 114.00 107.75 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(84.3333333333333, 87.0833333333333, 91.1666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vegt1272294063.ps tmp/1vegt1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/25oge1272294063.ps tmp/25oge1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/35oge1272294063.ps tmp/35oge1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/4gffz1272294063.ps tmp/4gffz1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/5gffz1272294063.ps tmp/5gffz1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/6gffz1272294063.ps tmp/6gffz1272294063.png",intern=TRUE)) character(0) > try(system("convert tmp/79ow21272294063.ps tmp/79ow21272294063.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.199 0.949 3.315