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(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)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[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 > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/freestat/rcomp/tmp/18dzc1257603386.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/242nj1257603386.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/366u21257603386.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/4mp7g1257603386.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/freestat/rcomp/tmp/5eyv21257603386.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/freestat/rcomp/tmp/6s5z21257603386.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 4.649838 11.82796 5.376344 [2,] 6.678053 16.66667 6.451613 [3,] 7.973397 19.35484 8.602151 [4,] 8.866201 22.04301 12.365591 [5,] 9.866727 24.73118 16.129032 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.975368 16.90265 5.904745 [2,] 8.971426 21.80703 11.299556 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.64983834720512, 6.67805276953831, 7.97339657841102, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18dzc1257603386.ps tmp/18dzc1257603386.png") > system("convert tmp/242nj1257603386.ps tmp/242nj1257603386.png") > system("convert tmp/366u21257603386.ps tmp/366u21257603386.png") > system("convert tmp/4mp7g1257603386.ps tmp/4mp7g1257603386.png") > system("convert tmp/5eyv21257603386.ps tmp/5eyv21257603386.png") > system("convert tmp/6s5z21257603386.ps tmp/6s5z21257603386.png") > > > proc.time() user system elapsed 1.649 1.254 1.975