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(89.3,87.5,106.7,102.5,109.2,123.7,83.1,97,119.1,125.1,113.6,122.4,92.8,97.2,115.6,111.3,114.6,137.5,83.7,106,123.4,126.5,120,141.6,90.5,96.5,113.5,120.1,123.9,144.4,90.8,114.2,138.1,135,131.3,144.6,101.7,108.7,135.3,124.3,138.3,158.2,93.5,124.8,154.4,152.8,148.9,170.3,124.8,134.4,154,147.9,168.1,175.7,116.7,140.8,164.2,173.8,167.8,166.6,135.1,158.1,151.8,168.7,166.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] 65 > (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] 6 6 6 6 6 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 89.3 92.8 90.5 101.7 124.8 135.1 [2,] 87.5 97.2 96.5 108.7 134.4 158.1 [3,] 106.7 115.6 113.5 135.3 154.0 151.8 [4,] 102.5 111.3 120.1 124.3 147.9 168.7 [5,] 109.2 114.6 123.9 138.3 168.1 166.9 [6,] 123.7 137.5 144.4 158.2 175.7 NA [7,] 83.1 83.7 90.8 93.5 116.7 NA [8,] 97.0 106.0 114.2 124.8 140.8 NA [9,] 119.1 123.4 138.1 154.4 164.2 NA [10,] 125.1 126.5 135.0 152.8 173.8 NA [11,] 113.6 120.0 131.3 148.9 167.8 NA [12,] 122.4 141.6 144.6 170.3 166.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.8 4.4 6.0 7.0 9.6 23.0 [2,] 19.2 18.4 17.0 26.6 19.6 -6.3 [3,] -4.2 -4.3 6.6 -11.0 -6.1 16.9 [4,] 6.7 3.3 3.8 14.0 20.2 -1.8 [5,] 14.5 22.9 20.5 19.9 7.6 NA [6,] -40.6 -53.8 -53.6 -64.7 -59.0 NA [7,] 13.9 22.3 23.4 31.3 24.1 NA [8,] 22.1 17.4 23.9 29.6 23.4 NA [9,] 6.0 3.1 -3.1 -1.6 9.6 NA [10,] -11.5 -6.5 -3.7 -3.9 -6.0 NA [11,] 8.8 21.6 13.3 21.4 -1.2 NA [12,] -29.6 -51.1 -42.9 -45.5 -31.5 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/freestat/rcomp/tmp/1xyft1228353659.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/freestat/rcomp/tmp/2zuqa1228353659.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/freestat/rcomp/tmp/3addw1228353659.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/freestat/rcomp/tmp/4vcnt1228353659.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,] 89.30 87.50 106.70 102.5 109.2 123.7 83.1 97.0 119.1 125.1 113.6 122.4 [2,] 90.50 96.50 113.50 111.3 114.6 137.5 83.7 106.0 123.4 126.5 120.0 141.6 [3,] 97.25 102.95 125.45 122.2 131.1 144.4 90.8 114.2 138.1 135.0 131.3 144.6 [4,] 124.80 134.40 151.80 147.9 166.9 158.2 93.5 124.8 154.4 152.8 148.9 166.6 [5,] 135.10 158.10 154.00 168.7 168.1 175.7 93.5 140.8 164.2 173.8 167.8 170.3 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 75.12539 78.50328 100.7453 98.59182 97.36481 129.7734 83.87534 [2,] 119.37461 127.39672 150.1547 145.80818 164.83519 159.0266 97.72466 [,8] [,9] [,10] [,11] [,12] [1,] 100.9160 116.1955 116.4165 110.8793 126.9351 [2,] 127.4840 160.0045 153.5835 151.7207 162.2649 $out [1] 116.7 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.3, 90.5, 97.25, 124.8, 135.1, 87.5, 96.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/56kqh1228353659.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,] -1.8 17.0 -11.00 -1.80 7.6 -64.7 22.3 22.1 -3.1 -6.5 -1.2 -51.1 [2,] 4.4 17.0 -6.10 3.30 14.5 -59.0 22.3 22.1 -1.6 -6.5 8.8 -45.5 [3,] 6.5 18.8 -4.25 5.25 19.9 -53.8 23.4 23.4 3.1 -6.0 13.3 -42.9 [4,] 9.6 19.6 6.60 14.00 20.5 -53.6 24.1 23.9 6.0 -3.9 21.4 -31.5 [5,] 9.6 19.6 16.90 20.20 22.9 -53.6 24.1 23.9 9.6 -3.7 21.6 -29.6 $n [1] 6 6 6 6 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.145832 17.12292 -12.44191 -1.651846 15.66042 -57.61563 22.12812 22.12812 [2,] 9.854168 20.47708 3.94191 12.151846 24.13958 -49.98437 24.67188 24.67188 [,9] [,10] [,11] [,12] [1,] -2.270141 -7.837153 4.396872 -52.79236 [2,] 8.470141 -4.162847 22.203128 -33.00764 $out [1] 23.0 26.6 -6.3 -40.6 13.9 31.3 17.4 29.6 -11.5 $group [1] 1 2 2 6 7 7 8 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.80000000000000, 4.40000000000001, 6.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6givi1228353659.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,] 83.10 83.70 90.50 93.5 116.70 135.1 [2,] 93.15 101.60 105.00 116.5 137.60 151.8 [3,] 107.95 115.10 122.00 136.8 159.10 158.1 [4,] 120.75 124.95 136.55 153.6 167.95 166.9 [5,] 125.10 141.60 144.60 170.3 175.70 168.7 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.36145 104.4499 107.6098 119.8784 145.2572 147.4304 [2,] 120.53855 125.7501 136.3902 153.7216 172.9428 168.7696 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(83.1, 93.15, 107.95, 120.75, 125.1, 83.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7l30l1228353659.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,] 93.5600 90.800 88.6000 [2,] 115.1467 108.575 113.8625 [3,] 132.9017 128.275 132.6500 [4,] 141.2400 136.550 139.2750 [5,] 149.1000 144.600 154.1000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 121.0003 115.5154 121.0592 [2,] 144.8030 141.0346 144.2408 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(93.56, 115.146666666667, 132.901666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xyft1228353659.ps tmp/1xyft1228353659.png") > system("convert tmp/2zuqa1228353659.ps tmp/2zuqa1228353659.png") > system("convert tmp/3addw1228353659.ps tmp/3addw1228353659.png") > system("convert tmp/4vcnt1228353659.ps tmp/4vcnt1228353659.png") > system("convert tmp/56kqh1228353659.ps tmp/56kqh1228353659.png") > system("convert tmp/6givi1228353659.ps tmp/6givi1228353659.png") > system("convert tmp/7l30l1228353659.ps tmp/7l30l1228353659.png") > > > proc.time() user system elapsed 1.854 1.448 2.184