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(99.5,98.2,108.9,100.0,105.0,108.4,96.7,100.5,115.6,114.9,110.7,107.7,113.5,106.9,119.6,109.4,106.9,118.7,108.9,113.1,125.1,126.5,122.7,127.5,107.1,112.0,122.1,111.5,113.2,128.2,115.1,117.4,132.0,130.8,128.0,132.7,117.0,110.9,123.5,117.4,122.7,123.5,111.5,113.8,131.2,127.0,126.2,121.2,118.8,117.9,135.2,120.7,126.4,129.6,113.4,120.5,135.5,137.6,130.6,133.1,121.5,120.5,136.9,123.7,128.5,135.0,120.9,121.1,132.2,134.5,133.6,136.1,124.5,124.6,133.5,132.3,125.3,135.5,121.2,117.5,135.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] 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,] 99.5 113.5 107.1 117.0 118.8 121.5 124.5 [2,] 98.2 106.9 112.0 110.9 117.9 120.5 124.6 [3,] 108.9 119.6 122.1 123.5 135.2 136.9 133.5 [4,] 100.0 109.4 111.5 117.4 120.7 123.7 132.3 [5,] 105.0 106.9 113.2 122.7 126.4 128.5 125.3 [6,] 108.4 118.7 128.2 123.5 129.6 135.0 135.5 [7,] 96.7 108.9 115.1 111.5 113.4 120.9 121.2 [8,] 100.5 113.1 117.4 113.8 120.5 121.1 117.5 [9,] 115.6 125.1 132.0 131.2 135.5 132.2 135.9 [10,] 114.9 126.5 130.8 127.0 137.6 134.5 NA [11,] 110.7 122.7 128.0 126.2 130.6 133.6 NA [12,] 107.7 127.5 132.7 121.2 133.1 136.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.3 -6.6 4.9 -6.1 -0.9 -1.0 0.1 [2,] 10.7 12.7 10.1 12.6 17.3 16.4 8.9 [3,] -8.9 -10.2 -10.6 -6.1 -14.5 -13.2 -1.2 [4,] 5.0 -2.5 1.7 5.3 5.7 4.8 -7.0 [5,] 3.4 11.8 15.0 0.8 3.2 6.5 10.2 [6,] -11.7 -9.8 -13.1 -12.0 -16.2 -14.1 -14.3 [7,] 3.8 4.2 2.3 2.3 7.1 0.2 -3.7 [8,] 15.1 12.0 14.6 17.4 15.0 11.1 18.4 [9,] -0.7 1.4 -1.2 -4.2 2.1 2.3 NA [10,] -4.2 -3.8 -2.8 -0.8 -7.0 -0.9 NA [11,] -3.0 4.8 4.7 -5.0 2.5 2.5 NA [12,] 5.8 -20.4 -15.7 -2.4 -11.6 -11.6 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/170q51228912120.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/2sr5u1228912120.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/3ucoz1228912120.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/4ee671228912120.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,] 99.50 98.2 108.90 100.00 105.00 108.4 108.9 113.10 125.10 114.9 122.7 [2,] 110.30 108.9 120.85 110.45 110.05 121.1 110.2 113.45 128.15 126.5 122.7 [3,] 117.00 112.0 123.50 117.40 122.70 128.2 113.4 117.40 132.00 128.9 127.1 [4,] 120.15 119.2 134.35 122.20 125.85 132.3 118.0 119.00 133.85 134.5 130.6 [5,] 124.50 124.6 136.90 132.30 128.50 135.5 121.2 121.10 135.90 137.6 133.6 [,12] [1,] 107.7 [2,] 121.2 [3,] 130.1 [4,] 133.1 [5,] 136.1 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.1177 105.849 115.4380 110.3831 113.2645 121.5115 108.7420 114.0856 [2,] 122.8823 118.151 131.5620 124.4169 132.1355 134.8885 118.0580 120.7144 [,9] [,10] [,11] [,12] [1,] 128.5961 123.7397 122.0042 122.4241 [2,] 135.4039 134.0603 132.1958 137.7759 $out [1] 96.7 100.5 115.6 110.7 $group [1] 7 8 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(99.5, 110.3, 117, 120.15, 124.5, 98.2, 108.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ywx91228912120.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.6 8.90 -14.5 -7.00 0.8 -16.20 0.20 11.10 -4.20 -7.0 -5.0 -20.4 [2,] -3.7 10.40 -11.9 -0.40 3.3 -14.20 1.25 13.30 -1.20 -4.2 -3.0 -15.7 [3,] -1.0 12.60 -10.2 4.80 6.5 -13.10 2.30 15.00 0.35 -3.3 2.5 -11.6 [4,] -0.4 14.55 -7.5 5.15 11.0 -11.85 4.00 16.25 2.10 -0.9 4.7 -2.4 [5,] 0.1 17.30 -1.2 5.70 15.0 -9.80 7.10 18.40 2.30 -0.8 4.8 5.8 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.9707068 10.12169 -12.827609 1.485630 1.901684 -14.50338 0.6577444 [2,] 0.9707068 15.07831 -7.572391 8.114370 11.098316 -11.69662 3.9422556 [,8] [,9] [,10] [,11] [,12] [1,] 13.23831 -1.778607 -5.428607 -2.466749 -20.178930 [2,] 16.76169 2.478607 -1.171393 7.466749 -3.021070 $out [1] 4.9 -3.7 $group [1] 1 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.6, -3.70000000000000, -1, -0.399999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6i5lj1228912120.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,] 96.70 106.90 107.10 110.90 113.40 120.50 117.5 [2,] 99.75 109.15 112.60 115.40 119.65 121.30 124.5 [3,] 106.35 116.10 119.75 121.95 128.00 130.35 125.3 [4,] 109.80 123.90 129.50 124.85 134.15 134.75 133.5 [5,] 115.60 127.50 132.70 131.20 137.60 136.90 135.9 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 101.7661 109.3724 112.0418 117.6398 121.3865 124.2154 120.56 [2,] 110.9339 122.8276 127.4582 126.2602 134.6135 136.4846 130.04 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(96.7, 99.75, 106.35, 109.8, 115.6, 106.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7lt421228912120.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,] 112.5286 112.00 114.0500 [2,] 114.7000 117.20 115.7250 [3,] 121.7929 123.10 122.3250 [4,] 126.0274 128.55 127.7438 [5,] 129.6429 132.00 131.0000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 116.6264 117.9232 116.8432 [2,] 126.9594 128.2768 127.8068 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(112.528571428571, 114.7, 121.792857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/170q51228912120.ps tmp/170q51228912120.png") > system("convert tmp/2sr5u1228912120.ps tmp/2sr5u1228912120.png") > system("convert tmp/3ucoz1228912120.ps tmp/3ucoz1228912120.png") > system("convert tmp/4ee671228912120.ps tmp/4ee671228912120.png") > system("convert tmp/5ywx91228912120.ps tmp/5ywx91228912120.png") > system("convert tmp/6i5lj1228912120.ps tmp/6i5lj1228912120.png") > system("convert tmp/7lt421228912120.ps tmp/7lt421228912120.png") > > > proc.time() user system elapsed 1.212 0.945 1.527