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(88.3,88.6,91,91.5,95.4,98.7,99.9,98.6,100.3,100.2,100.4,101.4,103,109.1,111.4,114.1,121.8,127.6,129.9,128,123.5,124,127.4,127.6,128.4,131.4,135.1,134,144.5,147.3,150.9,148.7,141.4,138.9,139.8,145.6,147.9,148.5,151.1,157.5,167.5,172.3,173.5,187.5,205.5,195.1,204.5,204.5,201.7,207,206.6,210.6,211.1,215,223.9,238.2,238.9,229.6,232.2,222.1,221.6,227.3,221,213.6,243.4,253.8,265.3,268.2,268.5,266.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] 70 > (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 6 6 6 6 6 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88.3 103.0 128.4 147.9 201.7 221.6 [2,] 88.6 109.1 131.4 148.5 207.0 227.3 [3,] 91.0 111.4 135.1 151.1 206.6 221.0 [4,] 91.5 114.1 134.0 157.5 210.6 213.6 [5,] 95.4 121.8 144.5 167.5 211.1 243.4 [6,] 98.7 127.6 147.3 172.3 215.0 253.8 [7,] 99.9 129.9 150.9 173.5 223.9 265.3 [8,] 98.6 128.0 148.7 187.5 238.2 268.2 [9,] 100.3 123.5 141.4 205.5 238.9 268.5 [10,] 100.2 124.0 138.9 195.1 229.6 266.9 [11,] 100.4 127.4 139.8 204.5 232.2 NA [12,] 101.4 127.6 145.6 204.5 222.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.3 6.1 3.0 0.6 5.3 5.7 [2,] 2.4 2.3 3.7 2.6 -0.4 -6.3 [3,] 0.5 2.7 -1.1 6.4 4.0 -7.4 [4,] 3.9 7.7 10.5 10.0 0.5 29.8 [5,] 3.3 5.8 2.8 4.8 3.9 10.4 [6,] 1.2 2.3 3.6 1.2 8.9 11.5 [7,] -1.3 -1.9 -2.2 14.0 14.3 2.9 [8,] 1.7 -4.5 -7.3 18.0 0.7 0.3 [9,] -0.1 0.5 -2.5 -10.4 -9.3 -1.6 [10,] 0.2 3.4 0.9 9.4 2.6 NA [11,] 1.0 0.2 5.8 0.0 -10.1 NA [12,] 1.6 0.8 2.3 -2.8 -0.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/rcomp/tmp/12s6h1228482713.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/2svd41228482714.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/3u4l31228482714.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/4zsjh1228482714.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] [1,] 88.30 88.60 91.0 91.50 95.4 98.7 99.9 98.6 100.30 100.2 100.4 [2,] 103.00 109.10 111.4 114.10 121.8 127.6 129.9 128.0 123.50 124.0 127.4 [3,] 138.15 139.95 143.1 145.75 156.0 159.8 162.2 168.1 173.45 167.0 139.8 [4,] 201.70 207.00 206.6 210.60 211.1 215.0 223.9 238.2 238.90 229.6 204.5 [5,] 221.60 227.30 221.0 213.60 243.4 253.8 265.3 268.2 268.50 266.9 232.2 [,12] [1,] 101.4 [2,] 127.6 [3,] 145.6 [4,] 204.5 [5,] 222.1 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 74.48531 76.80134 81.69293 83.50438 98.39862 103.4242 101.5670 [2,] 201.81469 203.09866 204.50707 207.99562 213.60138 216.1758 222.8330 [,8] [,9] [,10] [,11] [,12] [1,] 97.01744 99.01327 98.88459 85.32133 91.26265 [2,] 239.18256 247.88673 235.11541 194.27867 199.93735 $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(88.3, 103, 138.15, 201.7, 221.6, 88.6, 109.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nzpg1228482714.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.30 -0.40 -7.4 0.50 2.80 1.20 -2.2 -7.3 -10.40 0.2 0.0 -2.8 [2,] 0.60 -0.40 -1.1 3.90 3.30 1.20 -1.9 -4.5 -9.30 0.9 0.0 -0.5 [3,] 4.15 2.35 1.6 8.85 4.35 2.95 0.8 0.5 -2.05 2.6 0.2 0.8 [4,] 5.70 2.60 4.0 10.50 5.80 8.90 14.0 1.7 -0.10 3.4 1.0 1.6 [5,] 6.10 3.70 6.4 10.50 5.80 11.50 14.3 1.7 0.50 3.4 1.0 2.3 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8603353 0.4149031 -1.689665 4.592787 2.737419 -2.016749 -9.456014 [2,] 7.4396647 4.2850969 4.889665 13.107213 5.962581 7.916749 11.056014 [,8] [,9] [,10] [,11] [,12] [1,] -3.4992 -7.984297 0.8335063 -0.5065975 -0.6838547 [2,] 4.4992 3.884297 4.3664937 0.9065975 2.2838547 $out [1] -6.3 29.8 10.4 18.0 9.4 5.8 -10.1 $group [1] 2 4 5 8 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.299999999999997, 0.599999999999994, 4.15000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rix81228482714.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,] 88.30 103.00 128.40 147.9 201.70 213.6 [2,] 91.25 112.75 134.55 154.3 208.80 221.6 [3,] 98.65 123.75 140.60 172.9 218.55 248.6 [4,] 100.25 127.60 146.45 199.8 230.90 266.9 [5,] 101.40 129.90 150.90 205.5 238.90 268.5 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 94.54504 116.9768 135.1723 152.1471 208.4700 225.9663 [2,] 102.75496 130.5232 146.0277 193.6529 228.6300 271.2337 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(88.3, 91.25, 98.65, 100.25, 101.4, 103, 112.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qrzl1228482714.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,] 148.4833 138.150 148.8000 [2,] 153.1250 141.525 156.6125 [3,] 162.4050 150.875 166.0000 [4,] 174.8417 164.600 173.7875 [5,] 179.6833 173.450 179.3500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 152.4999 140.3503 158.1664 [2,] 172.3101 161.3997 173.8336 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(148.483333333333, 153.125, 162.405, 174.841666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/12s6h1228482713.ps tmp/12s6h1228482713.png") > system("convert tmp/2svd41228482714.ps tmp/2svd41228482714.png") > system("convert tmp/3u4l31228482714.ps tmp/3u4l31228482714.png") > system("convert tmp/4zsjh1228482714.ps tmp/4zsjh1228482714.png") > system("convert tmp/5nzpg1228482714.ps tmp/5nzpg1228482714.png") > system("convert tmp/6rix81228482714.ps tmp/6rix81228482714.png") > system("convert tmp/7qrzl1228482714.ps tmp/7qrzl1228482714.png") > > > proc.time() user system elapsed 1.192 0.958 1.479