R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(102.2,102.4,102.4,102.5,102.5,102.6,102.8,102.9,102.9,103.1,103.2,103.3,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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 102.2 103.6 104.9 106.6 108.92 111.28 112.99 114.73 NA [2,] 102.4 103.7 105.0 106.8 109.23 111.41 113.10 114.97 NA [3,] 102.4 103.8 105.2 107.0 109.41 111.62 113.33 115.05 NA [4,] 102.5 104.0 105.3 107.1 109.65 111.76 113.38 115.29 NA [5,] 102.5 104.0 105.4 107.3 109.91 111.89 113.68 115.37 NA [6,] 102.6 104.1 105.5 107.4 110.01 112.04 113.65 115.54 NA [7,] 102.8 104.2 105.7 107.6 110.20 112.12 113.81 115.76 NA [8,] 102.9 104.3 105.8 107.7 110.49 112.30 113.88 115.92 NA [9,] 102.9 104.4 105.9 107.9 110.57 112.47 114.02 116.02 NA [10,] 103.1 104.5 106.0 108.2 110.72 112.59 114.25 116.21 NA [11,] 103.2 104.7 106.1 108.3 110.94 112.78 114.28 116.26 NA [12,] 103.3 104.7 106.2 108.5 111.09 112.73 114.38 116.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.2 0.1 0.1 0.20 0.31 0.13 0.11 0.24 NA [2,] 0.0 0.1 0.2 0.20 0.18 0.21 0.23 0.08 NA [3,] 0.1 0.2 0.1 0.10 0.24 0.14 0.05 0.24 NA [4,] 0.0 0.0 0.1 0.20 0.26 0.13 0.30 0.08 NA [5,] 0.1 0.1 0.1 0.10 0.10 0.15 -0.03 0.17 NA [6,] 0.2 0.1 0.2 0.20 0.19 0.08 0.16 0.22 NA [7,] 0.1 0.1 0.1 0.10 0.29 0.18 0.07 0.16 NA [8,] 0.0 0.1 0.1 0.20 0.08 0.17 0.14 0.10 NA [9,] 0.2 0.1 0.1 0.30 0.15 0.12 0.23 0.19 NA [10,] 0.1 0.2 0.1 0.10 0.22 0.19 0.03 0.05 NA [11,] 0.1 0.0 0.1 0.20 0.15 -0.05 0.10 0.25 NA [12,] 0.3 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/1s0d11250604270.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/28hp21250604270.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/3oj2a1250604270.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/4e3571250604270.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,] 102.200 102.400 102.400 102.500 102.500 102.600 102.800 102.900 102.900 [2,] 104.250 104.350 104.500 104.650 104.700 104.800 104.950 105.050 105.150 [3,] 107.760 108.015 108.205 108.375 108.605 108.705 108.900 109.095 109.235 [4,] 112.135 112.255 112.475 112.570 112.785 112.845 112.965 113.090 113.245 [5,] 114.730 114.970 115.050 115.290 115.370 115.540 115.760 115.920 116.020 [,10] [,11] [,12] [1,] 103.10 103.20 103.300 [2,] 105.25 105.40 105.450 [3,] 109.46 109.62 109.795 [4,] 113.42 113.53 113.555 [5,] 116.21 116.26 116.510 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.3553 103.5992 103.7501 103.9508 104.0886 104.2109 104.4227 104.6037 [2,] 112.1647 112.4308 112.6599 112.7992 113.1214 113.1991 113.3773 113.5863 [,9] [,10] [,11] [,12] [1,] 104.7130 104.8961 105.0785 105.2674 [2,] 113.7570 114.0239 114.1615 114.3226 $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(102.2, 104.25, 107.76, 112.135, 114.73, 102.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r2331250604270.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.000 0.05 0.000 0.100 0.080 0.07 0.000 0.100 0.030 -0.050 0.190 [2,] 0.105 0.090 0.10 0.040 0.100 0.130 0.10 0.090 0.110 0.075 0.050 0.230 [3,] 0.165 0.190 0.12 0.115 0.100 0.195 0.10 0.100 0.170 0.100 0.100 0.300 [4,] 0.220 0.205 0.22 0.230 0.125 0.200 0.17 0.155 0.215 0.195 0.175 0.375 [5,] 0.310 0.230 0.24 0.300 0.150 0.220 0.18 0.200 0.300 0.220 0.250 0.420 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1007593 0.1257593 0.05296628 0.008863272 0.08603464 0.155897 0.060897 [2,] 0.2292407 0.2542407 0.18703372 0.221136728 0.11396536 0.234103 0.139103 [,8] [,9] [,10] [,11] [,12] [1,] 0.06369007 0.1113455 0.03296628 0.03017321 0.2134083 [2,] 0.13630993 0.2286545 0.16703372 0.16982679 0.3865917 $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.164999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yhwm1250604270.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] [,9] [1,] 102.20 103.60 104.90 106.60 108.920 111.28 112.990 114.730 NA [2,] 102.45 103.90 105.25 107.05 109.530 111.69 113.355 115.170 NA [3,] 102.70 104.15 105.60 107.50 110.105 112.08 113.745 115.650 NA [4,] 103.00 104.45 105.95 108.05 110.645 112.53 114.135 116.115 NA [5,] 103.30 104.70 106.20 108.50 111.090 112.78 114.380 116.510 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 102.4491 103.8991 105.2807 107.0439 109.5964 111.6969 113.3892 115.2190 [2,] 102.9509 104.4009 105.9193 107.9561 110.6136 112.4631 114.1008 116.0810 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(102.2, 102.45, 102.7, 103, 103.3, 103.6, 103.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/744zp1250604270.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,] 108.1525 107.7600 108.1413 [2,] 108.5494 108.2900 108.5094 [3,] 108.9394 108.8025 108.8650 [4,] 109.3594 109.3475 109.2531 [5,] 109.6762 109.7950 109.4838 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 108.5699 108.3202 108.5258 [2,] 109.3088 109.2848 109.2042 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1s0d11250604270.ps tmp/1s0d11250604270.png") > system("convert tmp/28hp21250604270.ps tmp/28hp21250604270.png") > system("convert tmp/3oj2a1250604270.ps tmp/3oj2a1250604270.png") > system("convert tmp/4e3571250604270.ps tmp/4e3571250604270.png") > system("convert tmp/5r2331250604270.ps tmp/5r2331250604270.png") > system("convert tmp/6yhwm1250604270.ps tmp/6yhwm1250604270.png") > system("convert tmp/744zp1250604270.ps tmp/744zp1250604270.png") > > > proc.time() user system elapsed 1.195 0.934 1.680