R version 2.6.2 (2008-02-08) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(103.6,103.7,103.8,104,104,104.1,104.2,104.3,104.4,104.5,104.7,104.7,104.9,105,105.2,105.3,105.4,105.5,105.7,105.8,105.9,106,106.1,106.2,106.6,106.8,107,107.1,107.3,107.4,107.6,107.7,107.9,108.2,108.3,108.5,108.92,109.23,109.41,109.65,109.91,110.01,110.2,110.49,110.57,110.72,110.94,111.09,111.28,111.41,111.62,111.76,111.89,112.04,112.12,112.3,112.47,112.59,112.78,112.73,112.99,113.1,113.33,113.38,113.68,113.65,113.81,113.88,114.02,114.25,114.28,114.38,114.73,114.97,115.05,115.29,115.37,115.54,115.76,115.92,116.02,116.21,116.26,116.51) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.6 104.9 106.6 108.92 111.28 112.99 114.73 NA [2,] 103.7 105.0 106.8 109.23 111.41 113.10 114.97 NA [3,] 103.8 105.2 107.0 109.41 111.62 113.33 115.05 NA [4,] 104.0 105.3 107.1 109.65 111.76 113.38 115.29 NA [5,] 104.0 105.4 107.3 109.91 111.89 113.68 115.37 NA [6,] 104.1 105.5 107.4 110.01 112.04 113.65 115.54 NA [7,] 104.2 105.7 107.6 110.20 112.12 113.81 115.76 NA [8,] 104.3 105.8 107.7 110.49 112.30 113.88 115.92 NA [9,] 104.4 105.9 107.9 110.57 112.47 114.02 116.02 NA [10,] 104.5 106.0 108.2 110.72 112.59 114.25 116.21 NA [11,] 104.7 106.1 108.3 110.94 112.78 114.28 116.26 NA [12,] 104.7 106.2 108.5 111.09 112.73 114.38 116.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.1 0.1 0.20 0.31 0.13 0.11 0.24 NA [2,] 0.1 0.2 0.20 0.18 0.21 0.23 0.08 NA [3,] 0.2 0.1 0.10 0.24 0.14 0.05 0.24 NA [4,] 0.0 0.1 0.20 0.26 0.13 0.30 0.08 NA [5,] 0.1 0.1 0.10 0.10 0.15 -0.03 0.17 NA [6,] 0.1 0.2 0.20 0.19 0.08 0.16 0.22 NA [7,] 0.1 0.1 0.10 0.29 0.18 0.07 0.16 NA [8,] 0.1 0.1 0.20 0.08 0.17 0.14 0.10 NA [9,] 0.1 0.1 0.30 0.15 0.12 0.23 0.19 NA [10,] 0.2 0.1 0.10 0.22 0.19 0.03 0.05 NA [11,] 0.0 0.1 0.20 0.15 -0.05 0.10 0.25 NA [12,] 0.2 0.4 0.42 0.19 0.26 0.35 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/html/rcomp/tmp/1rusv1208868331.ps",horizontal=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/html/rcomp/tmp/2vzp01208868331.ps",horizontal=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/html/rcomp/tmp/3hgye1208868331.ps",horizontal=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/html/rcomp/tmp/4wzbc1208868331.ps",horizontal=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] [1,] 103.600 103.700 103.800 104.00 104.000 104.100 104.200 104.30 104.400 [2,] 105.750 105.900 106.100 106.20 106.350 106.450 106.650 106.75 106.900 [3,] 108.920 109.230 109.410 109.65 109.910 110.010 110.200 110.49 110.570 [4,] 112.135 112.255 112.475 112.57 112.785 112.845 112.965 113.09 113.245 [5,] 114.730 114.970 115.050 115.29 115.370 115.540 115.760 115.92 116.020 [,10] [,11] [,12] [1,] 104.50 104.70 104.700 [2,] 107.10 107.20 107.350 [3,] 110.72 110.94 111.090 [4,] 113.42 113.53 113.555 [5,] 116.21 116.26 116.510 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.1070 105.4349 105.6030 105.8459 106.0671 106.191 106.4288 106.7039 [2,] 112.7330 113.0251 113.2170 113.4541 113.7529 113.829 113.9712 114.2761 [,9] [,10] [,11] [,12] [1,] 106.7809 106.9458 107.1598 107.3845 [2,] 114.3591 114.4942 114.7202 114.7955 $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(103.6, 105.75, 108.92, 112.135, 114.73, 103.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5l6ij1208868331.ps",horizontal=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.100 0.080 0.05 0.00 0.100 0.08 0.07 0.080 0.10 0.030 -0.050 0.190 [2,] 0.105 0.140 0.10 0.09 0.100 0.13 0.10 0.100 0.11 0.075 0.050 0.200 [3,] 0.130 0.200 0.14 0.13 0.100 0.19 0.10 0.100 0.15 0.100 0.100 0.305 [4,] 0.220 0.205 0.22 0.23 0.125 0.20 0.17 0.155 0.21 0.195 0.175 0.400 [5,] 0.310 0.230 0.24 0.30 0.150 0.22 0.18 0.200 0.30 0.220 0.250 0.420 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.06132386 0.1611830 0.06833794 0.04639426 0.0850704 0.1481971 0.05819713 [2,] 0.19867614 0.2388170 0.21166206 0.21360574 0.1149296 0.2318029 0.14180287 [,8] [,9] [,10] [,11] [,12] [1,] 0.06715489 0.09028161 0.02833794 0.02535202 0.1759935 [2,] 0.13284511 0.20971839 0.17166206 0.17464798 0.4340065 $out [1] -0.03 0.17 0.29 $group [1] 5 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0999999999999943, 0.105000000000004, 0.129999999999995, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ybu71208868331.ps",horizontal=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] [1,] 103.60 104.90 106.60 108.920 111.28 112.990 114.730 NA [2,] 103.90 105.25 107.05 109.530 111.69 113.355 115.170 NA [3,] 104.15 105.60 107.50 110.105 112.08 113.745 115.650 NA [4,] 104.45 105.95 108.05 110.645 112.53 114.135 116.115 NA [5,] 104.70 106.20 108.50 111.090 112.78 114.380 116.510 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.8991 105.2807 107.0439 109.5964 111.6969 113.3892 115.2190 NA [2,] 104.4009 105.9193 107.9561 110.6136 112.4631 114.1008 116.0810 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(103.6, 103.9, 104.15, 104.45, 104.7, 104.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7t0eo1208868331.ps",horizontal=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.0029 108.920 108.9425 [2,] 109.4207 109.530 109.3362 [3,] 109.8307 110.105 109.7275 [4,] 110.2679 110.645 110.1662 [5,] 110.5871 111.090 110.4525 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.4443 109.5964 109.3489 [2,] 110.2171 110.6136 110.1061 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1rusv1208868331.ps tmp/1rusv1208868331.png") > system("convert tmp/2vzp01208868331.ps tmp/2vzp01208868331.png") > system("convert tmp/3hgye1208868331.ps tmp/3hgye1208868331.png") > system("convert tmp/4wzbc1208868331.ps tmp/4wzbc1208868331.png") > system("convert tmp/5l6ij1208868331.ps tmp/5l6ij1208868331.png") > system("convert tmp/6ybu71208868331.ps tmp/6ybu71208868331.png") > system("convert tmp/7t0eo1208868331.ps tmp/7t0eo1208868331.png") > > > proc.time() user system elapsed 1.406 0.932 1.749