R version 2.7.2 (2008-08-25) 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(101,88,108,116,104,110,105,107,124,109,102,125,102,101,116,114,115,119,108,110,120,113,111,121,99,104,117,108,122,122,111,111,131,108,118,119,104,105,118,124,123,114,119,116,129,112,123,124,117,110,118,135,127,117,137,130,132,142,122,126) > 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,] 101 NA [2,] 88 NA [3,] 108 NA [4,] 116 NA [5,] 104 NA [6,] 110 NA [7,] 105 NA [8,] 107 NA [9,] 124 NA [10,] 109 NA [11,] 102 NA [12,] 125 NA [13,] 102 NA [14,] 101 NA [15,] 116 NA [16,] 114 NA [17,] 115 NA [18,] 119 NA [19,] 108 NA [20,] 110 NA [21,] 120 NA [22,] 113 NA [23,] 111 NA [24,] 121 NA [25,] 99 NA [26,] 104 NA [27,] 117 NA [28,] 108 NA [29,] 122 NA [30,] 122 NA [31,] 111 NA [32,] 111 NA [33,] 131 NA [34,] 108 NA [35,] 118 NA [36,] 119 NA [37,] 104 NA [38,] 105 NA [39,] 118 NA [40,] 124 NA [41,] 123 NA [42,] 114 NA [43,] 119 NA [44,] 116 NA [45,] 129 NA [46,] 112 NA [47,] 123 NA [48,] 124 NA [49,] 117 NA [50,] 110 NA [51,] 118 NA [52,] 135 NA [53,] 127 NA [54,] 117 NA [55,] 137 NA [56,] 130 NA [57,] 132 NA [58,] 142 NA [59,] 122 NA [60,] 126 NA > darr [,1] [,2] [1,] -13 NA [2,] 20 NA [3,] 8 NA [4,] -12 NA [5,] 6 NA [6,] -5 NA [7,] 2 NA [8,] 17 NA [9,] -15 NA [10,] -7 NA [11,] 23 NA [12,] -23 NA [13,] -1 NA [14,] 15 NA [15,] -2 NA [16,] 1 NA [17,] 4 NA [18,] -11 NA [19,] 2 NA [20,] 10 NA [21,] -7 NA [22,] -2 NA [23,] 10 NA [24,] -22 NA [25,] 5 NA [26,] 13 NA [27,] -9 NA [28,] 14 NA [29,] 0 NA [30,] -11 NA [31,] 0 NA [32,] 20 NA [33,] -23 NA [34,] 10 NA [35,] 1 NA [36,] -15 NA [37,] 1 NA [38,] 13 NA [39,] 6 NA [40,] -1 NA [41,] -9 NA [42,] 5 NA [43,] -3 NA [44,] 13 NA [45,] -17 NA [46,] 11 NA [47,] 1 NA [48,] -7 NA [49,] -7 NA [50,] 8 NA [51,] 17 NA [52,] -8 NA [53,] -10 NA [54,] 20 NA [55,] -7 NA [56,] 2 NA [57,] 10 NA [58,] -20 NA [59,] 4 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/16agk1225383410.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/24uvb1225383410.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/3y6mr1225383410.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/4t7yc1225383410.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,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [2,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [3,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [4,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [5,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 116 114 115 119 108 110 120 113 111 121 99 104 [2,] 116 114 115 119 108 110 120 113 111 121 99 104 [3,] 116 114 115 119 108 110 120 113 111 121 99 104 [4,] 116 114 115 119 108 110 120 113 111 121 99 104 [5,] 116 114 115 119 108 110 120 113 111 121 99 104 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 117 108 122 122 111 111 131 108 118 119 104 105 [2,] 117 108 122 122 111 111 131 108 118 119 104 105 [3,] 117 108 122 122 111 111 131 108 118 119 104 105 [4,] 117 108 122 122 111 111 131 108 118 119 104 105 [5,] 117 108 122 122 111 111 131 108 118 119 104 105 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 118 124 123 114 119 116 129 112 123 124 117 110 [2,] 118 124 123 114 119 116 129 112 123 124 117 110 [3,] 118 124 123 114 119 116 129 112 123 124 117 110 [4,] 118 124 123 114 119 116 129 112 123 124 117 110 [5,] 118 124 123 114 119 116 129 112 123 124 117 110 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 118 135 127 117 137 130 132 142 122 126 [2,] 118 135 127 117 137 130 132 142 122 126 [3,] 118 135 127 117 137 130 132 142 122 126 [4,] 118 135 127 117 137 130 132 142 122 126 [5,] 118 135 127 117 137 130 132 142 122 126 $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,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [2,] 101 88 108 116 104 110 105 107 124 109 102 125 102 101 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 116 114 115 119 108 110 120 113 111 121 99 104 [2,] 116 114 115 119 108 110 120 113 111 121 99 104 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 117 108 122 122 111 111 131 108 118 119 104 105 [2,] 117 108 122 122 111 111 131 108 118 119 104 105 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 118 124 123 114 119 116 129 112 123 124 117 110 [2,] 118 124 123 114 119 116 129 112 123 124 117 110 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 118 135 127 117 137 130 132 142 122 126 [2,] 118 135 127 117 137 130 132 142 122 126 $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/58xnm1225383410.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,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [2,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [3,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [4,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [5,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [2,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [3,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [4,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [5,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [2,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [3,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [4,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [5,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [2,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [3,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [4,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [5,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 17 -8 -10 20 -7 2 10 -20 4 NA [2,] 17 -8 -10 20 -7 2 10 -20 4 NA [3,] 17 -8 -10 20 -7 2 10 -20 4 NA [4,] 17 -8 -10 20 -7 2 10 -20 4 NA [5,] 17 -8 -10 20 -7 2 10 -20 4 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,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [2,] -13 20 8 -12 6 -5 2 17 -15 -7 23 -23 -1 15 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [2,] -2 1 4 -11 2 10 -7 -2 10 -22 5 13 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [2,] -9 14 0 -11 0 20 -23 10 1 -15 1 13 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [2,] 6 -1 -9 5 -3 13 -17 11 1 -7 -7 8 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 17 -8 -10 20 -7 2 10 -20 4 NA [2,] 17 -8 -10 20 -7 2 10 -20 4 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/6eyrn1225383410.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,] 88.0 NA [2,] 108.0 NA [3,] 116.0 NA [4,] 122.5 NA [5,] 142.0 NA $n [1] 60 0 $conf [,1] [,2] [1,] 113.0423 NA [2,] 118.9577 NA $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/71hbe1225383410.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,] 88.0 88.0 88.0 [2,] 108.0 108.0 108.0 [3,] 116.0 116.0 116.0 [4,] 122.5 122.5 122.5 [5,] 142.0 142.0 142.0 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 113.0423 113.0423 113.0423 [2,] 118.9577 118.9577 118.9577 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/16agk1225383410.ps tmp/16agk1225383410.png") > system("convert tmp/24uvb1225383410.ps tmp/24uvb1225383410.png") > system("convert tmp/3y6mr1225383410.ps tmp/3y6mr1225383410.png") > system("convert tmp/4t7yc1225383410.ps tmp/4t7yc1225383410.png") > system("convert tmp/58xnm1225383410.ps tmp/58xnm1225383410.png") > system("convert tmp/6eyrn1225383410.ps tmp/6eyrn1225383410.png") > system("convert tmp/71hbe1225383410.ps tmp/71hbe1225383410.png") > > > proc.time() user system elapsed 1.618 1.029 4.799