R version 2.6.2 (2008-02-08) 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(48.04,48.06,48.04,48.09,48.12,48.16,48.16,48.16,48.08,48.13,48.16,48.15,48.15,48.15,48.27,48.47,48.51,48.53,48.53,48.53,48.68,48.64,48.67,48.66,48.66,48.67,48.71,48.96,49.01,49.04,49.04,49.04,49.06,49.13,49.19,49.26,49.26,49.26,49.29,49.43,49.43,49.45,49.45,49.46,49.57,49.68,49.71,49.7,49.7,49.8,49.84,50.09,50.2,50.16,50.16,50.29,50.36,51.02,51.03,51.04) > 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)) > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 48.04 48.15 48.66 49.26 49.70 NA [2,] 48.06 48.15 48.67 49.26 49.80 NA [3,] 48.04 48.27 48.71 49.29 49.84 NA [4,] 48.09 48.47 48.96 49.43 50.09 NA [5,] 48.12 48.51 49.01 49.43 50.20 NA [6,] 48.16 48.53 49.04 49.45 50.16 NA [7,] 48.16 48.53 49.04 49.45 50.16 NA [8,] 48.16 48.53 49.04 49.46 50.29 NA [9,] 48.08 48.68 49.06 49.57 50.36 NA [10,] 48.13 48.64 49.13 49.68 51.02 NA [11,] 48.16 48.67 49.19 49.71 51.03 NA [12,] 48.15 48.66 49.26 49.70 51.04 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.02 0.00 0.01 0.00 0.10 NA [2,] -0.02 0.12 0.04 0.03 0.04 NA [3,] 0.05 0.20 0.25 0.14 0.25 NA [4,] 0.03 0.04 0.05 0.00 0.11 NA [5,] 0.04 0.02 0.03 0.02 -0.04 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.01 0.13 NA [8,] -0.08 0.15 0.02 0.11 0.07 NA [9,] 0.05 -0.04 0.07 0.11 0.66 NA [10,] 0.03 0.03 0.06 0.03 0.01 NA [11,] -0.01 -0.01 0.07 -0.01 0.01 NA [12,] 0.00 0.00 0.00 0.00 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/1yang1209326536.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/2fl6d1209326536.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/3dxjq1209326536.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/4xal61209326536.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] [1,] 48.04 48.06 48.04 48.09 48.12 48.16 48.16 48.16 48.08 48.13 48.16 48.15 [2,] 48.15 48.15 48.27 48.47 48.51 48.53 48.53 48.53 48.68 48.64 48.67 48.66 [3,] 48.66 48.67 48.71 48.96 49.01 49.04 49.04 49.04 49.06 49.13 49.19 49.26 [4,] 49.26 49.26 49.29 49.43 49.43 49.45 49.45 49.46 49.57 49.68 49.71 49.70 [5,] 49.70 49.80 49.84 50.09 50.20 50.16 50.16 50.29 50.36 51.02 51.03 51.04 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 47.87568 47.88568 47.98927 48.28167 48.35993 48.38993 48.38993 48.38286 [2,] 49.44432 49.45432 49.43073 49.63833 49.66007 49.69007 49.69007 49.69714 [,9] [,10] [,11] [,12] [1,] 48.43113 48.39514 48.45514 48.52514 [2,] 49.68887 49.86486 49.92486 49.99486 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(48.04, 48.15, 48.66, 49.26, 49.7, 48.06, 48.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5swn11209326536.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] [1,] 0.00 0.03 0.05 0.00 0.02 0 0.00 -0.08 0.05 0.03 -0.01 0 [2,] 0.00 0.03 0.14 0.03 0.02 0 0.00 0.02 0.05 0.03 -0.01 0 [3,] 0.01 0.04 0.20 0.04 0.02 0 0.00 0.07 0.07 0.03 -0.01 0 [4,] 0.02 0.04 0.25 0.05 0.03 0 0.01 0.11 0.11 0.03 0.01 0 [5,] 0.02 0.04 0.25 0.05 0.04 0 0.01 0.15 0.11 0.03 0.01 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.00413195 0.03293403 0.1222743 0.02586805 0.01293403 0 -0.007065975 [2,] 0.02413195 0.04706597 0.2777257 0.05413195 0.02706597 0 0.007065975 [,8] [,9] [,10] [,11] [,12] [1,] 0.006406227 0.02760415 0.03 -0.02413195 0 [2,] 0.133593773 0.11239585 0.03 0.00413195 0 $out [1] 0.10 -0.02 0.12 0.11 -0.04 0.13 -0.04 0.66 0.06 0.01 0.07 $group [1] 1 2 2 4 5 7 9 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.0100000000000051, 0.0200000000000031, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ixl11209326536.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,] 48.040 48.15 48.660 49.260 49.700 NA [2,] 48.070 48.37 48.835 49.360 49.965 NA [3,] 48.125 48.53 49.040 49.450 50.180 NA [4,] 48.160 48.65 49.095 49.625 50.690 NA [5,] 48.160 48.68 49.260 49.710 51.040 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 48.08395 48.40229 48.92141 49.32913 49.84932 NA [2,] 48.16605 48.65771 49.15859 49.57087 50.51068 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(48.04, 48.07, 48.125, 48.16, 48.16, 48.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hsj51209326536.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,] 48.762 48.660 48.7050 [2,] 48.919 48.835 48.8650 [3,] 49.068 49.040 48.9900 [4,] 49.235 49.095 49.1425 [5,] 49.362 49.260 49.1900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 48.92387 48.92141 48.86343 [2,] 49.21213 49.15859 49.11657 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(48.762, 48.919, 49.068, 49.235, 49.362, 48.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yang1209326536.ps tmp/1yang1209326536.png") > system("convert tmp/2fl6d1209326536.ps tmp/2fl6d1209326536.png") > system("convert tmp/3dxjq1209326536.ps tmp/3dxjq1209326536.png") > system("convert tmp/4xal61209326536.ps tmp/4xal61209326536.png") > system("convert tmp/5swn11209326536.ps tmp/5swn11209326536.png") > system("convert tmp/6ixl11209326536.ps tmp/6ixl11209326536.png") > system("convert tmp/7hsj51209326536.ps tmp/7hsj51209326536.png") > > > proc.time() user system elapsed 1.448 0.956 4.876