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(100.34,100.21,100.44,101.59,102.44,103.1,103.34,103.44,103.35,103.67,104.13,104.27,104.75,104.82,104.69,104.87,104.74,104.85,104.8,104.13,104.02,104.46,105.58,106.94,108.41,109.05,108.75,108.96,108.46,107.51,107.27,106.72,108.94,112.02,112.46,113.56,113.64,114.13,116.44,117.71,117.57,117.25,117.33,117.36,117.18,117.21,117.44,117.54,119.07,118.5,118.69,118.38,118.45,117.88,118.52,118.26,118.39,117.87,118.36,117.91) > 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,] 100.34 104.75 108.41 113.64 119.07 NA [2,] 100.21 104.82 109.05 114.13 118.50 NA [3,] 100.44 104.69 108.75 116.44 118.69 NA [4,] 101.59 104.87 108.96 117.71 118.38 NA [5,] 102.44 104.74 108.46 117.57 118.45 NA [6,] 103.10 104.85 107.51 117.25 117.88 NA [7,] 103.34 104.80 107.27 117.33 118.52 NA [8,] 103.44 104.13 106.72 117.36 118.26 NA [9,] 103.35 104.02 108.94 117.18 118.39 NA [10,] 103.67 104.46 112.02 117.21 117.87 NA [11,] 104.13 105.58 112.46 117.44 118.36 NA [12,] 104.27 106.94 113.56 117.54 117.91 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.13 0.07 0.64 0.49 -0.57 NA [2,] 0.23 -0.13 -0.30 2.31 0.19 NA [3,] 1.15 0.18 0.21 1.27 -0.31 NA [4,] 0.85 -0.13 -0.50 -0.14 0.07 NA [5,] 0.66 0.11 -0.95 -0.32 -0.57 NA [6,] 0.24 -0.05 -0.24 0.08 0.64 NA [7,] 0.10 -0.67 -0.55 0.03 -0.26 NA [8,] -0.09 -0.11 2.22 -0.18 0.13 NA [9,] 0.32 0.44 3.08 0.03 -0.52 NA [10,] 0.46 1.12 0.44 0.23 0.49 NA [11,] 0.14 1.36 1.10 0.10 -0.45 NA [12,] 0.48 1.47 0.08 1.53 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/159bj1331671468.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/25y3z1331671468.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/3lvq51331671468.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/43hft1331671468.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,] 100.34 100.21 100.44 101.59 102.44 103.10 103.34 103.44 103.35 103.67 [2,] 104.75 104.82 104.69 104.87 104.74 104.85 104.80 104.13 104.02 104.46 [3,] 108.41 109.05 108.75 108.96 108.46 107.51 107.27 106.72 108.94 112.02 [4,] 113.64 114.13 116.44 117.71 117.57 117.25 117.33 117.36 117.18 117.21 [5,] 119.07 118.50 118.69 118.38 118.45 117.88 118.52 118.26 118.39 117.87 [,11] [,12] [1,] 104.13 104.27 [2,] 105.58 106.94 [3,] 112.46 113.56 [4,] 117.44 117.54 [5,] 118.36 117.91 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 102.1283 102.4716 100.4475 99.88729 99.39435 98.7482 98.41633 [2,] 114.6917 115.6284 117.0525 118.03271 117.52565 116.2718 116.12367 [,8] [,9] [,10] [,11] [,12] [1,] 97.37172 99.64118 103.0109 104.0798 106.0701 [2,] 116.06828 118.23882 121.0291 120.8402 121.0499 $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(100.34, 104.75, 108.41, 113.64, 119.07, 100.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5lrmi1331671468.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,] -0.57 -0.30 -0.31 -0.14 -0.95 -0.24 -0.67 -0.18 -0.52 0.44 -0.45 0.080 [2,] -0.13 -0.13 0.18 -0.14 -0.57 -0.05 -0.55 -0.11 0.03 0.44 0.10 0.280 [3,] 0.07 0.19 0.21 -0.13 -0.32 0.08 -0.26 -0.09 0.32 0.46 0.14 0.975 [4,] 0.49 0.23 1.15 0.07 0.11 0.24 0.03 0.13 0.44 0.49 1.10 1.500 [5,] 0.64 0.23 1.27 0.07 0.66 0.64 0.10 0.13 0.44 0.49 1.36 1.530 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.3680904 -0.06437509 -0.4753996 -0.27838547 -0.8004863 -0.1249133 [2,] 0.5080904 0.44437509 0.8953996 0.01838547 0.1604863 0.2849133 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.6698265 -0.2595834 0.03029503 0.4246701 -0.5665975 0.0112 [2,] 0.1498265 0.0795834 0.60970497 0.4953299 0.8465975 1.9388 $out [1] 2.31 0.85 -0.50 2.22 3.08 1.12 0.23 $group [1] 2 4 4 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.569999999999993, -0.130000000000010, 0.0699999999999932, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/63xpa1331671468.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,] 100.210 104.460 106.720 116.44 117.870 NA [2,] 101.015 104.575 107.960 116.81 118.085 NA [3,] 103.220 104.775 108.845 117.29 118.385 NA [4,] 103.555 104.860 110.535 117.49 118.510 NA [5,] 104.270 104.870 113.560 117.71 119.070 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 102.0615 104.645 107.6705 116.9798 118.1912 NA [2,] 104.3785 104.905 110.0195 117.6002 118.5788 NA $out [1] 104.13 104.02 105.58 106.94 113.64 114.13 $group [1] 2 2 2 2 4 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.21, 101.015, 103.22, 103.555, 104.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7xvgx1331671468.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,] 109.242 106.720 110.5650 [2,] 109.892 107.960 110.5825 [3,] 110.277 108.845 110.9425 [4,] 110.711 110.535 111.2225 [5,] 111.594 113.560 111.5100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.9034 107.6705 110.6506 [2,] 110.6506 110.0195 111.2344 $out [1] 112.044 109.195 109.475 112.240 $group [1] 1 3 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(109.242, 109.892, 110.277, 110.711, 111.594, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/159bj1331671468.ps tmp/159bj1331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/25y3z1331671468.ps tmp/25y3z1331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/3lvq51331671468.ps tmp/3lvq51331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/43hft1331671468.ps tmp/43hft1331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/5lrmi1331671468.ps tmp/5lrmi1331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/63xpa1331671468.ps tmp/63xpa1331671468.png",intern=TRUE)) character(0) > try(system("convert tmp/7xvgx1331671468.ps tmp/7xvgx1331671468.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.550 0.260 2.826