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(100.00,99.97,101.03,101.00,101.30,101.43,101.49,102.14,102.58,102.34,102.07,101.83,102.14,102.58,102.63,102.74,103.32,103.27,102.48,102.14,102.07,101.69,101.15,100.90,101.77,101.93,102.27,102.49,102.80,102.82,102.83,102.89,102.87,102.67,102.96,103.22,103.53,104.63,104.63,104.17,103.93,104.01,104.16,105.22,105.85,106.21,105.77,105.63,106.49,107.51,110.43,111.42,111.58,111.34,111.08,111.66,112.36,112.31,111.52,110.87,111.13,112.71,113.25,113.09,112.55,112.87,113.59,115.14,116.38,116.50,116.25,116.73) > 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,] 100.00 102.14 101.77 103.53 106.49 111.13 NA [2,] 99.97 102.58 101.93 104.63 107.51 112.71 NA [3,] 101.03 102.63 102.27 104.63 110.43 113.25 NA [4,] 101.00 102.74 102.49 104.17 111.42 113.09 NA [5,] 101.30 103.32 102.80 103.93 111.58 112.55 NA [6,] 101.43 103.27 102.82 104.01 111.34 112.87 NA [7,] 101.49 102.48 102.83 104.16 111.08 113.59 NA [8,] 102.14 102.14 102.89 105.22 111.66 115.14 NA [9,] 102.58 102.07 102.87 105.85 112.36 116.38 NA [10,] 102.34 101.69 102.67 106.21 112.31 116.50 NA [11,] 102.07 101.15 102.96 105.77 111.52 116.25 NA [12,] 101.83 100.90 103.22 105.63 110.87 116.73 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.03 0.44 0.16 1.10 1.02 1.58 NA [2,] 1.06 0.05 0.34 0.00 2.92 0.54 NA [3,] -0.03 0.11 0.22 -0.46 0.99 -0.16 NA [4,] 0.30 0.58 0.31 -0.24 0.16 -0.54 NA [5,] 0.13 -0.05 0.02 0.08 -0.24 0.32 NA [6,] 0.06 -0.79 0.01 0.15 -0.26 0.72 NA [7,] 0.65 -0.34 0.06 1.06 0.58 1.55 NA [8,] 0.44 -0.07 -0.02 0.63 0.70 1.24 NA [9,] -0.24 -0.38 -0.20 0.36 -0.05 0.12 NA [10,] -0.27 -0.54 0.29 -0.44 -0.79 -0.25 NA [11,] -0.24 -0.25 0.26 -0.14 -0.65 0.48 NA [12,] 0.31 0.87 0.31 0.86 0.26 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/1h84x1258047662.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/2o9ei1258047662.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/3rk0b1258047662.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/4omqt1258047662.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] [1,] 100.000 99.970 101.03 101.000 101.300 101.43 101.490 102.140 102.07 [2,] 101.770 101.930 102.27 102.490 102.800 102.82 102.480 102.140 102.58 [3,] 102.835 103.605 103.63 103.455 103.625 103.64 103.495 104.055 104.36 [4,] 106.490 107.510 110.43 111.420 111.580 111.34 111.080 111.660 112.36 [5,] 111.130 112.710 113.25 113.090 112.550 112.87 113.590 115.140 116.38 [,10] [,11] [,12] [1,] 101.69 101.150 100.900 [2,] 102.34 102.070 101.830 [3,] 104.44 104.365 104.425 [4,] 112.31 111.520 110.870 [5,] 116.50 116.250 116.730 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.79045 100.0057 98.36654 97.69486 97.96162 98.14432 97.94772 [2,] 105.87955 107.2043 108.89346 109.21514 109.28838 109.13568 109.04228 [,8] [,9] [,10] [,11] [,12] [1,] 97.9143 98.05158 98.00903 98.26944 98.5939 [2,] 110.1957 110.66842 110.87097 110.46056 110.2561 $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(100, 101.77, 102.835, 106.49, 111.13, 99.97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55fdb1258047662.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] [1,] -0.03 0.00 -0.46 -0.54 -0.24 -0.790 -0.340 -0.070 -0.380 -0.790 -0.65 [2,] 0.16 0.05 -0.16 -0.24 -0.05 -0.260 0.060 -0.020 -0.240 -0.540 -0.25 [3,] 0.73 0.44 0.04 0.23 0.05 0.035 0.615 0.535 -0.125 -0.355 -0.19 [4,] 1.10 1.06 0.22 0.31 0.13 0.150 1.060 0.700 0.120 -0.250 0.26 [5,] 1.58 1.06 0.22 0.58 0.32 0.720 1.550 1.240 0.360 -0.250 0.48 [,12] [1,] 0.26 [2,] 0.31 [3,] 0.31 [4,] 0.86 [5,] 0.87 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.1236696 -0.2114826 -0.2051123 -0.1247678 -0.06610581 -0.2294632 [2,] 1.3363304 1.0914826 0.2851123 0.5847678 0.16610581 0.2994632 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.0300323 0.07057674 -0.3572116 -0.5420594 -0.5189665 -0.07862861 [2,] 1.2600323 0.99942326 0.1072116 -0.1679406 0.1389665 0.69862861 $out [1] 2.92 0.99 0.29 $group [1] 2 3 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0300000000000011, 0.160000000000011, 0.730000000000004, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6n4411258047662.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,] 99.970 100.900 101.77 103.530 110.43 111.130 NA [2,] 101.015 101.880 102.38 104.085 110.65 112.790 NA [3,] 101.460 102.310 102.81 104.630 111.38 113.420 NA [4,] 102.105 102.685 102.88 105.700 111.62 116.315 NA [5,] 102.580 103.320 103.22 106.210 112.36 116.730 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 100.9628 101.9428 102.5819 103.8934 110.9376 111.8122 NA [2,] 101.9572 102.6772 103.0381 105.3666 111.8224 115.0278 NA $out [1] 106.49 107.51 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(99.97, 101.015, 101.46, 102.105, 102.58, 100.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w15e1258047662.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.8883 102.8350 105.6700 [2,] 105.7625 103.5500 105.7694 [3,] 105.9475 103.6350 106.1337 [4,] 106.5758 104.3625 106.2594 [5,] 107.0183 104.4400 106.6925 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 105.5765 103.2644 105.9103 [2,] 106.3185 104.0056 106.3572 $out [1] 104.1767 103.8063 104.4412 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(104.888333333333, 105.7625, 105.9475, 106.575833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h84x1258047662.ps tmp/1h84x1258047662.png") > system("convert tmp/2o9ei1258047662.ps tmp/2o9ei1258047662.png") > system("convert tmp/3rk0b1258047662.ps tmp/3rk0b1258047662.png") > system("convert tmp/4omqt1258047662.ps tmp/4omqt1258047662.png") > system("convert tmp/55fdb1258047662.ps tmp/55fdb1258047662.png") > system("convert tmp/6n4411258047662.ps tmp/6n4411258047662.png") > system("convert tmp/7w15e1258047662.ps tmp/7w15e1258047662.png") > > > proc.time() user system elapsed 1.238 0.975 11.810