R version 2.7.0 (2008-04-22) 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(101.5,100.7,110.6,96.8,100.0,104.8,86.8,92.0,100.2,106.6,102.1,93.7,97.6,96.9,105.6,102.8,101.7,104.2,92.7,91.9,106.5,112.3,102.8,96.5,101.0,98.9,105.1,103.0,99.0,104.3,94.6,90.4,108.9,111.4,100.8,102.5,98.2,98.7,113.3,104.6,99.3,111.8,97.3,97.7,115.6,111.9,107.0,107.1,100.6,99.2,108.4,103.0,99.8,115.0,90.8,95.9,114.4,108.2,112.6,109.1,105.0,105.0,118.5,103.7,112.5,116.6,96.6,101.9,116.5,119.3,115.4,108.5,111.5,108.8,121.8,109.6,112.2,119.6,104.1,105.3,115.0,124.1,116.8,107.5,115.6,116.2,116.3,119.0,111.9,118.6,106.9,103.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] 92 > (np <- floor(n / par1)) [1] 7 > 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] 8 8 8 8 8 8 8 8 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.5 97.6 101.0 98.2 100.6 105.0 111.5 115.6 [2,] 100.7 96.9 98.9 98.7 99.2 105.0 108.8 116.2 [3,] 110.6 105.6 105.1 113.3 108.4 118.5 121.8 116.3 [4,] 96.8 102.8 103.0 104.6 103.0 103.7 109.6 119.0 [5,] 100.0 101.7 99.0 99.3 99.8 112.5 112.2 111.9 [6,] 104.8 104.2 104.3 111.8 115.0 116.6 119.6 118.6 [7,] 86.8 92.7 94.6 97.3 90.8 96.6 104.1 106.9 [8,] 92.0 91.9 90.4 97.7 95.9 101.9 105.3 103.2 [9,] 100.2 106.5 108.9 115.6 114.4 116.5 115.0 NA [10,] 106.6 112.3 111.4 111.9 108.2 119.3 124.1 NA [11,] 102.1 102.8 100.8 107.0 112.6 115.4 116.8 NA [12,] 93.7 96.5 102.5 107.1 109.1 108.5 107.5 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.8 -0.7 -2.1 0.5 -1.4 0.0 -2.7 0.6 [2,] 9.9 8.7 6.2 14.6 9.2 13.5 13.0 0.1 [3,] -13.8 -2.8 -2.1 -8.7 -5.4 -14.8 -12.2 2.7 [4,] 3.2 -1.1 -4.0 -5.3 -3.2 8.8 2.6 -7.1 [5,] 4.8 2.5 5.3 12.5 15.2 4.1 7.4 6.7 [6,] -18.0 -11.5 -9.7 -14.5 -24.2 -20.0 -15.5 -11.7 [7,] 5.2 -0.8 -4.2 0.4 5.1 5.3 1.2 -3.7 [8,] 8.2 14.6 18.5 17.9 18.5 14.6 9.7 NA [9,] 6.4 5.8 2.5 -3.7 -6.2 2.8 9.1 NA [10,] -4.5 -9.5 -10.6 -4.9 4.4 -3.9 -7.3 NA [11,] -8.4 -6.3 1.7 0.1 -3.5 -6.9 -9.3 NA [12,] 3.9 4.5 -4.3 -6.5 -4.1 3.0 8.1 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/1x8jr1229641803.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/2jcdq1229641803.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/3v5ka1229641803.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/4urs51229641803.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,] 97.60 96.90 105.10 96.80 99.00 104.20 86.80 90.40 100.2 106.6 100.80 [2,] 99.40 98.80 107.00 102.90 99.55 104.55 91.75 91.95 107.7 109.8 102.45 [3,] 101.25 99.95 111.95 103.35 100.85 113.40 95.60 96.80 114.4 111.9 107.00 [4,] 108.25 106.90 117.40 107.10 112.05 117.60 100.70 102.55 115.3 115.8 114.00 [5,] 115.60 116.20 121.80 109.60 112.50 119.60 106.90 105.30 116.5 124.1 116.80 [,12] [1,] 93.7 [2,] 99.5 [3,] 107.1 [4,] 108.0 [5,] 109.1 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.30626 95.42522 106.1404 101.0038 93.86732 106.1101 90.6004 [2,] 106.19374 104.47478 117.7596 105.6962 107.83268 120.6899 100.5996 [,8] [,9] [,10] [,11] [,12] [1,] 90.87869 109.8614 108.3169 100.1025 102.0239 [2,] 102.72131 118.9386 115.4831 113.8975 112.1761 $out [1] 119 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(97.6, 99.4, 101.25, 108.25, 115.6, 96.9, 98.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5etmh1229641803.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,] -2.70 0.10 -14.80 -7.10 2.50 -24.2 -4.20 8.20 -6.2 -10.6 -9.30 -6.5 [2,] -1.75 7.45 -13.00 -4.65 4.45 -19.0 -2.25 12.15 -0.6 -8.4 -7.65 -4.2 [3,] -0.75 9.55 -7.05 -2.15 6.00 -15.0 0.80 14.60 2.8 -4.9 -6.30 3.0 [4,] 0.25 13.25 -2.45 2.90 9.95 -11.6 5.15 18.20 6.1 -4.2 -1.70 4.2 [5,] 0.60 14.60 2.70 8.80 15.20 -9.7 5.30 18.50 9.1 -3.9 1.70 8.1 $n [1] 8 8 8 8 8 8 8 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.8672287 6.310037 -12.943381 -6.367538 2.927621 -19.13375 -3.333746 [2,] 0.3672287 12.789963 -1.156619 2.067538 9.072379 -10.86625 4.933746 [,8] [,9] [,10] [,11] [,12] [1,] 10.98704 -1.201132 -7.408172 -9.853244 -2.016344 [2,] 18.21296 6.801132 -2.391828 -2.746756 8.016344 $out [1] 4.4 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.70000000000000, -1.74999999999999, -0.749999999999993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6m8k31229641803.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] [1,] 86.80 91.90 90.40 97.30 90.80 96.60 104.10 103.20 [2,] 95.25 96.70 98.95 98.45 99.50 104.35 108.15 109.40 [3,] 100.45 102.25 101.75 105.80 105.60 110.50 111.85 115.90 [4,] 103.45 104.90 104.70 111.85 110.85 116.55 118.20 117.45 [5,] 110.60 112.30 111.40 115.60 115.00 119.30 124.10 119.00 $n [1] 12 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.70992 98.50992 99.12739 99.68817 100.4232 104.9355 107.2661 [2,] 104.19008 105.99008 104.37261 111.91183 110.7768 116.0645 116.4339 [,8] [1,] 111.4032 [2,] 120.3968 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(86.8, 95.25, 100.45, 103.45, 110.6, 91.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7iot51229641803.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,] 96.2250 95.600 95.6125 [2,] 103.3036 100.400 102.8563 [3,] 104.9313 105.175 105.1125 [4,] 111.4384 111.925 111.1937 [5,] 113.4000 114.400 112.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 101.2209 99.91837 101.3097 [2,] 108.6416 110.43163 108.9153 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96.225, 103.303571428571, 104.93125, 111.438392857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1x8jr1229641803.ps tmp/1x8jr1229641803.png") > system("convert tmp/2jcdq1229641803.ps tmp/2jcdq1229641803.png") > system("convert tmp/3v5ka1229641803.ps tmp/3v5ka1229641803.png") > system("convert tmp/4urs51229641803.ps tmp/4urs51229641803.png") > system("convert tmp/5etmh1229641803.ps tmp/5etmh1229641803.png") > system("convert tmp/6m8k31229641803.ps tmp/6m8k31229641803.png") > system("convert tmp/7iot51229641803.ps tmp/7iot51229641803.png") > > > proc.time() user system elapsed 2.556 1.584 2.823