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(97.4,97,105.4,102.7,98.1,104.5,87.4,89.9,109.8,111.7,98.6,96.9,95.1,97,112.7,102.9,97.4,111.4,87.4,96.8,114.1,110.3,103.9,101.6,94.6,95.9,104.7,102.8,98.1,113.9,80.9,95.7,113.2,105.9,108.8,102.3,99,100.7,115.5,100.7,109.9,114.6,85.4,100.5,114.8,116.5,112.9,102,106,105.3,118.8,106.1,109.3,117.2,92.5,104.2,112.5,122.4,113.3,100,110.7,112.8,109.8,117.3,109.1,115.9,96,99.8,116.8,115.7,99.4,94.3) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.4 95.1 94.6 99.0 106.0 110.7 NA [2,] 97.0 97.0 95.9 100.7 105.3 112.8 NA [3,] 105.4 112.7 104.7 115.5 118.8 109.8 NA [4,] 102.7 102.9 102.8 100.7 106.1 117.3 NA [5,] 98.1 97.4 98.1 109.9 109.3 109.1 NA [6,] 104.5 111.4 113.9 114.6 117.2 115.9 NA [7,] 87.4 87.4 80.9 85.4 92.5 96.0 NA [8,] 89.9 96.8 95.7 100.5 104.2 99.8 NA [9,] 109.8 114.1 113.2 114.8 112.5 116.8 NA [10,] 111.7 110.3 105.9 116.5 122.4 115.7 NA [11,] 98.6 103.9 108.8 112.9 113.3 99.4 NA [12,] 96.9 101.6 102.3 102.0 100.0 94.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.4 1.9 1.3 1.7 -0.7 2.1 NA [2,] 8.4 15.7 8.8 14.8 13.5 -3.0 NA [3,] -2.7 -9.8 -1.9 -14.8 -12.7 7.5 NA [4,] -4.6 -5.5 -4.7 9.2 3.2 -8.2 NA [5,] 6.4 14.0 15.8 4.7 7.9 6.8 NA [6,] -17.1 -24.0 -33.0 -29.2 -24.7 -19.9 NA [7,] 2.5 9.4 14.8 15.1 11.7 3.8 NA [8,] 19.9 17.3 17.5 14.3 8.3 17.0 NA [9,] 1.9 -3.8 -7.3 1.7 9.9 -1.1 NA [10,] -13.1 -6.4 2.9 -3.6 -9.1 -16.3 NA [11,] -1.7 -2.3 -6.5 -10.9 -13.3 -5.1 NA [12,] -1.8 -7.0 -3.3 4.0 10.7 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/1r6sg1258116392.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/20cce1258116392.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/3d6ha1258116392.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/4am0d1258116392.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,] 94.6 95.90 104.70 100.70 97.4 111.40 80.9 89.9 109.80 105.9 98.60 [2,] 95.1 97.00 105.40 102.70 98.1 111.40 85.4 95.7 112.50 110.3 99.40 [3,] 98.2 98.85 111.25 102.85 103.6 114.25 87.4 98.3 113.65 113.7 106.35 [4,] 106.0 105.30 115.50 106.10 109.3 115.90 92.5 100.5 114.80 116.5 112.90 [5,] 110.7 112.80 118.80 106.10 109.9 117.20 96.0 104.2 116.80 122.4 113.30 [,12] [1,] 94.3 [2,] 96.9 [3,] 100.8 [4,] 102.0 [5,] 102.3 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 91.16915 93.49623 104.7352 100.6569 96.37564 111.3474 82.82027 [2,] 105.23085 104.20377 117.7648 105.0431 110.82436 117.1526 91.97973 [,8] [,9] [,10] [,11] [,12] [1,] 95.20384 112.1664 109.7008 97.64206 97.51034 [2,] 101.39616 115.1336 117.6992 115.05794 104.08966 $out [1] 117.3 104.5 $group [1] 4 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94.6, 95.1, 98.2, 106, 110.7, 95.9, 97, 98.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rht81258116392.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.7 8.40 -14.80 -8.20 4.70 -33.00 2.50 14.30 -7.3 -16.30 -13.3 -7.0 [2,] -0.4 8.40 -12.70 -5.50 6.40 -29.20 3.80 14.30 -3.8 -13.10 -10.9 -3.3 [3,] 1.5 11.15 -6.25 -4.65 7.35 -24.35 10.55 17.15 0.3 -7.75 -5.8 -1.8 [4,] 1.9 14.80 -1.90 3.20 14.00 -19.90 14.80 17.50 1.9 -3.60 -2.3 4.0 [5,] 2.1 15.70 7.50 9.20 15.80 -17.10 15.10 19.90 9.9 2.90 -1.7 10.7 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01642571 7.021793 -13.2163488 -10.261781 2.447755 -30.3488 3.454645 [2,] 2.98357429 15.278207 0.7163488 0.961781 12.252245 -18.3512 17.645355 [,8] [,9] [,10] [,11] [,12] [1,] 15.08590 -3.376684 -13.877807 -11.3472778 -6.958162 [2,] 19.21410 3.976684 -1.622193 -0.2527222 3.358162 $out [1] -3.0 8.3 $group [1] 2 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.700000000000003, -0.400000000000006, 1.50000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6oehc1258116392.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,] 87.40 87.40 80.90 85.40 92.50 94.30 NA [2,] 96.95 96.90 95.80 100.60 104.75 99.60 NA [3,] 98.35 102.25 102.55 105.95 107.70 110.25 NA [4,] 104.95 110.85 107.35 114.70 115.25 115.80 NA [5,] 111.70 114.10 113.90 116.50 122.40 117.30 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 94.70115 95.88731 97.28197 99.5189 102.9109 102.8611 NA [2,] 101.99885 108.61269 107.81803 112.3811 112.4891 117.6389 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(87.4, 96.95, 98.35, 104.95, 111.7, 87.4, 96.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bv771258116392.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,] 88.26667 87.400 88.5625 [2,] 99.99167 98.575 99.8750 [3,] 104.53333 103.225 103.8438 [4,] 112.03333 112.450 112.0625 [5,] 113.75000 114.250 113.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 99.04105 96.89652 98.28495 [2,] 110.02562 109.55348 109.40255 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(88.2666666666667, 99.9916666666667, 104.533333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1r6sg1258116392.ps tmp/1r6sg1258116392.png") > system("convert tmp/20cce1258116392.ps tmp/20cce1258116392.png") > system("convert tmp/3d6ha1258116392.ps tmp/3d6ha1258116392.png") > system("convert tmp/4am0d1258116392.ps tmp/4am0d1258116392.png") > system("convert tmp/5rht81258116392.ps tmp/5rht81258116392.png") > system("convert tmp/6oehc1258116392.ps tmp/6oehc1258116392.png") > system("convert tmp/7bv771258116392.ps tmp/7bv771258116392.png") > > > proc.time() user system elapsed 1.243 0.974 1.564