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(8.4,8.4,8.4,8.6,8.9,8.8,8.3,7.5,7.2,7.5,8.8,9.3,9.3,8.7,8.2,8.3,8.5,8.6,8.6,8.2,8.1,8,8.6,8.7,8.8,8.5,8.4,8.5,8.7,8.7,8.6,8.5,8.3,8.1,8.2,8.1,8.1,7.9,7.9,7.9,8,8,7.9,8,7.7,7.2,7.5,7.3,7,7,7,7.2,7.3,7.1,6.8,6.6,6.2,6.2,6.8,6.9) > 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,] 8.4 NA [2,] 8.4 NA [3,] 8.4 NA [4,] 8.6 NA [5,] 8.9 NA [6,] 8.8 NA [7,] 8.3 NA [8,] 7.5 NA [9,] 7.2 NA [10,] 7.5 NA [11,] 8.8 NA [12,] 9.3 NA [13,] 9.3 NA [14,] 8.7 NA [15,] 8.2 NA [16,] 8.3 NA [17,] 8.5 NA [18,] 8.6 NA [19,] 8.6 NA [20,] 8.2 NA [21,] 8.1 NA [22,] 8.0 NA [23,] 8.6 NA [24,] 8.7 NA [25,] 8.8 NA [26,] 8.5 NA [27,] 8.4 NA [28,] 8.5 NA [29,] 8.7 NA [30,] 8.7 NA [31,] 8.6 NA [32,] 8.5 NA [33,] 8.3 NA [34,] 8.1 NA [35,] 8.2 NA [36,] 8.1 NA [37,] 8.1 NA [38,] 7.9 NA [39,] 7.9 NA [40,] 7.9 NA [41,] 8.0 NA [42,] 8.0 NA [43,] 7.9 NA [44,] 8.0 NA [45,] 7.7 NA [46,] 7.2 NA [47,] 7.5 NA [48,] 7.3 NA [49,] 7.0 NA [50,] 7.0 NA [51,] 7.0 NA [52,] 7.2 NA [53,] 7.3 NA [54,] 7.1 NA [55,] 6.8 NA [56,] 6.6 NA [57,] 6.2 NA [58,] 6.2 NA [59,] 6.8 NA [60,] 6.9 NA > darr [,1] [,2] [1,] 0.0 NA [2,] 0.0 NA [3,] 0.2 NA [4,] 0.3 NA [5,] -0.1 NA [6,] -0.5 NA [7,] -0.8 NA [8,] -0.3 NA [9,] 0.3 NA [10,] 1.3 NA [11,] 0.5 NA [12,] 0.0 NA [13,] -0.6 NA [14,] -0.5 NA [15,] 0.1 NA [16,] 0.2 NA [17,] 0.1 NA [18,] 0.0 NA [19,] -0.4 NA [20,] -0.1 NA [21,] -0.1 NA [22,] 0.6 NA [23,] 0.1 NA [24,] 0.1 NA [25,] -0.3 NA [26,] -0.1 NA [27,] 0.1 NA [28,] 0.2 NA [29,] 0.0 NA [30,] -0.1 NA [31,] -0.1 NA [32,] -0.2 NA [33,] -0.2 NA [34,] 0.1 NA [35,] -0.1 NA [36,] 0.0 NA [37,] -0.2 NA [38,] 0.0 NA [39,] 0.0 NA [40,] 0.1 NA [41,] 0.0 NA [42,] -0.1 NA [43,] 0.1 NA [44,] -0.3 NA [45,] -0.5 NA [46,] 0.3 NA [47,] -0.2 NA [48,] -0.3 NA [49,] 0.0 NA [50,] 0.0 NA [51,] 0.2 NA [52,] 0.1 NA [53,] -0.2 NA [54,] -0.3 NA [55,] -0.2 NA [56,] -0.4 NA [57,] 0.0 NA [58,] 0.6 NA [59,] 0.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/1mci81225293790.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/2yip41225293790.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/3zav11225293790.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/4voam1225293790.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,] 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 [2,] 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 [3,] 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 [4,] 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 [5,] 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [2,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [3,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [4,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [5,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 [2,] 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 [3,] 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1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 8.2 8.1 8 8.6 8.7 8.8 8.5 [2,] 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 [2,] 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 [2,] 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9 [2,] 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9 $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/50ihn1225293790.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,] 0 0 0.2 0.3 -0.1 -0.5 -0.8 -0.3 0.3 1.3 0.5 0 -0.6 -0.5 [2,] 0 0 0.2 0.3 -0.1 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 0 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 0 0.1 0 -0.1 0.1 -0.3 -0.5 0.3 -0.2 -0.3 0 0 [2,] 0 0.1 0 -0.1 0.1 -0.3 -0.5 0.3 -0.2 -0.3 0 0 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 0.2 0.1 -0.2 -0.3 -0.2 -0.4 0 0.6 0.1 NA [2,] 0.2 0.1 -0.2 -0.3 -0.2 -0.4 0 0.6 0.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/6lf6a1225293790.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,] 6.20 NA [2,] 7.40 NA [3,] 8.10 NA [4,] 8.55 NA [5,] 9.30 NA $n [1] 60 0 $conf [,1] [,2] [1,] 7.865426 NA [2,] 8.334574 NA $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70aa51225293790.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,] 6.20 6.20 6.20 [2,] 7.40 7.40 7.40 [3,] 8.10 8.10 8.10 [4,] 8.55 8.55 8.55 [5,] 9.30 9.30 9.30 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 7.865426 7.865426 7.865426 [2,] 8.334574 8.334574 8.334574 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1mci81225293790.ps tmp/1mci81225293790.png") > system("convert tmp/2yip41225293790.ps tmp/2yip41225293790.png") > system("convert tmp/3zav11225293790.ps tmp/3zav11225293790.png") > system("convert tmp/4voam1225293790.ps tmp/4voam1225293790.png") > system("convert tmp/50ihn1225293790.ps tmp/50ihn1225293790.png") > system("convert tmp/6lf6a1225293790.ps tmp/6lf6a1225293790.png") > system("convert tmp/70aa51225293790.ps tmp/70aa51225293790.png") > > > proc.time() user system elapsed 1.558 0.963 1.829