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(163.40,162.89,162.29,161.26,161.43,161.44,161.44,161.44,161.92,162.23,161.89,161.40,161.40,159.55,158.93,158.59,158.29,158.03,158.03,163.94,164.36,164.39,163.22,163.22,163.56,162.82,162.80,162.44,161.98,161.53,161.53,161.52,162.07,161.84,161.54,161.47,161.47,161.54,161.57,160.75,160.31,160.57,160.57,159.65,158.76,158.95,159.25,158.72,158.72,158.72,158.53,157.92,157.89,157.81,157.81,157.88,157.52,156.11,155.61,155.31,155.31,155.31,153.09,151.94,151.73,151.65,151.65,151.09,149.94,149.47,149.15,149.22) > 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,] 163.40 161.40 163.56 161.47 158.72 155.31 NA [2,] 162.89 159.55 162.82 161.54 158.72 155.31 NA [3,] 162.29 158.93 162.80 161.57 158.53 153.09 NA [4,] 161.26 158.59 162.44 160.75 157.92 151.94 NA [5,] 161.43 158.29 161.98 160.31 157.89 151.73 NA [6,] 161.44 158.03 161.53 160.57 157.81 151.65 NA [7,] 161.44 158.03 161.53 160.57 157.81 151.65 NA [8,] 161.44 163.94 161.52 159.65 157.88 151.09 NA [9,] 161.92 164.36 162.07 158.76 157.52 149.94 NA [10,] 162.23 164.39 161.84 158.95 156.11 149.47 NA [11,] 161.89 163.22 161.54 159.25 155.61 149.15 NA [12,] 161.40 163.22 161.47 158.72 155.31 149.22 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.51 -1.85 -0.74 0.07 0.00 0.00 NA [2,] -0.60 -0.62 -0.02 0.03 -0.19 -2.22 NA [3,] -1.03 -0.34 -0.36 -0.82 -0.61 -1.15 NA [4,] 0.17 -0.30 -0.46 -0.44 -0.03 -0.21 NA [5,] 0.01 -0.26 -0.45 0.26 -0.08 -0.08 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 5.91 -0.01 -0.92 0.07 -0.56 NA [8,] 0.48 0.42 0.55 -0.89 -0.36 -1.15 NA [9,] 0.31 0.03 -0.23 0.19 -1.41 -0.47 NA [10,] -0.34 -1.17 -0.30 0.30 -0.50 -0.32 NA [11,] -0.49 0.00 -0.07 -0.53 -0.30 0.07 NA [12,] 0.00 0.34 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/www/html/rcomp/tmp/1zdfo1244215594.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/29b5c1244215594.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/3twtz1244215594.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/4umih1244215594.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,] 155.310 155.310 153.09 157.92 157.89 157.81 157.81 157.880 157.52 149.470 [2,] 158.720 158.720 158.53 157.92 157.89 157.81 157.81 157.880 157.52 156.110 [3,] 161.435 160.545 160.25 159.67 159.30 159.30 159.30 160.545 160.34 160.395 [4,] 163.400 162.820 162.29 161.26 161.43 161.44 161.44 161.520 162.07 162.230 [5,] 163.560 162.890 162.80 162.44 161.98 161.53 161.53 163.940 164.36 164.390 [,11] [,12] [1,] 149.150 149.22 [2,] 155.610 155.31 [3,] 160.395 160.06 [4,] 161.890 161.47 [5,] 163.220 163.22 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 158.4162 157.9004 157.8247 157.5156 157.0166 156.9585 156.9585 158.1971 [2,] 164.4538 163.1896 162.6753 161.8244 161.5834 161.6415 161.6415 162.8929 [,9] [,10] [,11] [,12] [1,] 157.4051 156.4474 156.3442 156.0866 [2,] 163.2749 164.3426 164.4458 164.0334 $out [1] 151.94 151.73 151.65 151.65 151.09 149.94 $group [1] 4 5 6 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(155.31, 158.72, 161.435, 163.4, 163.56, 155.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53xj71244215594.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] [1,] -1.850 -0.620 -1.150 -0.460 -0.45 0 -0.920 -1.15 -1.41 -0.50 -0.530 [2,] -0.740 -0.620 -1.030 -0.440 -0.26 0 -0.560 -0.89 -0.47 -0.50 -0.490 [3,] -0.255 -0.395 -0.715 -0.255 -0.08 0 -0.005 0.03 -0.10 -0.33 -0.185 [4,] 0.000 -0.020 -0.360 -0.030 0.01 0 0.070 0.48 0.19 -0.30 0.000 [5,] 0.070 0.030 -0.340 0.170 0.26 0 0.070 0.55 0.31 -0.30 0.070 [,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.7323239 -0.78201938 -1.1471716 -0.519463243 -0.25415872 0 -0.4113703 [2,] 0.2223239 -0.00798062 -0.2828284 0.009463243 0.09415872 0 0.4013703 [,8] [,9] [,10] [,11] [,12] [1,] -0.8536942 -0.5257213 -0.4590065 -0.5010658 0 [2,] 0.9136942 0.3257213 -0.2009935 0.1310658 0 $out [1] -2.22 5.91 -1.17 0.30 0.34 $group [1] 2 7 10 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.84999999999999, -0.740000000000009, -0.255000000000010, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64czq1244215594.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] [1,] 161.260 158.030 161.47 158.72 155.310 149.150 NA [2,] 161.435 158.440 161.53 159.10 156.815 149.705 NA [3,] 161.665 160.475 161.91 160.44 157.845 151.650 NA [4,] 162.260 163.580 162.62 161.11 158.225 152.515 NA [5,] 163.400 164.390 163.56 161.57 158.720 155.310 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 161.2887 158.1306 161.4128 159.5232 157.2019 150.3683 NA [2,] 162.0413 162.8194 162.4072 161.3568 158.4881 152.9317 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(161.26, 161.435, 161.665, 162.26, 163.4, 158.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fw171244215594.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,] 158.2233 159.300 158.8075 [2,] 158.5050 159.485 159.5100 [3,] 158.8242 160.295 159.5900 [4,] 159.3942 160.470 160.1506 [5,] 160.6433 161.435 160.7138 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 158.4186 159.8457 159.2978 [2,] 159.2297 160.7443 159.8822 $out [1] 161.1538 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(158.223333333333, 158.505, 158.824166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zdfo1244215594.ps tmp/1zdfo1244215594.png") > system("convert tmp/29b5c1244215594.ps tmp/29b5c1244215594.png") > system("convert tmp/3twtz1244215594.ps tmp/3twtz1244215594.png") > system("convert tmp/4umih1244215594.ps tmp/4umih1244215594.png") > system("convert tmp/53xj71244215594.ps tmp/53xj71244215594.png") > system("convert tmp/64czq1244215594.ps tmp/64czq1244215594.png") > system("convert tmp/7fw171244215594.ps tmp/7fw171244215594.png") > > > proc.time() user system elapsed 1.211 0.956 1.575