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(121.6,118.8,114.0,111.5,97.2,102.5,113.4,109.8,104.9,126.1,80.0,96.8,117.2,112.3,117.3,111.1,102.2,104.3,122.9,107.6,121.3,131.5,89.0,104.4,128.9,135.9,133.3,121.3,120.5,120.4,137.9,126.1,133.2,151.1,105.0,119.0,140.4,156.6,137.1,122.7,125.8,139.3,134.9,149.2,132.3,149.0,117.2,119.6,152.0,149.4,127.3,114.1,102.1,107.7,104.4,102.1,96.0,109.3,90.0,83.9) > 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,] 121.6 117.2 128.9 140.4 152.0 NA [2,] 118.8 112.3 135.9 156.6 149.4 NA [3,] 114.0 117.3 133.3 137.1 127.3 NA [4,] 111.5 111.1 121.3 122.7 114.1 NA [5,] 97.2 102.2 120.5 125.8 102.1 NA [6,] 102.5 104.3 120.4 139.3 107.7 NA [7,] 113.4 122.9 137.9 134.9 104.4 NA [8,] 109.8 107.6 126.1 149.2 102.1 NA [9,] 104.9 121.3 133.2 132.3 96.0 NA [10,] 126.1 131.5 151.1 149.0 109.3 NA [11,] 80.0 89.0 105.0 117.2 90.0 NA [12,] 96.8 104.4 119.0 119.6 83.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2.8 -4.9 7.0 16.2 -2.6 NA [2,] -4.8 5.0 -2.6 -19.5 -22.1 NA [3,] -2.5 -6.2 -12.0 -14.4 -13.2 NA [4,] -14.3 -8.9 -0.8 3.1 -12.0 NA [5,] 5.3 2.1 -0.1 13.5 5.6 NA [6,] 10.9 18.6 17.5 -4.4 -3.3 NA [7,] -3.6 -15.3 -11.8 14.3 -2.3 NA [8,] -4.9 13.7 7.1 -16.9 -6.1 NA [9,] 21.2 10.2 17.9 16.7 13.3 NA [10,] -46.1 -42.5 -46.1 -31.8 -19.3 NA [11,] 16.8 15.4 14.0 2.4 -6.1 NA [12,] 20.4 24.5 21.4 32.4 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/1oxxk1258038829.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/2f4mn1258038829.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/3s4sf1258038829.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/4s84s1258038829.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] [,11] [,12] [1,] 117.2 112.3 114.0 111.1 97.2 102.5 104.4 102.1 96.0 109.3 80.0 83.9 [2,] 121.6 118.8 117.3 111.5 102.1 104.3 113.4 107.6 104.9 126.1 89.0 96.8 [3,] 128.9 135.9 127.3 114.1 102.2 107.7 122.9 109.8 121.3 131.5 90.0 104.4 [4,] 140.4 149.4 133.3 121.3 120.5 120.4 134.9 126.1 132.3 149.0 105.0 119.0 [5,] 152.0 156.6 137.1 122.7 125.8 139.3 137.9 149.2 133.2 151.1 117.2 119.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 115.6160 114.2781 115.9944 107.1753 89.1986 96.32378 107.7082 96.72795 [2,] 142.1840 157.5219 138.6056 121.0247 115.2014 119.07622 138.0918 122.87205 [,9] [,10] [,11] [,12] [1,] 101.9392 115.3189 78.69444 88.71354 [2,] 140.6608 147.6811 101.30556 120.08646 $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(117.2, 121.6, 128.9, 140.4, 152, 112.3, 118.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/565nd1258038829.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,] -4.9 -22.1 -14.4 -14.3 -0.1 -4.4 -15.3 -16.9 10.2 -46.1 -6.1 20.40 [2,] -2.8 -19.5 -13.2 -12.0 2.1 -3.3 -11.8 -6.1 13.3 -46.1 2.4 20.90 [3,] -2.6 -4.8 -12.0 -8.9 5.3 10.9 -3.6 -4.9 16.7 -42.5 14.0 22.95 [4,] 7.0 -2.6 -6.2 -0.8 5.6 17.5 -2.3 7.1 17.9 -31.8 15.4 28.45 [5,] 16.2 5.0 -2.5 3.1 5.6 18.6 -2.3 13.7 21.2 -19.3 16.8 32.40 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.524655 -16.741497 -16.946182 -16.8138918 2.826909 -3.797228 -10.312676 [2,] 4.324655 7.141497 -7.053818 -0.9861082 7.773091 25.597228 3.112676 [,8] [,9] [,10] [,11] [,12] [1,] -14.227087 13.44965 -52.60434 4.814233 16.9855 [2,] 4.427087 19.95035 -32.39566 23.185767 28.9145 $out [1] 13.5 14.3 $group [1] 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.90000000000001, -2.800, -2.59999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63i1b1258038829.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] [1,] 80.00 89.00 105.00 117.20 83.90 NA [2,] 99.85 104.35 120.45 124.25 99.05 NA [3,] 110.65 111.70 127.50 136.00 106.05 NA [4,] 116.40 119.30 134.60 144.70 120.70 NA [5,] 126.10 131.50 151.10 156.60 152.00 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 103.1014 104.8812 121.0461 126.6726 96.17529 NA [2,] 118.1986 118.5188 133.9539 145.3274 115.92471 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(80, 99.85, 110.65, 116.4, 126.1, 89, 104.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ys861258038829.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,] 96.24 90.00 97.000 [2,] 112.20 106.05 111.825 [3,] 118.25 117.70 117.725 [4,] 128.91 128.10 128.150 [5,] 134.60 135.90 137.550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 110.6285 107.6428 110.2791 [2,] 125.8715 127.7572 125.1709 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96.24, 112.2, 118.25, 128.91, 134.6, 90, 106.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oxxk1258038829.ps tmp/1oxxk1258038829.png") > system("convert tmp/2f4mn1258038829.ps tmp/2f4mn1258038829.png") > system("convert tmp/3s4sf1258038829.ps tmp/3s4sf1258038829.png") > system("convert tmp/4s84s1258038829.ps tmp/4s84s1258038829.png") > system("convert tmp/565nd1258038829.ps tmp/565nd1258038829.png") > system("convert tmp/63i1b1258038829.ps tmp/63i1b1258038829.png") > system("convert tmp/7ys861258038829.ps tmp/7ys861258038829.png") > > > proc.time() user system elapsed 1.206 0.952 2.103