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(98.4,96.5,97.4,99.2,100.8,101.8,102.7,100,100.8,101.7,99,101.7,100.2,101.2,99.5,100.8,100.7,99.5,99.4,101.1,97.2,98.1,97.8,95.5,96.3,93.6,96.7,95.1,97.7,96.5,98.1,97.3,97,93.7,95.6,94.6,95.1,94.5,93.6,92.1,95.9,98.1,98.2,96.2,94.1,95,93.4,95.4,93.5,94.5,94.3,95.7,98.4,99.4,99.2,99,99.4,99.3,98.6,98.7,96,98.7,100.1,100,101.5,101.5,103.8,104.1,101,104.9,104.4,105.6,103.4,101.7,103.5,101.2,105.4,105.4,108.6,110.6,110.2,106.2,108.6,107.5,106.9,108.4,109.9,108.6,106.5,105.7,105.6,104.2,105.1,102.7,108.3,104.2,105.4,104.6,106.4,111,111.7,113.8,115.9,117.3,113.6,113.6,114.6,113.2,112.8,109.6,111.1,109.7,113,111,113.3,111.8,107.2,106.4,110,108.2,108.2) > 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] 121 > (np <- floor(n / par1)) [1] 10 > 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] 11 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 98.4 100.2 96.3 95.1 93.5 96.0 103.4 106.9 105.4 112.8 108.2 [2,] 96.5 101.2 93.6 94.5 94.5 98.7 101.7 108.4 104.6 109.6 NA [3,] 97.4 99.5 96.7 93.6 94.3 100.1 103.5 109.9 106.4 111.1 NA [4,] 99.2 100.8 95.1 92.1 95.7 100.0 101.2 108.6 111.0 109.7 NA [5,] 100.8 100.7 97.7 95.9 98.4 101.5 105.4 106.5 111.7 113.0 NA [6,] 101.8 99.5 96.5 98.1 99.4 101.5 105.4 105.7 113.8 111.0 NA [7,] 102.7 99.4 98.1 98.2 99.2 103.8 108.6 105.6 115.9 113.3 NA [8,] 100.0 101.1 97.3 96.2 99.0 104.1 110.6 104.2 117.3 111.8 NA [9,] 100.8 97.2 97.0 94.1 99.4 101.0 110.2 105.1 113.6 107.2 NA [10,] 101.7 98.1 93.7 95.0 99.3 104.9 106.2 102.7 113.6 106.4 NA [11,] 99.0 97.8 95.6 93.4 98.6 104.4 108.6 108.3 114.6 110.0 NA [12,] 101.7 95.5 94.6 95.4 98.7 105.6 107.5 104.2 113.2 108.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1.9 1.0 -2.7 -0.6 1.0 2.7 -1.7 1.5 -0.8 -3.2 NA [2,] 0.9 -1.7 3.1 -0.9 -0.2 1.4 1.8 1.5 1.8 1.5 NA [3,] 1.8 1.3 -1.6 -1.5 1.4 -0.1 -2.3 -1.3 4.6 -1.4 NA [4,] 1.6 -0.1 2.6 3.8 2.7 1.5 4.2 -2.1 0.7 3.3 NA [5,] 1.0 -1.2 -1.2 2.2 1.0 0.0 0.0 -0.8 2.1 -2.0 NA [6,] 0.9 -0.1 1.6 0.1 -0.2 2.3 3.2 -0.1 2.1 2.3 NA [7,] -2.7 1.7 -0.8 -2.0 -0.2 0.3 2.0 -1.4 1.4 -1.5 NA [8,] 0.8 -3.9 -0.3 -2.1 0.4 -3.1 -0.4 0.9 -3.7 -4.6 NA [9,] 0.9 0.9 -3.3 0.9 -0.1 3.9 -4.0 -2.4 0.0 -0.8 NA [10,] -2.7 -0.3 1.9 -1.6 -0.7 -0.5 2.4 5.6 1.0 3.6 NA [11,] 2.7 -2.3 -1.0 2.0 0.1 1.2 -1.1 -4.1 -1.4 -1.8 NA [12,] -1.5 0.8 0.5 -1.9 -2.7 -2.2 -0.6 1.2 -0.4 0.0 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/16jec1289745194.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/26jec1289745194.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/3gawf1289745194.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/4gawf1289745194.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,] 93.50 93.60 93.6 92.1 95.90 96.50 98.10 96.2 94.1 93.7 93.4 [2,] 96.15 94.50 96.7 95.7 98.40 99.40 99.20 99.0 97.2 98.1 97.8 [3,] 100.20 99.95 99.8 100.4 101.15 101.65 103.25 102.6 100.9 102.2 101.7 [4,] 106.15 104.60 106.4 108.6 106.50 105.70 108.60 110.6 107.2 106.2 108.6 [5,] 112.80 109.60 111.1 111.0 113.00 113.80 115.90 117.3 113.6 113.6 114.6 [,12] [1,] 94.60 [2,] 95.50 [3,] 102.95 [4,] 107.50 [5,] 113.20 $n [1] 11 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 95.43612 94.90364 94.9535 93.95465 97.10292 98.50227 98.55339 [2,] 104.96388 104.99636 104.6465 106.84535 105.19708 104.79773 107.94661 [,8] [,9] [,10] [,11] [,12] [1,] 96.80418 95.9036 98.15292 96.30389 96.95432 [2,] 108.39582 105.8964 106.24708 107.09611 108.94568 $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(93.5, 96.15, 100.2, 106.15, 112.8, 93.6, 94.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59jdi1289745194.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,] -3.2 -1.70 -2.3 -2.1 -2.0 -0.20 -2.7 -4.60 -4.00 -2.70 -4.10 -2.7 [2,] -1.9 -0.20 -1.5 0.7 -1.2 -0.10 -1.5 -3.70 -2.40 -0.70 -1.80 -1.9 [3,] -0.7 1.45 -0.7 2.1 0.0 1.25 -0.5 -1.25 -0.05 0.35 -1.05 -0.5 [4,] 1.0 1.80 1.4 3.3 1.0 2.30 1.4 0.40 0.90 2.40 1.20 0.5 [5,] 2.7 3.10 4.6 4.2 2.2 3.20 2.0 0.90 3.90 5.60 2.70 1.2 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.1489556 0.4507203 -2.1489556 0.8009363 -1.099208 0.05086431 -1.9489556 [2,] 0.7489556 2.4492797 0.7489556 3.3990637 1.099208 2.44913569 0.9489556 [,8] [,9] [,10] [,11] [,12] [1,] -3.2985235 -1.698812 -1.198884 -2.5489196 -1.6991357 [2,] 0.7985235 1.598812 1.898884 0.4489196 0.6991357 $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(-3.2, -1.90000000000001, -0.700000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69jdi1289745194.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] [,8] [,9] [,10] [,11] [1,] 96.5 95.50 93.60 92.10 93.50 96.00 101.20 102.70 104.6 106.4 108.2 [2,] 98.7 97.95 94.85 93.85 95.10 100.05 103.45 104.65 108.7 108.9 108.2 [3,] 100.4 99.50 96.40 95.05 98.65 101.50 105.80 106.10 113.4 110.5 108.2 [4,] 101.7 100.75 97.15 96.05 99.25 104.25 108.60 108.35 114.2 112.3 108.2 [5,] 102.7 101.20 98.10 98.20 99.40 105.60 110.60 109.90 117.3 113.3 108.2 $n [1] 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.03168 98.2229 95.35095 94.04657 96.75716 99.58435 103.4511 104.4124 [2,] 101.76832 100.7771 97.44905 96.05343 100.54284 103.41565 108.1489 107.7876 [,9] [,10] [,11] [1,] 110.8914 108.9492 108.2 [2,] 115.9086 112.0508 108.2 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(96.5, 98.7, 100.4, 101.7, 102.7, 95.5, 97.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72tcl1289745194.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,] 100.3300 99.80 99.4375 [2,] 101.4064 100.30 101.4688 [3,] 102.5100 101.40 102.1750 [4,] 103.2150 102.40 102.9312 [5,] 104.4800 103.25 104.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 101.6851 100.4422 101.5079 [2,] 103.3349 102.3578 102.8421 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(100.33, 101.406363636364, 102.51, 103.215, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16jec1289745194.ps tmp/16jec1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/26jec1289745194.ps tmp/26jec1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/3gawf1289745194.ps tmp/3gawf1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/4gawf1289745194.ps tmp/4gawf1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/59jdi1289745194.ps tmp/59jdi1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/69jdi1289745194.ps tmp/69jdi1289745194.png",intern=TRUE)) character(0) > try(system("convert tmp/72tcl1289745194.ps tmp/72tcl1289745194.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.181 0.951 2.914