R version 2.8.0 (2008-10-20) 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(101.6,101.8,102.1,102.1,101.9,102.1,102,102.1,102.2,102.3,102.7,102.8,103.1,103.1,103.3,103.5,103.3,103.5,103.8,103.9,103.9,104.2,104.6,104.9,105.2,105.2,105.6,105.6,106.2,106.3,106.4,106.9,107.2,107.3,107.3,107.4,107.55,107.87,108.37,108.38,107.92,108.03,108.14,108.3,108.64,108.66,109.04,109.03,109.03,109.54,109.75,109.83,109.65,109.82,109.95,110.12,110.15,110.2,109.99,110.14,110.14,110.81,110.97,110.99,109.73,109.81,110.02,110.18,110.21,110.25,110.36,110.51,110.64,110.95,111.18,111.19,111.69,111.7,111.83,111.77,111.73,112.01,111.86,112.04) > 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,] 101.6 103.1 105.2 107.55 109.03 110.14 110.64 NA [2,] 101.8 103.1 105.2 107.87 109.54 110.81 110.95 NA [3,] 102.1 103.3 105.6 108.37 109.75 110.97 111.18 NA [4,] 102.1 103.5 105.6 108.38 109.83 110.99 111.19 NA [5,] 101.9 103.3 106.2 107.92 109.65 109.73 111.69 NA [6,] 102.1 103.5 106.3 108.03 109.82 109.81 111.70 NA [7,] 102.0 103.8 106.4 108.14 109.95 110.02 111.83 NA [8,] 102.1 103.9 106.9 108.30 110.12 110.18 111.77 NA [9,] 102.2 103.9 107.2 108.64 110.15 110.21 111.73 NA [10,] 102.3 104.2 107.3 108.66 110.20 110.25 112.01 NA [11,] 102.7 104.6 107.3 109.04 109.99 110.36 111.86 NA [12,] 102.8 104.9 107.4 109.03 110.14 110.51 112.04 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.2 0.0 0.00 0.32 0.51 0.67 0.31 NA [2,] 0.3 0.2 0.40 0.50 0.21 0.16 0.23 NA [3,] 0.0 0.2 0.00 0.01 0.08 0.02 0.01 NA [4,] -0.2 -0.2 0.60 -0.46 -0.18 -1.26 0.50 NA [5,] 0.2 0.2 0.10 0.11 0.17 0.08 0.01 NA [6,] -0.1 0.3 0.10 0.11 0.13 0.21 0.13 NA [7,] 0.1 0.1 0.50 0.16 0.17 0.16 -0.06 NA [8,] 0.1 0.0 0.30 0.34 0.03 0.03 -0.04 NA [9,] 0.1 0.3 0.10 0.02 0.05 0.04 0.28 NA [10,] 0.4 0.4 0.00 0.38 -0.21 0.11 -0.15 NA [11,] 0.1 0.3 0.10 -0.01 0.15 0.15 0.18 NA [12,] 0.3 0.3 0.15 0.00 0.00 0.13 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/1n9rg1228327880.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/2ghsk1228327880.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/3k37t1228327880.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/4x2cs1228327880.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] [,10] [1,] 101.600 101.800 102.10 102.10 101.90 102.100 102.000 102.10 102.20 102.300 [2,] 104.150 104.150 104.45 104.55 104.75 104.900 105.100 105.40 105.55 105.750 [3,] 107.550 107.870 108.37 108.38 107.92 108.030 108.140 108.30 108.64 108.660 [4,] 109.585 110.175 110.36 110.41 109.69 109.815 109.985 110.15 110.18 110.225 [5,] 110.640 110.950 111.18 111.19 111.69 111.700 111.830 111.77 111.73 112.010 [,11] [,12] [1,] 102.700 102.800 [2,] 105.950 106.150 [3,] 109.040 109.030 [4,] 110.175 110.325 [5,] 111.860 112.040 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.3043 104.2720 104.8406 104.8805 104.9699 105.0948 105.2228 105.4634 [2,] 110.7957 111.4680 111.8994 111.8795 110.8701 110.9652 111.0572 111.1366 [,9] [,10] [,11] [,12] [1,] 105.8750 105.9876 106.5169 106.5368 [2,] 111.4050 111.3324 111.5631 111.5232 $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(101.6, 104.15, 107.55, 109.585, 110.64, 101.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cqtt1228327880.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.000 0.160 0.000 -0.46 0.010 0.100 0.100 -0.040 0.020 -0.210 0.100 0.00 [2,] 0.100 0.205 0.005 -0.33 0.090 0.105 0.100 0.015 0.045 -0.075 0.100 0.00 [3,] 0.310 0.230 0.010 -0.20 0.110 0.130 0.160 0.030 0.100 0.110 0.150 0.14 [4,] 0.415 0.350 0.050 0.16 0.185 0.170 0.165 0.200 0.190 0.390 0.165 0.30 [5,] 0.670 0.500 0.080 0.60 0.200 0.210 0.170 0.340 0.300 0.400 0.180 0.30 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1218871 0.1434083 -0.01687327 -0.4926201 0.05326753 0.09118305 0.1211830 [2,] 0.4981129 0.3165917 0.03687327 0.0926201 0.16673247 0.16881695 0.1988170 [,8] [,9] [,10] [,11] [,12] [1,] -0.08047902 0.01340834 -0.1676905 0.1111830 -0.05350969 [2,] 0.14047902 0.18659166 0.3876905 0.1888170 0.33350969 $out [1] 0.20 -1.26 -0.10 0.30 0.50 -0.06 0.30 -0.01 $group [1] 3 4 6 6 7 7 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.100000000000001, 0.310000000000002, 0.415000000000006, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6glas1228327880.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,] 101.60 103.10 105.20 107.550 109.54 109.73 110.640 NA [2,] 101.95 103.30 105.60 107.975 109.70 110.08 111.185 NA [3,] 102.10 103.65 106.35 108.335 109.89 110.23 111.715 NA [4,] 102.25 104.05 107.25 108.650 110.13 110.66 111.845 NA [5,] 102.30 104.90 107.40 109.040 110.20 110.99 112.040 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.9632 103.3079 105.5974 108.0271 109.6939 109.9655 111.4140 NA [2,] 102.2368 103.9921 107.1026 108.6429 110.0861 110.4945 112.0160 NA $out [1] 102.70 102.80 109.03 $group [1] 1 1 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(101.6, 101.95, 102.1, 102.25, 102.3, 103.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ea2z1228327880.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,] 106.7514 107.550 106.8675 [2,] 107.2607 107.975 107.2887 [3,] 107.4093 108.335 107.5112 [4,] 107.7821 108.650 107.9263 [5,] 108.1171 109.040 108.2375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 107.1715 108.0271 107.2205 [2,] 107.6471 108.6429 107.8020 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(106.751428571429, 107.260714285714, 107.409285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1n9rg1228327880.ps tmp/1n9rg1228327880.png") > system("convert tmp/2ghsk1228327880.ps tmp/2ghsk1228327880.png") > system("convert tmp/3k37t1228327880.ps tmp/3k37t1228327880.png") > system("convert tmp/4x2cs1228327880.ps tmp/4x2cs1228327880.png") > system("convert tmp/5cqtt1228327880.ps tmp/5cqtt1228327880.png") > system("convert tmp/6glas1228327880.ps tmp/6glas1228327880.png") > system("convert tmp/7ea2z1228327880.ps tmp/7ea2z1228327880.png") > > > proc.time() user system elapsed 1.203 0.957 1.455