R version 2.12.1 (2010-12-16) Copyright (C) 2010 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(90,51,47,59,54,79,59,80,46,62,55,77,72,72,71,50,66,78,59,52,71,98,70,84,90,98,98,78,59,0,58,55,62,80,91,86,61,49,61,56,73,85,82,32,39,30,51,48,57,59,32,56,54,74,62,78,72,48,59,61,80,69,58,63,27,23,34,45,51,51,73,37,35,66,54,30,66,61,37,55,64,53,63,70,72,52,53,50,60,73,66,78) > par1 = '7' > #'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] 92 > (np <- floor(n / par1)) [1] 13 > 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] 14 13 13 13 13 13 13 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 90 80 71 98 59 86 82 59 72 63 73 61 72 78 [2,] 51 46 50 70 0 61 32 32 48 27 37 37 52 NA [3,] 47 62 66 84 58 49 39 56 59 23 35 55 53 NA [4,] 59 55 78 90 55 61 30 54 61 34 66 64 50 NA [5,] 54 77 59 98 62 56 51 74 80 45 54 53 60 NA [6,] 79 72 52 98 80 73 48 62 69 51 30 63 73 NA [7,] 59 72 71 78 91 85 57 78 58 51 66 70 66 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -39 -34 -21 -28 -59 -25 -50 -27 -24 -36 -36 -24 -20 NA [2,] -4 16 16 14 58 -12 7 24 11 -4 -2 18 1 NA [3,] 12 -7 12 6 -3 12 -9 -2 2 11 31 9 -3 NA [4,] -5 22 -19 8 7 -5 21 20 19 11 -12 -11 10 NA [5,] 25 -5 -7 0 18 17 -3 -12 -11 6 -24 10 13 NA [6,] -20 0 19 -20 11 12 9 16 -11 0 36 7 -7 NA [7,] 21 -1 27 -19 -5 -3 2 -6 5 22 -5 2 12 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/rcomp/tmp/1e0481305843797.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/www/rcomp/tmp/2pxfn1305843797.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/www/rcomp/tmp/3f12y1305843797.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/www/rcomp/tmp/4jm981305843797.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] [1,] 59.0 27 35 50 45 30 51 [2,] 63.0 32 47 54 54 52 59 [3,] 72.5 46 55 59 59 69 70 [4,] 82.0 51 59 64 74 73 78 [5,] 98.0 70 66 78 98 98 91 $n [1] 14 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 64.47682 37.67395 49.74144 54.61787 50.23574 59.79752 61.67395 [2,] 80.52318 54.32605 60.25856 63.38213 67.76426 78.20248 78.32605 $out [1] 0 84 23 90 30 34 $group [1] 2 3 3 4 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" Warning message: In bxp(list(stats = c(59, 63, 72.5, 82, 98, 27, 32, 46, 51, 70, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5azwv1305843797.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] [1,] -50 -12 -9 -19 -24 -20 -19 [2,] -36 -2 -3 -5 -7 -7 -5 [3,] -28 11 6 8 0 7 2 [4,] -24 16 12 19 13 12 12 [5,] -20 24 31 22 25 36 27 $n [1] 13 13 13 13 13 13 13 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -33.25856 3.112163 -0.5731973 -2.517116 -8.764263 -1.32605 -5.449624 [2,] -22.74144 18.887837 12.5731973 18.517116 8.764263 15.32605 9.449624 $out [1] -59 58 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" "7" Warning message: In bxp(list(stats = c(-50, -36, -28, -24, -20, -12, -2, 11, 16, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6bx3z1305843797.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] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 47.0 46.0 50.0 70 55.0 49.0 30.0 54 48.0 23.0 30 53.0 50.0 78 [2,] 52.5 58.5 55.5 81 56.5 58.5 35.5 55 58.5 30.5 36 54.0 52.5 78 [3,] 59.0 72.0 66.0 90 59.0 61.0 48.0 59 61.0 45.0 54 61.0 60.0 78 [4,] 69.0 74.5 71.0 98 71.0 79.0 54.0 68 70.5 51.0 66 63.5 69.0 78 [5,] 90.0 80.0 78.0 98 91.0 86.0 57.0 78 80.0 63.0 73 70.0 73.0 78 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 7 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 49.14647 62.44506 56.74365 79.84787 50.34083 48.75773 36.9521 51.23661 [2,] 68.85353 81.55494 75.25635 100.15213 67.65917 73.24227 59.0479 66.76339 [,9] [,10] [,11] [,12] [,13] [,14] [1,] 53.83379 32.75773 36.08448 55.32675 50.14647 78 [2,] 68.16621 57.24227 71.91552 66.67325 69.85353 78 $out [1] 0 82 32 37 $group [1] 5 7 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" NA Warning message: In bxp(list(stats = c(47, 52.5, 59, 69, 90, 46, 58.5, 72, 74.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7k3k71305843797.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,] 41.76923 46.0 41.50 [2,] 55.50000 57.0 56.00 [3,] 63.30769 59.0 62.50 [4,] 67.38462 69.5 66.25 [5,] 74.57143 72.5 73.25 $n [1] 7 7 7 $conf [,1] [,2] [,3] [1,] 56.21039 51.5352 56.37887 [2,] 70.40499 66.4648 68.62113 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(41.7692307692308, 55.5, 63.3076923076923, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1e0481305843797.ps tmp/1e0481305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/2pxfn1305843797.ps tmp/2pxfn1305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/3f12y1305843797.ps tmp/3f12y1305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/4jm981305843797.ps tmp/4jm981305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/5azwv1305843797.ps tmp/5azwv1305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/6bx3z1305843797.ps tmp/6bx3z1305843797.png",intern=TRUE)) character(0) > try(system("convert tmp/7k3k71305843797.ps tmp/7k3k71305843797.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.020 0.412 2.416