R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(128.6,128.9,129.06,129.23,129.27,129.33,129.35,129.31,129.4,129.49,129.47,129.46,129.45,129.28,129.2,129.25,129.14,129.11,129.02,129.08,128.99,129.11,129.08,129.19,129.23,129.25,129.31,129.33,129.39,129.55,129.43,129.45,129.57,129.76,129.92,130.08,130.41,130.84,131.24,131.49,131.74,132.34,133.5,134.43,136.5,137.41,138.02,138.15,138.24,138.2,138.31,138.65,139.3,139.8,140.52,141.57,141.77,141.66,141.36,141.17) > 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,] 128.60 129.45 129.23 130.41 138.24 NA [2,] 128.90 129.28 129.25 130.84 138.20 NA [3,] 129.06 129.20 129.31 131.24 138.31 NA [4,] 129.23 129.25 129.33 131.49 138.65 NA [5,] 129.27 129.14 129.39 131.74 139.30 NA [6,] 129.33 129.11 129.55 132.34 139.80 NA [7,] 129.35 129.02 129.43 133.50 140.52 NA [8,] 129.31 129.08 129.45 134.43 141.57 NA [9,] 129.40 128.99 129.57 136.50 141.77 NA [10,] 129.49 129.11 129.76 137.41 141.66 NA [11,] 129.47 129.08 129.92 138.02 141.36 NA [12,] 129.46 129.19 130.08 138.15 141.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.30 -0.17 0.02 0.43 -0.04 NA [2,] 0.16 -0.08 0.06 0.40 0.11 NA [3,] 0.17 0.05 0.02 0.25 0.34 NA [4,] 0.04 -0.11 0.06 0.25 0.65 NA [5,] 0.06 -0.03 0.16 0.60 0.50 NA [6,] 0.02 -0.09 -0.12 1.16 0.72 NA [7,] -0.04 0.06 0.02 0.93 1.05 NA [8,] 0.09 -0.09 0.12 2.07 0.20 NA [9,] 0.09 0.12 0.19 0.91 -0.11 NA [10,] -0.02 -0.03 0.16 0.61 -0.30 NA [11,] -0.01 0.11 0.16 0.13 -0.19 NA [12,] -0.01 0.04 0.33 0.09 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/1uliy1258140854.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/2ffad1258140854.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/3mk0h1258140854.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/4zza31258140854.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] [1,] 128.60 128.90 129.06 129.23 129.14 129.11 129.02 129.08 128.99 129.11 [2,] 129.23 129.25 129.20 129.25 129.27 129.33 129.35 129.31 129.40 129.49 [3,] 129.45 129.28 129.31 129.33 129.39 129.55 129.43 129.45 129.57 129.76 [4,] 130.41 130.84 131.24 131.49 131.74 132.34 133.50 134.43 136.50 137.41 [5,] 130.41 130.84 131.24 131.49 131.74 132.34 133.50 141.57 141.77 141.66 [,11] [,12] [1,] 129.08 129.19 [2,] 129.47 129.46 [3,] 129.92 130.08 [4,] 138.02 138.15 [5,] 141.36 141.17 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 128.6162 128.1565 127.8685 127.7472 127.6447 127.4231 126.4976 125.8322 [2,] 130.2838 130.4035 130.7515 130.9128 131.1353 131.6769 132.3624 133.0678 [,9] [,10] [,11] [,12] [1,] 124.5532 124.1637 123.8786 123.9397 [2,] 134.5868 135.3563 135.9614 136.2203 $out [1] 138.24 138.20 138.31 138.65 139.30 139.80 140.52 $group [1] 1 2 3 4 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(128.6, 129.23, 129.45, 130.41, 130.41, 128.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5s5qf1258140854.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.17 -0.08 0.02 -0.11 -0.03 -0.12 -0.04 0.09 0.09 -0.30 -0.19 -0.010 [2,] -0.04 0.06 0.05 0.04 0.06 -0.09 0.02 0.09 0.09 -0.03 -0.01 0.015 [3,] 0.02 0.11 0.17 0.06 0.16 0.02 0.06 0.12 0.12 -0.02 0.11 0.065 [4,] 0.30 0.16 0.25 0.25 0.50 0.72 0.93 0.20 0.19 0.16 0.13 0.210 [5,] 0.43 0.16 0.34 0.25 0.60 1.16 1.05 0.20 0.19 0.16 0.16 0.330 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2202431 0.03934025 0.02868050 -0.08838547 -0.1509029 -0.552344 [2,] 0.2602431 0.18065975 0.31131950 0.20838547 0.4709029 0.592344 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.5830037 0.04227428 0.04934025 -0.1542535 0.01107635 -0.08905 [2,] 0.7030037 0.19772572 0.19065975 0.1142535 0.20892365 0.21905 $out [1] 0.40 0.65 -0.09 2.07 0.91 -0.11 0.61 $group [1] 2 4 8 8 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.169999999999987, -0.0400000000000205, 0.0200000000000102, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61cfh1258140854.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,] 128.900 128.990 129.230 130.410 138.200 NA [2,] 129.145 129.080 129.320 131.365 138.480 NA [3,] 129.320 129.125 129.440 132.920 140.160 NA [4,] 129.430 129.225 129.665 136.955 141.465 NA [5,] 129.490 129.280 130.080 138.150 141.770 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 129.19 129.0589 129.2826 130.3704 138.7985 NA [2,] 129.45 129.1911 129.5974 135.4696 141.5215 NA $out [1] 128.60 129.45 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(128.9, 129.145, 129.32, 129.43, 129.49, 128.99, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7430y1258140854.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,] 131.186 129.280 129.820 [2,] 131.507 129.360 130.295 [3,] 132.195 129.450 131.130 [4,] 133.366 129.665 133.200 [5,] 133.610 130.080 133.805 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 131.3471 129.3109 129.805 [2,] 133.0429 129.5891 132.455 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(131.186, 131.507, 132.195, 133.366, 133.61, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uliy1258140854.ps tmp/1uliy1258140854.png") > system("convert tmp/2ffad1258140854.ps tmp/2ffad1258140854.png") > system("convert tmp/3mk0h1258140854.ps tmp/3mk0h1258140854.png") > system("convert tmp/4zza31258140854.ps tmp/4zza31258140854.png") > system("convert tmp/5s5qf1258140854.ps tmp/5s5qf1258140854.png") > system("convert tmp/61cfh1258140854.ps tmp/61cfh1258140854.png") > system("convert tmp/7430y1258140854.ps tmp/7430y1258140854.png") > > > proc.time() user system elapsed 1.236 0.962 1.489