R version 2.6.2 (2008-02-08) 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(105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,97.82,97.83,97.82,97.83,97.82,97.82,97.8,97.8,97.44,97.44,97.44,97.44,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,89.38,89.38,89.38,89.38,87.69,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 105.18 97.82 97.70 89.38 89.21 89.21 92.07 94 NA [2,] 105.18 97.83 97.70 87.69 89.21 89.21 92.07 94 NA [3,] 105.18 97.82 97.70 89.21 89.21 89.21 92.07 94 NA [4,] 105.18 97.82 97.70 89.21 89.21 89.21 92.07 94 NA [5,] 105.18 97.80 97.70 89.21 89.21 89.21 92.07 94 NA [6,] 105.18 97.80 97.70 89.21 89.21 89.21 92.07 94 NA [7,] 105.18 97.44 97.70 89.21 89.21 89.21 92.07 94 NA [8,] 105.18 97.44 97.70 89.21 89.21 89.21 92.07 94 NA [9,] 105.18 97.44 97.70 89.21 89.21 89.21 94.00 94 NA [10,] 105.18 97.44 89.38 89.21 89.21 89.21 94.00 94 NA [11,] 97.82 97.70 89.38 89.21 89.21 92.07 94.00 94 NA [12,] 97.83 97.70 89.38 89.21 89.21 92.07 94.00 94 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.00 0.01 0.00 -1.69 0 0.00 0.00 0 NA [2,] 0.00 -0.01 0.00 1.52 0 0.00 0.00 0 NA [3,] 0.00 0.00 0.00 0.00 0 0.00 0.00 0 NA [4,] 0.00 -0.02 0.00 0.00 0 0.00 0.00 0 NA [5,] 0.00 0.00 0.00 0.00 0 0.00 0.00 0 NA [6,] 0.00 -0.36 0.00 0.00 0 0.00 0.00 0 NA [7,] 0.00 0.00 0.00 0.00 0 0.00 0.00 0 NA [8,] 0.00 0.00 0.00 0.00 0 0.00 1.93 0 NA [9,] 0.00 0.00 -8.32 0.00 0 0.00 0.00 0 NA [10,] -7.36 0.26 0.00 0.00 0 2.86 0.00 0 NA [11,] 0.01 0.00 0.00 0.00 0 0.00 0.00 0 NA [12,] -0.01 0.00 0.00 0.00 0 0.00 0.00 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/19syr1209293534.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/2bwsm1209293534.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/383go1209293534.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/4qx2x1209293534.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,] 89.210 87.690 89.210 89.210 89.210 89.210 89.210 89.210 89.21 [2,] 89.295 89.210 89.210 89.210 89.210 89.210 89.210 89.210 89.21 [3,] 93.035 93.035 93.035 93.035 93.035 93.035 93.035 93.035 94.00 [4,] 97.760 97.765 97.760 97.760 97.750 97.750 97.570 97.570 97.57 [5,] 105.180 105.180 105.180 105.180 105.180 105.180 105.180 105.180 105.18 [,10] [,11] [,12] [1,] 89.21 89.210 89.210 [2,] 89.21 89.295 89.295 [3,] 91.69 93.035 93.035 [4,] 95.72 95.850 95.850 [5,] 105.18 97.820 97.830 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.30633 88.25605 88.25885 88.25885 88.26443 88.26443 88.36498 88.36498 [2,] 97.76367 97.81395 97.81115 97.81115 97.80557 97.80557 97.70502 97.70502 [,9] [,10] [,11] [,12] [1,] 89.32998 88.05342 89.37328 89.37328 [2,] 98.67002 95.32658 96.69672 96.69672 $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(89.21, 89.295, 93.035, 97.76, 105.18, 87.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/541gu1209293534.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,] 0 0 0 0 0 0 0 0 0 0.00 0 0 [2,] 0 0 0 0 0 0 0 0 0 0.00 0 0 [3,] 0 0 0 0 0 0 0 0 0 0.00 0 0 [4,] 0 0 0 0 0 0 0 0 0 0.13 0 0 [5,] 0 0 0 0 0 0 0 0 0 0.26 0 0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0 0 0 0 0 0 0 0 0 -0.07261987 0 0 [2,] 0 0 0 0 0 0 0 0 0 0.07261987 0 0 $out [1] 0.01 -1.69 -0.01 1.52 -0.02 -0.36 1.93 -8.32 -7.36 2.86 0.01 -0.01 $group [1] 1 1 2 2 4 6 8 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lgoa1209293534.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] [1,] 105.18 97.44 89.38 89.21 89.21 89.21 92.07 94 NA [2,] 105.18 97.44 93.54 89.21 89.21 89.21 92.07 94 NA [3,] 105.18 97.75 97.70 89.21 89.21 89.21 92.07 94 NA [4,] 105.18 97.82 97.70 89.21 89.21 89.21 94.00 94 NA [5,] 105.18 97.83 97.70 89.21 89.21 89.21 94.00 94 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 105.18 97.57668 95.8026 89.21 89.21 89.21 91.18971 94 NA [2,] 105.18 97.92332 99.5974 89.21 89.21 89.21 92.95029 94 NA $out [1] 97.82 97.83 89.38 87.69 92.07 92.07 $group [1] 1 1 4 4 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(105.18, 105.18, 105.18, 105.18, 105.18, 97.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7v15q1209293534.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,] 93.45375 93.035 92.03500 [2,] 93.78250 93.035 92.74437 [3,] 94.27500 93.035 93.41250 [4,] 94.30000 93.035 93.47000 [5,] 94.49375 93.035 93.53375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 94.03896 93.035 93.08154 [2,] 94.51104 93.035 93.74346 $out [1] 92.92375 92.92500 94.00000 91.69000 $group [1] 1 1 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(93.45375, 93.7825, 94.275, 94.3, 94.49375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19syr1209293534.ps tmp/19syr1209293534.png") > system("convert tmp/2bwsm1209293534.ps tmp/2bwsm1209293534.png") > system("convert tmp/383go1209293534.ps tmp/383go1209293534.png") > system("convert tmp/4qx2x1209293534.ps tmp/4qx2x1209293534.png") > system("convert tmp/541gu1209293534.ps tmp/541gu1209293534.png") > system("convert tmp/6lgoa1209293534.ps tmp/6lgoa1209293534.png") > system("convert tmp/7v15q1209293534.ps tmp/7v15q1209293534.png") > > > proc.time() user system elapsed 2.565 1.583 2.805