R version 2.12.0 (2010-10-15) 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(69116,41519,51321,38529,41547,52073,38401,40898,40439,41888,37898,8771,68184,50530,47221,41756,45633,48138,39486,39341,41117,41629,29722,7054,56676,34870,35117,30169,30936,35699,33228,27733,33666,35429,27438,8170,63410,38040,45389,37353,37024,50957,37994,36454,46080,43373,37395,10963,76058,50179,57452,47568,50050,50856,41992,39284,44521,43832,41153,17100) > 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,] 69116 68184 56676 63410 76058 NA [2,] 41519 50530 34870 38040 50179 NA [3,] 51321 47221 35117 45389 57452 NA [4,] 38529 41756 30169 37353 47568 NA [5,] 41547 45633 30936 37024 50050 NA [6,] 52073 48138 35699 50957 50856 NA [7,] 38401 39486 33228 37994 41992 NA [8,] 40898 39341 27733 36454 39284 NA [9,] 40439 41117 33666 46080 44521 NA [10,] 41888 41629 35429 43373 43832 NA [11,] 37898 29722 27438 37395 41153 NA [12,] 8771 7054 8170 10963 17100 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -27597 -17654 -21806 -25370 -25879 NA [2,] 9802 -3309 247 7349 7273 NA [3,] -12792 -5465 -4948 -8036 -9884 NA [4,] 3018 3877 767 -329 2482 NA [5,] 10526 2505 4763 13933 806 NA [6,] -13672 -8652 -2471 -12963 -8864 NA [7,] 2497 -145 -5495 -1540 -2708 NA [8,] -459 1776 5933 9626 5237 NA [9,] 1449 512 1763 -2707 -689 NA [10,] -3990 -11907 -7991 -5978 -2679 NA [11,] -29127 -22668 -19268 -26432 -24053 NA [12,] 59413 49622 55240 65095 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/rcomp/tmp/1h6r71331544064.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/2xjp51331544064.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/34kw71331544064.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/4mr9y1331544064.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,] 56676 34870 45389 37353 30936 48138 37994 36454 40439 41629 27438 7054 [2,] 63410 38040 45389 37353 37024 48138 37994 36454 40439 41629 29722 8170 [3,] 68184 41519 47221 38529 41547 50856 38401 39284 41117 41888 37395 8771 [4,] 69116 50179 51321 41756 45633 50957 39486 39341 44521 43373 37898 10963 [5,] 76058 50530 57452 47568 50050 52073 39486 40898 46080 43832 41153 10963 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 64152.15 32941.61 43029.46 35417.85 35463.9 48864.1 37346.76 37244.05 [2,] 72215.85 50096.39 51412.54 41640.15 47630.1 52847.9 39455.24 41323.95 [,9] [,10] [,11] [,12] [1,] 38232.67 40655.69 31617.86 6797.473 [2,] 44001.33 43120.31 43172.14 10744.527 $out [1] 35117 30169 35699 33228 41992 27733 33666 35429 17100 $group [1] 3 4 6 7 7 8 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(56676, 63410, 68184, 69116, 76058, 34870, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/57jwf1331544064.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] [1,] -27597 -3309 -12792 -329 806 -13672 -5495 -459 -2707 -11907 -29127 [2,] -25879 247 -9884 767 2505 -12963 -2708 1776 -689 -7991 -26432 [3,] -25370 7273 -8036 2482 4763 -8864 -1540 5237 512 -5978 -24053 [4,] -21806 7349 -5465 3018 10526 -8652 -145 5933 1449 -3990 -22668 [5,] -17654 9802 -4948 3877 13933 -2471 2497 9626 1763 -2679 -19268 [,12] [1,] 49622.0 [2,] 52431.0 [3,] 57326.5 [4,] 62254.0 [5,] 65095.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -28247.97 2254.745 -11158.454 891.449 -904.6184 -11910.142 -3351.0093 [2,] -22492.03 12291.255 -4913.546 4072.551 10430.6184 -5817.858 271.0093 [,8] [,9] [,10] [,11] [,12] [1,] 2299.674 -998.7054 -8805.097 -26712.63 49566.33 [2,] 8174.326 2022.7054 -3150.903 -21393.37 65086.67 $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(-27597, -25879, -25370, -21806, -17654, -3309, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6g52d1331544064.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,] 37898.0 29722.0 27438 36454.0 39284.0 NA [2,] 38465.0 39413.5 28951 37188.5 41572.5 NA [3,] 41208.5 41692.5 33447 38017.0 46044.5 NA [4,] 46604.5 47679.5 35273 45734.5 50517.5 NA [5,] 52073.0 50530.0 35699 50957.0 57452.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 37496.02 37922.32 30563.49 34119.11 41964.63 NA [2,] 44920.98 45462.68 36330.51 41914.89 50124.37 NA $out [1] 69116 8771 68184 7054 56676 8170 63410 10963 76058 17100 $group [1] 1 1 2 2 3 3 4 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(37898, 38465, 41208.5, 46604.5, 52073, 29722, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7gezn1331544064.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,] 34721.2 37395.0 33810.00 [2,] 37481.1 38465.0 38318.75 [3,] 41101.3 41318.0 41904.25 [4,] 45163.8 44554.5 46232.25 [5,] 47544.6 50856.0 49547.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37597.17 38540.54 38294.85 [2,] 44605.43 44095.46 45513.65 $out [1] 66688.8 10411.6 68184.0 8771.0 66263.0 9566.5 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(34721.2, 37481.1, 41101.3, 45163.8, 47544.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1h6r71331544064.ps tmp/1h6r71331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/2xjp51331544064.ps tmp/2xjp51331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/34kw71331544064.ps tmp/34kw71331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/4mr9y1331544064.ps tmp/4mr9y1331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/57jwf1331544064.ps tmp/57jwf1331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/6g52d1331544064.ps tmp/6g52d1331544064.png",intern=TRUE)) character(0) > try(system("convert tmp/7gezn1331544064.ps tmp/7gezn1331544064.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.41 0.21 2.61