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,98.86,96.87,103.18,104.66,103.74,103.87,98.10,98.91,109.43,104.89,88.63,97.03,93.79,97.61,98.17,96.31,97.82,87.52,85.71,89.15,90.65,92.74,80.00,84.33,93.26,115.89,105.21,94.23,106.12,94.41,101.30,98.43,107.94,102.82,92.33,97.48,88.37,92.50,81.48,92.55,98.96,77.28,91.01,81.21,88.41,96.02,91.59,86.30,86.37,105.41,76.73,93.26,95.02,84.32,93.24,89.81,111.66,103.23,103.21) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.00 97.03 84.33 97.48 86.30 NA [2,] 98.86 93.79 93.26 88.37 86.37 NA [3,] 96.87 97.61 115.89 92.50 105.41 NA [4,] 103.18 98.17 105.21 81.48 76.73 NA [5,] 104.66 96.31 94.23 92.55 93.26 NA [6,] 103.74 97.82 106.12 98.96 95.02 NA [7,] 103.87 87.52 94.41 77.28 84.32 NA [8,] 98.10 85.71 101.30 91.01 93.24 NA [9,] 98.91 89.15 98.43 81.21 89.81 NA [10,] 109.43 90.65 107.94 88.41 111.66 NA [11,] 104.89 92.74 102.82 96.02 103.23 NA [12,] 88.63 80.00 92.33 91.59 103.21 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.14 -3.24 8.93 -9.11 0.07 NA [2,] -1.99 3.82 22.63 4.13 19.04 NA [3,] 6.31 0.56 -10.68 -11.02 -28.68 NA [4,] 1.48 -1.86 -10.98 11.07 16.53 NA [5,] -0.92 1.51 11.89 6.41 1.76 NA [6,] 0.13 -10.30 -11.71 -21.68 -10.70 NA [7,] -5.77 -1.81 6.89 13.73 8.92 NA [8,] 0.81 3.44 -2.87 -9.80 -3.43 NA [9,] 10.52 1.50 9.51 7.20 21.85 NA [10,] -4.54 2.09 -5.12 7.61 -8.43 NA [11,] -16.26 -12.74 -10.49 -4.43 -0.02 NA [12,] 8.40 4.33 5.15 -5.29 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/104ch1257951377.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/2wgnf1257951377.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/334nq1257951377.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/41zxk1257951377.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,] 84.33 86.37 92.50 76.73 92.55 95.02 77.28 85.71 81.21 88.41 92.74 [2,] 86.30 88.37 96.87 81.48 93.26 97.82 84.32 91.01 89.15 90.65 96.02 [3,] 97.03 93.26 97.61 98.17 94.23 98.96 87.52 93.24 89.81 107.94 102.82 [4,] 97.48 93.79 105.41 103.18 96.31 103.74 94.41 98.10 98.43 109.43 103.23 [5,] 100.00 98.86 115.89 105.21 96.31 106.12 103.87 101.30 98.91 111.66 104.89 [,12] [1,] 88.63 [2,] 88.63 [3,] 91.59 [4,] 92.33 [5,] 92.33 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 89.13024 89.43024 91.57566 82.83683 92.07488 94.77694 80.39043 [2,] 104.92976 97.08976 103.64434 113.50317 96.38512 103.14306 94.64957 [,8] [,9] [,10] [,11] [,12] [1,] 88.23022 83.25278 94.6701 97.72543 88.97559 [2,] 98.24978 96.36722 121.2099 107.91457 94.20441 $out [1] 104.66 80.00 103.21 $group [1] 5 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(84.33, 86.3, 97.03, 97.48, 100, 86.37, 88.37, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zm4j1257951377.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,] -3.24 -1.99 -11.02 -10.98 -0.92 -11.71 -5.77 -3.43 7.20 -8.43 -16.26 [2,] -3.24 3.82 -11.02 -1.86 1.51 -11.71 -1.81 -3.43 7.20 -5.12 -12.74 [3,] -1.14 4.13 -10.68 1.48 1.76 -10.70 6.89 -2.87 9.51 -4.54 -10.49 [4,] 0.07 19.04 0.56 11.07 6.41 -10.30 8.92 0.81 10.52 2.09 -4.43 [5,] 0.07 22.63 6.31 16.53 11.89 -10.30 13.73 3.44 10.52 7.61 -0.02 [,12] [1,] -5.290 [2,] -0.480 [3,] 4.740 [4,] 6.775 [5,] 8.400 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.478838 -6.624414 -18.862399 -7.656305 -1.702328 -11.696302 -0.691791 [2,] 1.198838 14.884414 -2.497601 10.616305 5.222328 -9.703698 14.471791 [,8] [,9] [,10] [,11] [,12] [1,] -5.8659733 7.164096 -9.6345678 -16.361825 -0.99145 [2,] 0.1259733 11.855904 0.5545678 -4.618175 10.47145 $out [1] 8.93 -9.11 -28.68 0.13 -21.68 -9.80 1.50 21.85 $group [1] 1 1 3 6 6 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.23999999999999, -3.23999999999999, -1.14, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6m5y51257951377.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] [1,] 96.870 80.000 84.330 77.280 76.730 NA [2,] 98.480 88.335 93.745 84.925 86.335 NA [3,] 101.590 93.265 99.865 91.300 93.250 NA [4,] 104.265 97.320 105.665 94.285 103.220 NA [5,] 109.430 98.170 115.890 98.960 111.660 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 98.95142 89.16688 94.4282 87.03084 85.54864 NA [2,] 104.22858 97.36312 105.3018 95.56916 100.95136 NA $out [1] 88.63 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(96.87, 98.48, 101.59, 104.265, 109.43, 80, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7kejw1257951377.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,] 89.480 87.520 89.3650 [2,] 91.816 92.415 91.4850 [3,] 93.450 95.630 94.1725 [4,] 100.136 98.565 99.8325 [5,] 101.656 102.820 101.1400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 89.6552 92.82494 90.36515 [2,] 97.2448 98.43506 97.97985 $out [1] 107.94 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(89.48, 91.816, 93.45, 100.136, 101.656, 87.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/104ch1257951377.ps tmp/104ch1257951377.png") > system("convert tmp/2wgnf1257951377.ps tmp/2wgnf1257951377.png") > system("convert tmp/334nq1257951377.ps tmp/334nq1257951377.png") > system("convert tmp/41zxk1257951377.ps tmp/41zxk1257951377.png") > system("convert tmp/5zm4j1257951377.ps tmp/5zm4j1257951377.png") > system("convert tmp/6m5y51257951377.ps tmp/6m5y51257951377.png") > system("convert tmp/7kejw1257951377.ps tmp/7kejw1257951377.png") > > > proc.time() user system elapsed 1.263 0.985 24.382