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(2.2,2.3,2.1,2.8,3.1,2.9,2.6,2.7,2.3,2.3,2.1,2.2,2.9,2.6,2.7,1.8,1.3,0.9,1.3,1.3,1.3,1.3,1.1,1.4,1.2,1.7,1.8,1.5,1,1.6,1.5,1.8,1.8,1.6,1.9,1.7,1.6,1.3,1.1,1.9,2.6,2.3,2.4,2.2,2,2.9,2.6,2.3,2.3,2.6,3.1,2.8,2.5,2.9,3.1,3.1,3.2,2.5,2.6,2.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,] 2.2 NA [2,] 2.3 NA [3,] 2.1 NA [4,] 2.8 NA [5,] 3.1 NA [6,] 2.9 NA [7,] 2.6 NA [8,] 2.7 NA [9,] 2.3 NA [10,] 2.3 NA [11,] 2.1 NA [12,] 2.2 NA [13,] 2.9 NA [14,] 2.6 NA [15,] 2.7 NA [16,] 1.8 NA [17,] 1.3 NA [18,] 0.9 NA [19,] 1.3 NA [20,] 1.3 NA [21,] 1.3 NA [22,] 1.3 NA [23,] 1.1 NA [24,] 1.4 NA [25,] 1.2 NA [26,] 1.7 NA [27,] 1.8 NA [28,] 1.5 NA [29,] 1.0 NA [30,] 1.6 NA [31,] 1.5 NA [32,] 1.8 NA [33,] 1.8 NA [34,] 1.6 NA [35,] 1.9 NA [36,] 1.7 NA [37,] 1.6 NA [38,] 1.3 NA [39,] 1.1 NA [40,] 1.9 NA [41,] 2.6 NA [42,] 2.3 NA [43,] 2.4 NA [44,] 2.2 NA [45,] 2.0 NA [46,] 2.9 NA [47,] 2.6 NA [48,] 2.3 NA [49,] 2.3 NA [50,] 2.6 NA [51,] 3.1 NA [52,] 2.8 NA [53,] 2.5 NA [54,] 2.9 NA [55,] 3.1 NA [56,] 3.1 NA [57,] 3.2 NA [58,] 2.5 NA [59,] 2.6 NA [60,] 2.9 NA > darr [,1] [,2] [1,] 0.1 NA [2,] -0.2 NA [3,] 0.7 NA [4,] 0.3 NA [5,] -0.2 NA [6,] -0.3 NA [7,] 0.1 NA [8,] -0.4 NA [9,] 0.0 NA [10,] -0.2 NA [11,] 0.1 NA [12,] 0.7 NA [13,] -0.3 NA [14,] 0.1 NA [15,] -0.9 NA [16,] -0.5 NA [17,] -0.4 NA [18,] 0.4 NA [19,] 0.0 NA [20,] 0.0 NA [21,] 0.0 NA [22,] -0.2 NA [23,] 0.3 NA [24,] -0.2 NA [25,] 0.5 NA [26,] 0.1 NA [27,] -0.3 NA [28,] -0.5 NA [29,] 0.6 NA [30,] -0.1 NA [31,] 0.3 NA [32,] 0.0 NA [33,] -0.2 NA [34,] 0.3 NA [35,] -0.2 NA [36,] -0.1 NA [37,] -0.3 NA [38,] -0.2 NA [39,] 0.8 NA [40,] 0.7 NA [41,] -0.3 NA [42,] 0.1 NA [43,] -0.2 NA [44,] -0.2 NA [45,] 0.9 NA [46,] -0.3 NA [47,] -0.3 NA [48,] 0.0 NA [49,] 0.3 NA [50,] 0.5 NA [51,] -0.3 NA [52,] -0.3 NA [53,] 0.4 NA [54,] 0.2 NA [55,] 0.0 NA [56,] 0.1 NA [57,] -0.7 NA [58,] 0.1 NA [59,] 0.3 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/1f3z11225303409.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/2bl7h1225303409.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/3q4vb1225303409.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/4g0r71225303409.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,] 2.2 2.3 2.1 2.8 3.1 2.9 2.6 2.7 2.3 2.3 2.1 2.2 2.9 2.6 [2,] 2.2 2.3 2.1 2.8 3.1 2.9 2.6 2.7 2.3 2.3 2.1 2.2 2.9 2.6 [3,] 2.2 2.3 2.1 2.8 3.1 2.9 2.6 2.7 2.3 2.3 2.1 2.2 2.9 2.6 [4,] 2.2 2.3 2.1 2.8 3.1 2.9 2.6 2.7 2.3 2.3 2.1 2.2 2.9 2.6 [5,] 2.2 2.3 2.1 2.8 3.1 2.9 2.6 2.7 2.3 2.3 2.1 2.2 2.9 2.6 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [2,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [3,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [4,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [5,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 1.8 1.5 1 1.6 1.5 1.8 1.8 1.6 1.9 1.7 1.6 1.3 [2,] 1.8 1.5 1 1.6 1.5 1.8 1.8 1.6 1.9 1.7 1.6 1.3 [3,] 1.8 1.5 1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16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [2,] 2.7 1.8 1.3 0.9 1.3 1.3 1.3 1.3 1.1 1.4 1.2 1.7 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 1.8 1.5 1 1.6 1.5 1.8 1.8 1.6 1.9 1.7 1.6 1.3 [2,] 1.8 1.5 1 1.6 1.5 1.8 1.8 1.6 1.9 1.7 1.6 1.3 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 1.1 1.9 2.6 2.3 2.4 2.2 2 2.9 2.6 2.3 2.3 2.6 [2,] 1.1 1.9 2.6 2.3 2.4 2.2 2 2.9 2.6 2.3 2.3 2.6 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 3.1 2.8 2.5 2.9 3.1 3.1 3.2 2.5 2.6 2.9 [2,] 3.1 2.8 2.5 2.9 3.1 3.1 3.2 2.5 2.6 2.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/5da0q1225303409.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] [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] [,34] [,35] [,36] [,37] [,38] [1,] -0.3 -0.5 0.6 -0.1 0.3 0 -0.2 0.3 -0.2 -0.1 -0.3 -0.2 [2,] -0.3 -0.5 0.6 -0.1 0.3 0 -0.2 0.3 -0.2 -0.1 -0.3 -0.2 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 0.8 0.7 -0.3 0.1 -0.2 -0.2 0.9 -0.3 -0.3 0 0.3 0.5 [2,] 0.8 0.7 -0.3 0.1 -0.2 -0.2 0.9 -0.3 -0.3 0 0.3 0.5 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] -0.3 -0.3 0.4 0.2 0 0.1 -0.7 0.1 0.3 NA [2,] -0.3 -0.3 0.4 0.2 0 0.1 -0.7 0.1 0.3 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/65nl71225303409.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,] 0.9 NA [2,] 1.6 NA [3,] 2.2 NA [4,] 2.6 NA [5,] 3.2 NA $n [1] 60 0 $conf [,1] [,2] [1,] 1.996023 NA [2,] 2.403977 NA $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fqy71225303409.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,] 0.9 0.9 0.9 [2,] 1.6 1.6 1.6 [3,] 2.2 2.2 2.2 [4,] 2.6 2.6 2.6 [5,] 3.2 3.2 3.2 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 1.996023 1.996023 1.996023 [2,] 2.403977 2.403977 2.403977 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1f3z11225303409.ps tmp/1f3z11225303409.png") > system("convert tmp/2bl7h1225303409.ps tmp/2bl7h1225303409.png") > system("convert tmp/3q4vb1225303409.ps tmp/3q4vb1225303409.png") > system("convert tmp/4g0r71225303409.ps tmp/4g0r71225303409.png") > system("convert tmp/5da0q1225303409.ps tmp/5da0q1225303409.png") > system("convert tmp/65nl71225303409.ps tmp/65nl71225303409.png") > system("convert tmp/7fqy71225303409.ps tmp/7fqy71225303409.png") > > > proc.time() user system elapsed 2.830 1.593 3.123