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(98.5,97.0,103.3,99.6,100.1,102.9,95.9,94.5,107.4,116.0,102.8,99.8,109.6,103.0,111.6,106.3,97.9,108.8,103.9,101.2,122.9,123.9,111.7,120.9,99.6,103.3,119.4,106.5,101.9,124.6,106.5,107.8,127.4,120.1,118.5,127.7,107.7,104.5,118.8,110.3,109.6,119.1,96.5,106.7,126.3,116.2,118.8,115.2,110.0,111.4,129.6,108.1,117.8,122.9,100.6,111.8,127.0,128.6,124.8,118.5,114.7,112.6,128.7,111.0,115.8,126.0,111.1,113.2,120.1,130.6,124.0,119.4,116.7,116.5,119.6,126.5,111.3,123.5,114.2,103.7,129.5) > 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] 81 > (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] 7 7 7 7 7 7 7 7 7 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.5 109.6 99.6 107.7 110.0 114.7 116.7 [2,] 97.0 103.0 103.3 104.5 111.4 112.6 116.5 [3,] 103.3 111.6 119.4 118.8 129.6 128.7 119.6 [4,] 99.6 106.3 106.5 110.3 108.1 111.0 126.5 [5,] 100.1 97.9 101.9 109.6 117.8 115.8 111.3 [6,] 102.9 108.8 124.6 119.1 122.9 126.0 123.5 [7,] 95.9 103.9 106.5 96.5 100.6 111.1 114.2 [8,] 94.5 101.2 107.8 106.7 111.8 113.2 103.7 [9,] 107.4 122.9 127.4 126.3 127.0 120.1 129.5 [10,] 116.0 123.9 120.1 116.2 128.6 130.6 NA [11,] 102.8 111.7 118.5 118.8 124.8 124.0 NA [12,] 99.8 120.9 127.7 115.2 118.5 119.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.5 -6.6 3.7 -3.2 1.4 -2.1 -0.2 [2,] 6.3 8.6 16.1 14.3 18.2 16.1 3.1 [3,] -3.7 -5.3 -12.9 -8.5 -21.5 -17.7 6.9 [4,] 0.5 -8.4 -4.6 -0.7 9.7 4.8 -15.2 [5,] 2.8 10.9 22.7 9.5 5.1 10.2 12.2 [6,] -7.0 -4.9 -18.1 -22.6 -22.3 -14.9 -9.3 [7,] -1.4 -2.7 1.3 10.2 11.2 2.1 -10.5 [8,] 12.9 21.7 19.6 19.6 15.2 6.9 25.8 [9,] 8.6 1.0 -7.3 -10.1 1.6 10.5 NA [10,] -13.2 -12.2 -1.6 2.6 -3.8 -6.6 NA [11,] -3.0 9.2 9.2 -3.6 -6.3 -4.6 NA [12,] 9.8 -21.3 -20.0 -5.2 -3.8 -2.7 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/1s4871228911914.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/2y1ol1228911914.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/37hfk1228911914.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/4rbfm1228911914.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,] 98.50 97.00 103.30 106.30 97.90 102.90 95.90 94.50 120.1 116.0 102.80 [2,] 103.65 103.15 115.20 106.40 101.00 113.95 98.55 102.45 121.5 116.2 111.70 [3,] 109.60 104.50 119.40 108.10 109.60 122.90 103.90 106.70 126.3 122.0 118.65 [4,] 112.35 112.00 124.15 110.65 113.55 124.05 108.80 109.80 127.2 128.6 124.00 [5,] 116.70 116.50 129.60 111.00 117.80 126.00 114.20 113.20 129.5 130.6 124.80 [,12] [1,] 115.20 [2,] 115.20 [3,] 118.95 [4,] 120.90 [5,] 127.70 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.4045 99.21492 114.0552 105.5620 102.1053 116.8684 97.77887 102.3107 [2,] 114.7955 109.78508 124.7448 110.6380 117.0947 128.9316 110.02113 111.0893 [,9] [,10] [,11] [,12] [1,] 122.8961 114.0016 110.7161 115.2733 [2,] 129.7039 129.9984 126.5839 122.6267 $out [1] 99.6 126.5 107.4 99.8 $group [1] 4 4 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(98.5, 103.65, 109.6, 112.35, 116.7, 97, 103.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5enhu1228911914.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,] -6.60 3.10 -21.5 -15.20 2.80 -22.60 -10.50 6.90 -10.1 -13.2 -6.3 -21.3 [2,] -2.65 7.45 -15.3 -6.50 7.30 -20.20 -2.05 14.05 -7.3 -12.2 -4.6 -20.0 [3,] -1.50 14.30 -8.5 -0.70 10.20 -14.90 1.30 19.60 1.3 -5.2 -3.3 -4.5 [4,] 0.60 16.10 -4.5 2.65 11.55 -8.15 6.15 20.65 8.6 -1.6 9.2 -2.7 [5,] 3.70 18.20 6.9 9.70 12.20 -4.90 11.20 25.80 10.5 2.6 9.2 9.8 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.4408476 9.13436 -14.949586 -6.164232 7.661969 -22.096066 -3.596908 [2,] 0.4408476 19.46564 -2.050414 4.764232 12.738031 -7.703934 6.196908 [,8] [,9] [,10] [,11] [,12] [1,] 15.65859 -8.956014 -12.037342 -12.201446 -15.659059 [2,] 23.54141 11.556014 1.637342 5.601446 6.659059 $out [1] 22.7 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.6, -2.65000000000001, -1.5, 0.600000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lhp11228911914.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,] 94.50 97.90 99.60 96.50 100.60 111.0 103.7 [2,] 97.75 103.45 104.90 107.20 110.70 112.9 114.2 [3,] 99.95 109.20 113.15 112.75 118.15 117.6 116.7 [4,] 103.10 116.30 122.35 118.80 125.90 125.0 123.5 [5,] 107.40 123.90 127.70 126.30 129.60 130.6 129.5 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.50983 103.3390 105.1909 107.4592 111.2172 112.0811 111.802 [2,] 102.39017 115.0610 121.1091 118.0408 125.0828 123.1189 121.598 $out [1] 116 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(94.5, 97.75, 99.95, 103.1, 107.4, 97.9, 103.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hadr1228911915.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,] 104.1000 103.900 103.6750 [2,] 107.3357 107.400 107.4250 [3,] 113.2619 114.125 113.2875 [4,] 118.4857 120.700 119.3375 [5,] 122.9429 126.300 124.3500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 108.1763 108.0588 107.8541 [2,] 118.3475 120.1912 118.7209 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1s4871228911914.ps tmp/1s4871228911914.png") > system("convert tmp/2y1ol1228911914.ps tmp/2y1ol1228911914.png") > system("convert tmp/37hfk1228911914.ps tmp/37hfk1228911914.png") > system("convert tmp/4rbfm1228911914.ps tmp/4rbfm1228911914.png") > system("convert tmp/5enhu1228911914.ps tmp/5enhu1228911914.png") > system("convert tmp/6lhp11228911914.ps tmp/6lhp11228911914.png") > system("convert tmp/7hadr1228911915.ps tmp/7hadr1228911915.png") > > > proc.time() user system elapsed 1.238 0.961 1.577