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(74.96,75.19,74.98,75.54,75.61,75.59,75.58,75.44,75.37,75.22,75.33,75.33,78.33,78.09,77.88,77.61,77.43,77.47,77.47,77.46,77.76,78.29,78.56,78.55,78.55,78.59,77.95,78.5,78.45,78.31,78.31,78.33,78.28,79.06,79.2,79.26,79.26,79.38,79.35,78.91,79.11,79.22,79.22,79.21,79.26,79.82,80.04,80.2,80.2,80.27,80.37,80.57,79.99,79.86,79.86,79.81,79.88,80.2,80.53,80.52,80.52,80.48,80.29,79.54,79.39,79.3,79.3,79.49,79.63,79.74,80.17,80.06) > 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,] 74.96 78.33 78.55 79.26 80.20 80.52 NA [2,] 75.19 78.09 78.59 79.38 80.27 80.48 NA [3,] 74.98 77.88 77.95 79.35 80.37 80.29 NA [4,] 75.54 77.61 78.50 78.91 80.57 79.54 NA [5,] 75.61 77.43 78.45 79.11 79.99 79.39 NA [6,] 75.59 77.47 78.31 79.22 79.86 79.30 NA [7,] 75.58 77.47 78.31 79.22 79.86 79.30 NA [8,] 75.44 77.46 78.33 79.21 79.81 79.49 NA [9,] 75.37 77.76 78.28 79.26 79.88 79.63 NA [10,] 75.22 78.29 79.06 79.82 80.20 79.74 NA [11,] 75.33 78.56 79.20 80.04 80.53 80.17 NA [12,] 75.33 78.55 79.26 80.20 80.52 80.06 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.23 -0.24 0.04 0.12 0.07 -0.04 NA [2,] -0.21 -0.21 -0.64 -0.03 0.10 -0.19 NA [3,] 0.56 -0.27 0.55 -0.44 0.20 -0.75 NA [4,] 0.07 -0.18 -0.05 0.20 -0.58 -0.15 NA [5,] -0.02 0.04 -0.14 0.11 -0.13 -0.09 NA [6,] -0.01 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.14 -0.01 0.02 -0.01 -0.05 0.19 NA [8,] -0.07 0.30 -0.05 0.05 0.07 0.14 NA [9,] -0.15 0.53 0.78 0.56 0.32 0.11 NA [10,] 0.11 0.27 0.14 0.22 0.33 0.43 NA [11,] 0.00 -0.01 0.06 0.16 -0.01 -0.11 NA [12,] 3.00 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/1ypq91319183733.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/2tvyj1319183733.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/30kln1319183733.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/4ensd1319183733.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] [1,] 78.330 75.190 74.98 75.540 75.61 75.590 75.580 75.44 75.37 78.29 78.56 [2,] 78.330 78.090 77.88 77.610 77.43 77.470 77.470 77.46 77.76 78.29 78.56 [3,] 78.905 78.985 78.65 78.705 78.78 78.765 78.765 78.77 78.77 79.40 79.62 [4,] 80.200 80.270 80.29 79.540 79.39 79.300 79.300 79.49 79.63 79.82 80.17 [5,] 80.520 80.480 80.37 80.570 79.99 79.860 79.860 79.81 79.88 80.20 80.53 [,12] [1,] 78.55 [2,] 78.55 [3,] 79.66 [4,] 80.20 [5,] 80.52 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.69879 77.57883 77.09547 77.46009 77.51574 77.58459 77.58459 77.46058 [2,] 80.11121 80.39117 80.20453 79.94991 80.04426 79.94541 79.94541 80.07942 [,9] [,10] [,11] [,12] [1,] 77.56379 78.4131 78.5815 78.5957 [2,] 79.97621 80.3869 80.6585 80.7243 $out [1] 74.96 75.22 75.33 75.33 $group [1] 1 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(78.33, 78.33, 78.905, 80.2, 80.52, 75.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5t4q01319183733.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,] -0.240 -0.21 -0.750 -0.18 -0.140 0 -0.14 -0.07 -0.150 0.110 -0.110 [2,] -0.040 -0.21 -0.440 -0.18 -0.130 0 -0.05 -0.05 0.110 0.140 -0.010 [3,] 0.055 -0.20 -0.035 -0.10 -0.055 0 -0.01 0.06 0.425 0.245 -0.005 [4,] 0.120 -0.03 0.550 0.07 0.040 0 0.02 0.14 0.560 0.330 0.060 [5,] 0.230 0.10 0.560 0.20 0.110 0 0.02 0.30 0.780 0.430 0.160 [,12] [1,] 0 [2,] 0 [3,] 0 [4,] 0 [5,] 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.04820517 -0.31610581 -0.673582 -0.26125807 -0.16465549 0 -0.05515226 [2,] 0.15820517 -0.08389419 0.603582 0.06125807 0.05465549 0 0.03515226 [,8] [,9] [,10] [,11] [,12] [1,] -0.06255614 0.1347355 0.1224439 -0.05015226 0 [2,] 0.18255614 0.7152645 0.3675561 0.04015226 0 $out [1] -0.64 -0.58 -0.01 0.19 3.00 $group [1] 2 4 6 7 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.239999999999995, -0.039999999999992, 0.0549999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6up5m1319183733.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] [1,] 74.960 77.43 77.950 78.910 79.810 79.300 NA [2,] 75.205 77.47 78.310 79.215 79.870 79.440 NA [3,] 75.350 77.82 78.475 79.260 80.200 79.685 NA [4,] 75.560 78.31 78.825 79.600 80.445 80.230 NA [5,] 75.610 78.56 79.260 80.040 80.570 80.520 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 75.18808 77.43687 78.24011 79.0844 79.93774 79.32468 NA [2,] 75.51192 78.20313 78.70989 79.4356 80.46226 80.04532 NA $out [1] 80.2 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(74.96, 75.205, 75.35, 75.56, 75.61, 77.43, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7pyve1319183733.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,] 78.29000 78.6500 78.48000 [2,] 78.31083 78.7650 78.52562 [3,] 78.45750 78.7750 78.84500 [4,] 78.69417 79.1925 79.15813 [5,] 78.98667 79.6600 79.44625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 78.28266 78.58001 78.55651 [2,] 78.63234 78.96999 79.13349 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(78.29, 78.3108333333333, 78.4575, 78.6941666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ypq91319183733.ps tmp/1ypq91319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/2tvyj1319183733.ps tmp/2tvyj1319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/30kln1319183733.ps tmp/30kln1319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/4ensd1319183733.ps tmp/4ensd1319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/5t4q01319183733.ps tmp/5t4q01319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/6up5m1319183733.ps tmp/6up5m1319183733.png",intern=TRUE)) character(0) > try(system("convert tmp/7pyve1319183733.ps tmp/7pyve1319183733.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.555 0.328 1.897