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,100,93.5483871,88.17204301,89.24731183,91.39784946,92.47311828,91.39784946,88.17204301,87.09677419,84.94623656,92.47311828,93.5483871,93.5483871,91.39784946,90.32258065,91.39784946,93.5483871,93.5483871,92.47311828,91.39784946,89.24731183,86.02150538,88.17204301,87.09677419,87.09677419,86.02150538,84.94623656,84.94623656,86.02150538,86.02150538,84.94623656,86.02150538,82.79569892,77.41935484,80.64516129,78.49462366,75.2688172,75.2688172,75.2688172,77.41935484,78.49462366,76.34408602,73.11827957,68.8172043,65.59139785,69.89247312,82.79569892,84.94623656,80.64516129,74.19354839,70.96774194,74.19354839,82.79569892,86.02150538,86.02150538,82.79569892,78.49462366,79.56989247,87.09677419) > 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.00000 93.54839 87.09677 78.49462 84.94624 NA [2,] 100.00000 93.54839 87.09677 75.26882 80.64516 NA [3,] 93.54839 91.39785 86.02151 75.26882 74.19355 NA [4,] 88.17204 90.32258 84.94624 75.26882 70.96774 NA [5,] 89.24731 91.39785 84.94624 77.41935 74.19355 NA [6,] 91.39785 93.54839 86.02151 78.49462 82.79570 NA [7,] 92.47312 93.54839 86.02151 76.34409 86.02151 NA [8,] 91.39785 92.47312 84.94624 73.11828 86.02151 NA [9,] 88.17204 91.39785 86.02151 68.81720 82.79570 NA [10,] 87.09677 89.24731 82.79570 65.59140 78.49462 NA [11,] 84.94624 86.02151 77.41935 69.89247 79.56989 NA [12,] 92.47312 88.17204 80.64516 82.79570 87.09677 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.000000 0.000000 0.000000 -3.225806 -4.301075 NA [2,] -6.451613 -2.150538 -1.075269 0.000000 -6.451613 NA [3,] -5.376344 -1.075269 -1.075269 0.000000 -3.225806 NA [4,] 1.075269 1.075269 0.000000 2.150538 3.225806 NA [5,] 2.150538 2.150538 1.075269 1.075269 8.602151 NA [6,] 1.075269 0.000000 0.000000 -2.150538 3.225806 NA [7,] -1.075269 -1.075269 -1.075269 -3.225806 0.000000 NA [8,] -3.225806 -1.075269 1.075269 -4.301075 -3.225806 NA [9,] -1.075269 -2.150538 -3.225806 -3.225806 -4.301075 NA [10,] -2.150538 -3.225806 -5.376344 4.301075 1.075269 NA [11,] 7.526882 2.150538 3.225806 12.903226 7.526882 NA [12,] 1.075269 -1.075269 -2.150538 2.150538 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/1rxu21257602436.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/2evid1257602436.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/3lwgz1257602436.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/4vbma1257602436.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] [1,] 78.49462 75.26882 74.19355 70.96774 74.19355 78.49462 86.02151 84.94624 [2,] 84.94624 80.64516 75.26882 75.26882 77.41935 82.79570 86.02151 84.94624 [3,] 87.09677 87.09677 86.02151 84.94624 84.94624 86.02151 86.02151 86.02151 [4,] 93.54839 93.54839 91.39785 88.17204 89.24731 91.39785 92.47312 91.39785 [5,] 100.00000 100.00000 93.54839 90.32258 91.39785 93.54839 93.54839 92.47312 [,9] [,10] [,11] [,12] [1,] 82.79570 78.49462 69.89247 80.64516 [2,] 82.79570 78.49462 77.41935 82.79570 [3,] 86.02151 82.79570 79.56989 87.09677 [4,] 88.17204 87.09677 84.94624 88.17204 [5,] 91.39785 89.24731 86.02151 92.47312 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 81.01852 77.97939 74.62477 75.82885 76.58863 79.94325 81.46281 81.46281 [2,] 93.17503 96.21416 97.41824 94.06362 93.30384 92.09976 90.58020 90.58020 [,9] [,10] [,11] [,12] [1,] 82.22259 76.71744 74.25142 83.29786 [2,] 89.82042 88.87396 84.88837 90.89569 $out [1] 76.34409 73.11828 68.81720 65.59140 $group [1] 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(78.49462366, 84.94623656, 87.09677419, 93.5483871, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wse11257602436.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] [1,] -4.301075 -6.451613 -5.376344 0.000000 1.075269 0.000000 -1.075269 [2,] -3.225806 -6.451613 -3.225806 1.075269 1.075269 0.000000 -1.075269 [3,] 0.000000 -2.150538 -1.075269 1.075269 2.150538 0.000000 -1.075269 [4,] 0.000000 -1.075269 -1.075269 2.150538 2.150538 1.075269 -1.075269 [5,] 0.000000 0.000000 0.000000 3.225806 2.150538 1.075269 -1.075269 [,8] [,9] [,10] [,11] [,12] [1,] -4.301075 -4.301075 -5.376344 2.150538 -2.150538e+00 [2,] -3.225806 -3.225806 -3.225806 3.225806 -1.612903e+00 [3,] -3.225806 -3.225806 -2.150538 7.526882 7.105427e-15 [4,] -1.075269 -2.150538 1.075269 7.526882 1.612903e+00 [5,] 1.075269 -1.075269 4.301075 12.903226 2.150538e+00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.279347 -5.949449 -2.5948333 0.3154866 1.390755 -0.7597822 -1.075269 [2,] 2.279347 1.648374 0.4442957 1.8350511 2.910320 0.7597822 -1.075269 [,8] [,9] [,10] [,11] [,12] [1,] -4.745371 -3.985589 -5.1896666 4.487753 -2.548387 [2,] -1.706242 -2.466024 0.8885913 10.566011 2.548387 $out [1] 8.602151 -2.150538 3.225806 -3.225806 0.000000 $group [1] 5 6 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.30107527, -3.22580646, 0, 0, 0, -6.4516129, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kq8t1257602436.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,] 84.94624 86.02151 80.64516 65.59140 70.96774 NA [2,] 88.17204 89.78495 83.87097 71.50538 76.34409 NA [3,] 91.39785 91.39785 85.48387 75.26882 81.72043 NA [4,] 93.01075 93.54839 86.02151 77.95699 85.48387 NA [5,] 100.00000 93.54839 87.09677 82.79570 87.09677 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 89.19088 89.68132 84.50300 72.32619 77.55171 NA [2,] 93.60482 93.11438 86.46475 78.21144 85.88915 NA $out [1] 77.41935 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(84.94623656, 88.17204301, 91.39784946, 93.01075269, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7q8pq1257602436.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,] 79.56989 82.79570 81.18280 [2,] 82.68817 84.94624 83.06452 [3,] 84.83871 86.02151 85.48387 [4,] 86.66667 86.55914 87.63441 [5,] 88.81720 87.09677 89.24731 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 83.02409 85.28585 83.39951 [2,] 86.65333 86.75716 87.56823 $out [1] 79.5699 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(79.569892474, 82.688172043, 84.838709678, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rxu21257602436.ps tmp/1rxu21257602436.png") > system("convert tmp/2evid1257602436.ps tmp/2evid1257602436.png") > system("convert tmp/3lwgz1257602436.ps tmp/3lwgz1257602436.png") > system("convert tmp/4vbma1257602436.ps tmp/4vbma1257602436.png") > system("convert tmp/5wse11257602436.ps tmp/5wse11257602436.png") > system("convert tmp/6kq8t1257602436.ps tmp/6kq8t1257602436.png") > system("convert tmp/7q8pq1257602436.ps tmp/7q8pq1257602436.png") > > > proc.time() user system elapsed 1.152 0.921 1.759