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(369.82,373.10,374.55,375.01,374.81,375.31,375.31,375.39,375.59,376.26,377.18,377.26,377.26,381.87,387.09,387.14,388.78,389.16,389.16,389.42,389.49,388.97,388.97,389.09,389.09,391.76,390.96,391.76,392.80,393.06,393.06,393.26,393.87,394.47,394.57,394.57,394.57,399.57,406.13,407.03,409.46,409.90,409.90,410.14,410.54,410.69,410.79,410.97,410.97,413.80,423.31,423.85,426.60,426.26,426.26,426.32,427.14,427.55,428.29,428.80) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 369.82 377.26 389.09 394.57 410.97 NA [2,] 373.10 381.87 391.76 399.57 413.80 NA [3,] 374.55 387.09 390.96 406.13 423.31 NA [4,] 375.01 387.14 391.76 407.03 423.85 NA [5,] 374.81 388.78 392.80 409.46 426.60 NA [6,] 375.31 389.16 393.06 409.90 426.26 NA [7,] 375.31 389.16 393.06 409.90 426.26 NA [8,] 375.39 389.42 393.26 410.14 426.32 NA [9,] 375.59 389.49 393.87 410.54 427.14 NA [10,] 376.26 388.97 394.47 410.69 427.55 NA [11,] 377.18 388.97 394.57 410.79 428.29 NA [12,] 377.26 389.09 394.57 410.97 428.80 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.28 4.61 2.67 5.00 2.83 NA [2,] 1.45 5.22 -0.80 6.56 9.51 NA [3,] 0.46 0.05 0.80 0.90 0.54 NA [4,] -0.20 1.64 1.04 2.43 2.75 NA [5,] 0.50 0.38 0.26 0.44 -0.34 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.08 0.26 0.20 0.24 0.06 NA [8,] 0.20 0.07 0.61 0.40 0.82 NA [9,] 0.67 -0.52 0.60 0.15 0.41 NA [10,] 0.92 0.00 0.10 0.10 0.74 NA [11,] 0.08 0.12 0.00 0.18 0.51 NA [12,] 0.00 0.00 0.00 0.00 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/1oln01321453434.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/24shc1321453434.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/3zeyn1321453434.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/4zw6l1321453434.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] [1,] 369.82 373.10 374.55 375.01 374.81 375.31 375.31 375.39 375.59 376.26 [2,] 377.26 381.87 387.09 387.14 388.78 389.16 389.16 389.42 389.49 388.97 [3,] 389.09 391.76 390.96 391.76 392.80 393.06 393.06 393.26 393.87 394.47 [4,] 394.57 399.57 406.13 407.03 409.46 409.90 409.90 410.14 410.54 410.69 [5,] 410.97 413.80 423.31 423.85 426.60 426.26 426.26 426.32 427.14 427.55 [,11] [,12] [1,] 377.18 377.26 [2,] 388.97 389.09 [3,] 394.57 394.57 [4,] 410.79 410.97 [5,] 428.29 428.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 376.8588 379.2532 377.5064 377.7058 378.1876 378.4052 378.4052 378.6193 [2,] 401.3212 404.2668 404.4136 405.8142 407.4124 407.7148 407.7148 407.9007 [,9] [,10] [,11] [,12] [1,] 378.9961 379.1227 379.152 379.1096 [2,] 408.7439 409.8173 409.988 410.0304 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(369.82, 377.26, 389.09, 394.57, 410.97, 373.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5tphp1321453434.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,] 2.67 -0.80 0.05 -0.20 0.26 0 0.06 0.07 -0.52 0.00 0.00 0 [2,] 2.83 1.45 0.46 1.04 0.26 0 0.08 0.20 0.15 0.10 0.08 0 [3,] 3.28 5.22 0.54 1.64 0.38 0 0.20 0.40 0.41 0.10 0.12 0 [4,] 4.61 6.56 0.80 2.43 0.44 0 0.24 0.61 0.60 0.74 0.18 0 [5,] 5.00 9.51 0.90 2.75 0.50 0 0.26 0.82 0.67 0.92 0.18 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.022256 1.609287 0.2997569 0.6578295 0.2528125 0 0.0869444 0.110295 [2,] 4.537744 8.830713 0.7802431 2.6221705 0.5071875 0 0.3130556 0.689705 [,9] [,10] [,11] [,12] [1,] 0.09203113 -0.3522224 0.04934025 0 [2,] 0.72796887 0.5522224 0.19065975 0 $out [1] -0.34 0.51 $group [1] 5 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.67000000000002, 2.82999999999998, 3.28000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6xh3r1321453434.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,] 373.100 387.090 389.09 406.130 423.310 NA [2,] 374.680 387.115 391.76 406.580 423.580 NA [3,] 375.310 388.970 393.06 409.900 426.290 NA [4,] 375.925 389.160 394.17 410.615 427.345 NA [5,] 377.260 389.490 394.57 410.970 428.800 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 374.7421 388.0373 391.9608 408.0596 424.5728 NA [2,] 375.8779 389.9027 394.1592 411.7404 428.0072 NA $out [1] 369.82 377.26 381.87 394.57 399.57 410.97 413.80 $group [1] 1 2 2 4 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(373.1, 374.68, 375.31, 375.925, 377.26, 387.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7r2711321453434.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,] 396.408 389.09 396.6100 [2,] 396.683 391.76 396.8475 [3,] 398.738 393.06 399.5300 [4,] 399.457 394.17 399.8550 [5,] 400.138 394.57 400.0300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 397.4728 391.9608 398.1583 [2,] 400.0032 394.1592 400.9017 $out [1] 388.342 392.020 385.915 390.720 $group [1] 1 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(396.408, 396.683, 398.738, 399.457, 400.138, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1oln01321453434.ps tmp/1oln01321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/24shc1321453434.ps tmp/24shc1321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/3zeyn1321453434.ps tmp/3zeyn1321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/4zw6l1321453434.ps tmp/4zw6l1321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/5tphp1321453434.ps tmp/5tphp1321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/6xh3r1321453434.ps tmp/6xh3r1321453434.png",intern=TRUE)) character(0) > try(system("convert tmp/7r2711321453434.ps tmp/7r2711321453434.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.675 0.416 2.204