R version 2.7.0 (2008-04-22) 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(95,96,97,96,96,96,95,97,97,97,98,98,97,98,98,99,99,98,97,99,100,100,100,100,99,101,101,101,101,101,100,102,102,102,103,103,102,103,103,103,103,103,101,104,104,104,104,104,103,105,104,105,106,106,105,107,108,108,109,110) > par1 = '60' > #'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] 1 > 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] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > arr [,1] [,2] [1,] 95 NA [2,] 96 NA [3,] 97 NA [4,] 96 NA [5,] 96 NA [6,] 96 NA [7,] 95 NA [8,] 97 NA [9,] 97 NA [10,] 97 NA [11,] 98 NA [12,] 98 NA [13,] 97 NA [14,] 98 NA [15,] 98 NA [16,] 99 NA [17,] 99 NA [18,] 98 NA [19,] 97 NA [20,] 99 NA [21,] 100 NA [22,] 100 NA [23,] 100 NA [24,] 100 NA [25,] 99 NA [26,] 101 NA [27,] 101 NA [28,] 101 NA [29,] 101 NA [30,] 101 NA [31,] 100 NA [32,] 102 NA [33,] 102 NA [34,] 102 NA [35,] 103 NA [36,] 103 NA [37,] 102 NA [38,] 103 NA [39,] 103 NA [40,] 103 NA [41,] 103 NA [42,] 103 NA [43,] 101 NA [44,] 104 NA [45,] 104 NA [46,] 104 NA [47,] 104 NA [48,] 104 NA [49,] 103 NA [50,] 105 NA [51,] 104 NA [52,] 105 NA [53,] 106 NA [54,] 106 NA [55,] 105 NA [56,] 107 NA [57,] 108 NA [58,] 108 NA [59,] 109 NA [60,] 110 NA > darr [,1] [,2] [1,] 1 NA [2,] 1 NA [3,] -1 NA [4,] 0 NA [5,] 0 NA [6,] -1 NA [7,] 2 NA [8,] 0 NA [9,] 0 NA [10,] 1 NA [11,] 0 NA [12,] -1 NA [13,] 1 NA [14,] 0 NA [15,] 1 NA [16,] 0 NA [17,] -1 NA [18,] -1 NA [19,] 2 NA [20,] 1 NA [21,] 0 NA [22,] 0 NA [23,] 0 NA [24,] -1 NA [25,] 2 NA [26,] 0 NA [27,] 0 NA [28,] 0 NA [29,] 0 NA [30,] -1 NA [31,] 2 NA [32,] 0 NA [33,] 0 NA [34,] 1 NA [35,] 0 NA [36,] -1 NA [37,] 1 NA [38,] 0 NA [39,] 0 NA [40,] 0 NA [41,] 0 NA [42,] -2 NA [43,] 3 NA [44,] 0 NA [45,] 0 NA [46,] 0 NA [47,] 0 NA [48,] -1 NA [49,] 2 NA [50,] -1 NA [51,] 1 NA [52,] 1 NA [53,] 0 NA [54,] -1 NA [55,] 2 NA [56,] 1 NA [57,] 0 NA [58,] 1 NA [59,] 1 NA [60,] 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/1np4p1225383129.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/2esb51225383129.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/34ux21225383129.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/4uayk1225383129.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] [,12] [,13] [,14] [1,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [2,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [3,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [4,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [5,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 98 99 99 98 97 99 100 100 100 100 99 101 [2,] 98 99 99 98 97 99 100 100 100 100 99 101 [3,] 98 99 99 98 97 99 100 100 100 100 99 101 [4,] 98 99 99 98 97 99 100 100 100 100 99 101 [5,] 98 99 99 98 97 99 100 100 100 100 99 101 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 101 101 101 101 100 102 102 102 103 103 102 103 [2,] 101 101 101 101 100 102 102 102 103 103 102 103 [3,] 101 101 101 101 100 102 102 102 103 103 102 103 [4,] 101 101 101 101 100 102 102 102 103 103 102 103 [5,] 101 101 101 101 100 102 102 102 103 103 102 103 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 103 103 103 103 101 104 104 104 104 104 103 105 [2,] 103 103 103 103 101 104 104 104 104 104 103 105 [3,] 103 103 103 103 101 104 104 104 104 104 103 105 [4,] 103 103 103 103 101 104 104 104 104 104 103 105 [5,] 103 103 103 103 101 104 104 104 104 104 103 105 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 104 105 106 106 105 107 108 108 109 110 [2,] 104 105 106 106 105 107 108 108 109 110 [3,] 104 105 106 106 105 107 108 108 109 110 [4,] 104 105 106 106 105 107 108 108 109 110 [5,] 104 105 106 106 105 107 108 108 109 110 $n [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [2,] 95 96 97 96 96 96 95 97 97 97 98 98 97 98 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 98 99 99 98 97 99 100 100 100 100 99 101 [2,] 98 99 99 98 97 99 100 100 100 100 99 101 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 101 101 101 101 100 102 102 102 103 103 102 103 [2,] 101 101 101 101 100 102 102 102 103 103 102 103 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 103 103 103 103 101 104 104 104 104 104 103 105 [2,] 103 103 103 103 101 104 104 104 104 104 103 105 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 104 105 106 106 105 107 108 108 109 110 [2,] 104 105 106 106 105 107 108 108 109 110 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55chj1225383129.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] [,13] [,14] [1,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [2,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [3,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [4,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [5,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [2,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [3,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [4,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [5,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [2,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [3,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [4,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [5,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [2,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [3,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [4,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [5,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 1 1 0 -1 2 1 0 1 1 NA [2,] 1 1 0 -1 2 1 0 1 1 NA [3,] 1 1 0 -1 2 1 0 1 1 NA [4,] 1 1 0 -1 2 1 0 1 1 NA [5,] 1 1 0 -1 2 1 0 1 1 NA $n [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [2,] 1 1 -1 0 0 -1 2 0 0 1 0 -1 1 0 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [2,] 1 0 -1 -1 2 1 0 0 0 -1 2 0 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [2,] 0 0 0 -1 2 0 0 1 0 -1 1 0 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [2,] 0 0 0 -2 3 0 0 0 0 -1 2 -1 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 1 1 0 -1 2 1 0 1 1 NA [2,] 1 1 0 -1 2 1 0 1 1 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mzgr1225383129.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] [1,] 95 NA [2,] 98 NA [3,] 101 NA [4,] 104 NA [5,] 110 NA $n [1] 60 0 $conf [,1] [,2] [1,] 99.77614 NA [2,] 102.22386 NA $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79zs41225383129.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,] 95 95 95 [2,] 98 98 98 [3,] 101 101 101 [4,] 104 104 104 [5,] 110 110 110 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 99.77614 99.77614 99.77614 [2,] 102.22386 102.22386 102.22386 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1np4p1225383129.ps tmp/1np4p1225383129.png") > system("convert tmp/2esb51225383129.ps tmp/2esb51225383129.png") > system("convert tmp/34ux21225383129.ps tmp/34ux21225383129.png") > system("convert tmp/4uayk1225383129.ps tmp/4uayk1225383129.png") > system("convert tmp/55chj1225383129.ps tmp/55chj1225383129.png") > system("convert tmp/6mzgr1225383129.ps tmp/6mzgr1225383129.png") > system("convert tmp/79zs41225383129.ps tmp/79zs41225383129.png") > > > proc.time() user system elapsed 2.869 1.622 3.121