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(101.02,100.67,100.47,100.38,100.33,100.34,100.37,100.39,100.21,100.21,100.22,100.28,100.25,100.25,100.21,100.16,100.18,100.1,99.96,99.88,99.88,99.86,99.84,99.8,99.82,99.81,99.92,100.03,99.99,100.02,100.01,100.13,100.33,100.13,99.96,100.05,99.83,99.8,100.01,100.1,100.13,100.16,100.41,101.34,101.65,101.85,102.07,102.12,102.14,102.21,102.28,102.19,102.33,102.54,102.44,102.78,102.9,103.08,102.77,102.65,102.71,103.29,102.86,103.45,103.72,103.65,103.83,104.45,105.14,105.07,105.31,105.19,105.3,105.02,105.17,105.28,105.45,105.38,105.8,105.96,105.08,105.11,105.61,105.5) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.02 100.25 99.82 99.83 102.14 102.71 105.30 NA [2,] 100.67 100.25 99.81 99.80 102.21 103.29 105.02 NA [3,] 100.47 100.21 99.92 100.01 102.28 102.86 105.17 NA [4,] 100.38 100.16 100.03 100.10 102.19 103.45 105.28 NA [5,] 100.33 100.18 99.99 100.13 102.33 103.72 105.45 NA [6,] 100.34 100.10 100.02 100.16 102.54 103.65 105.38 NA [7,] 100.37 99.96 100.01 100.41 102.44 103.83 105.80 NA [8,] 100.39 99.88 100.13 101.34 102.78 104.45 105.96 NA [9,] 100.21 99.88 100.33 101.65 102.90 105.14 105.08 NA [10,] 100.21 99.86 100.13 101.85 103.08 105.07 105.11 NA [11,] 100.22 99.84 99.96 102.07 102.77 105.31 105.61 NA [12,] 100.28 99.80 100.05 102.12 102.65 105.19 105.50 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.35 0.00 -0.01 -0.03 0.07 0.58 -0.28 NA [2,] -0.20 -0.04 0.11 0.21 0.07 -0.43 0.15 NA [3,] -0.09 -0.05 0.11 0.09 -0.09 0.59 0.11 NA [4,] -0.05 0.02 -0.04 0.03 0.14 0.27 0.17 NA [5,] 0.01 -0.08 0.03 0.03 0.21 -0.07 -0.07 NA [6,] 0.03 -0.14 -0.01 0.25 -0.10 0.18 0.42 NA [7,] 0.02 -0.08 0.12 0.93 0.34 0.62 0.16 NA [8,] -0.18 0.00 0.20 0.31 0.12 0.69 -0.88 NA [9,] 0.00 -0.02 -0.20 0.20 0.18 -0.07 0.03 NA [10,] 0.01 -0.02 -0.17 0.22 -0.31 0.24 0.50 NA [11,] 0.06 -0.04 0.09 0.05 -0.12 -0.12 -0.11 NA [12,] -0.03 0.02 -0.22 0.02 0.06 0.11 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/freestat/rcomp/tmp/1bton1228835468.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/freestat/rcomp/tmp/2aj2z1228835468.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/freestat/rcomp/tmp/3rzhw1228835468.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/freestat/rcomp/tmp/4p2vu1228835468.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,] 99.820 99.80 99.92 100.03 99.990 100.020 99.960 99.880 99.88 [2,] 100.040 100.03 100.11 100.13 100.155 100.130 100.190 100.260 100.27 [3,] 101.020 100.67 100.47 100.38 100.330 100.340 100.410 101.340 101.65 [4,] 102.425 102.75 102.57 102.82 103.025 103.095 103.135 103.615 103.99 [5,] 105.300 105.02 105.17 105.28 105.450 105.380 105.800 105.960 105.14 [,10] [,11] [,12] [1,] 99.860 99.84 99.800 [2,] 100.170 100.09 100.165 [3,] 101.850 102.07 102.120 [4,] 104.075 104.04 103.920 [5,] 105.110 105.61 105.500 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.59572 99.04566 99.00093 98.77358 98.61608 98.56935 98.6513 [2,] 102.44428 102.29434 101.93907 101.98642 102.04392 102.11065 102.1687 [,8] [,9] [,10] [,11] [,12] [1,] 99.33645 99.42848 99.518 99.71112 99.87757 [2,] 103.34355 103.87152 104.182 104.42888 104.36243 $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(99.82, 100.04, 101.02, 102.425, 105.3, 99.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5fey41228835468.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.350 -0.43 -0.09 -0.050 -0.08 -0.140 -0.08 -0.180 -0.200 -0.310 -0.120 [2,] -0.155 -0.12 -0.07 -0.010 -0.07 -0.055 0.07 -0.090 -0.045 -0.095 -0.115 [3,] -0.010 0.07 0.09 0.030 0.01 0.030 0.16 0.120 0.000 0.010 -0.040 [4,] 0.035 0.13 0.11 0.155 0.03 0.215 0.48 0.255 0.105 0.230 0.055 [5,] 0.070 0.21 0.11 0.270 0.03 0.420 0.93 0.690 0.200 0.500 0.090 [,12] [1,] -0.03 [2,] -0.03 [3,] 0.02 [4,] 0.06 [5,] 0.11 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1234649 -0.07929597 -0.01749310 -0.06853534 -0.04971839 -0.1312396 [2,] 0.1034649 0.21929597 0.19749310 0.12853534 0.06971839 0.1912396 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.08484539 -0.08602843 -0.08957758 -0.1840848 -0.14152126 -0.03805291 [2,] 0.40484539 0.32602843 0.08957758 0.2040848 0.06152126 0.07805291 $out [1] 0.58 0.59 0.21 -0.88 -0.22 $group [1] 1 3 5 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.349999999999994, -0.155000000000001, -0.0099999999999909, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6zbg31228835468.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,] 100.210 99.800 99.810 99.800 102.140 102.710 105.020 NA [2,] 100.250 99.870 99.940 100.055 102.245 103.370 105.140 NA [3,] 100.355 100.030 100.015 100.285 102.490 103.775 105.340 NA [4,] 100.430 100.195 100.090 101.750 102.775 105.105 105.555 NA [5,] 100.670 100.250 100.130 102.120 103.080 105.310 105.960 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.2729 99.88177 99.94658 99.5119 102.2483 102.9837 105.1507 NA [2,] 100.4371 100.17823 100.08342 101.0581 102.7317 104.5663 105.5293 NA $out [1] 101.02 100.33 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(100.21, 100.25, 100.355, 100.43, 100.67, 99.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7bnaj1228835468.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,] 101.5600 100.330 101.2325 [2,] 101.6186 100.395 101.4325 [3,] 101.7864 100.845 101.6375 [4,] 102.1786 101.750 102.0537 [5,] 102.2543 102.120 102.1300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 101.5310 100.2270 101.3541 [2,] 102.0418 101.4630 101.9209 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(101.56, 101.618571428571, 101.786428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bton1228835468.ps tmp/1bton1228835468.png") > system("convert tmp/2aj2z1228835468.ps tmp/2aj2z1228835468.png") > system("convert tmp/3rzhw1228835468.ps tmp/3rzhw1228835468.png") > system("convert tmp/4p2vu1228835468.ps tmp/4p2vu1228835468.png") > system("convert tmp/5fey41228835468.ps tmp/5fey41228835468.png") > system("convert tmp/6zbg31228835468.ps tmp/6zbg31228835468.png") > system("convert tmp/7bnaj1228835468.ps tmp/7bnaj1228835468.png") > > > proc.time() user system elapsed 1.861 1.468 2.225