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(1.74,1.75,1.83,2.09,2.12,2.29,2.4,2.82,3.18,4,4.8,5.28,5.37,5.27,5.33,5.23,5.08,5.11,5.1,4.97,5,5.2,4.9,4.82,5.04,4.82,4.77,4.79,4.58,4.59,4.57,4.35,4.27,4.39,3.97,3.84,3.73,3.58,3.45,3.44,3.25,3.25,3.02,2.87,2.92,2.95,2.75,2.7,2.75,2.72,2.71,2.76,2.68,2.78,2.86,2.75,2.87,2.91,2.79,2.77) > 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,] 1.74 5.37 5.04 3.73 2.75 NA [2,] 1.75 5.27 4.82 3.58 2.72 NA [3,] 1.83 5.33 4.77 3.45 2.71 NA [4,] 2.09 5.23 4.79 3.44 2.76 NA [5,] 2.12 5.08 4.58 3.25 2.68 NA [6,] 2.29 5.11 4.59 3.25 2.78 NA [7,] 2.40 5.10 4.57 3.02 2.86 NA [8,] 2.82 4.97 4.35 2.87 2.75 NA [9,] 3.18 5.00 4.27 2.92 2.87 NA [10,] 4.00 5.20 4.39 2.95 2.91 NA [11,] 4.80 4.90 3.97 2.75 2.79 NA [12,] 5.28 4.82 3.84 2.70 2.77 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01 -0.10 -0.22 -0.15 -0.03 NA [2,] 0.08 0.06 -0.05 -0.13 -0.01 NA [3,] 0.26 -0.10 0.02 -0.01 0.05 NA [4,] 0.03 -0.15 -0.21 -0.19 -0.08 NA [5,] 0.17 0.03 0.01 0.00 0.10 NA [6,] 0.11 -0.01 -0.02 -0.23 0.08 NA [7,] 0.42 -0.13 -0.22 -0.15 -0.11 NA [8,] 0.36 0.03 -0.08 0.05 0.12 NA [9,] 0.82 0.20 0.12 0.03 0.04 NA [10,] 0.80 -0.30 -0.42 -0.20 -0.12 NA [11,] 0.48 -0.08 -0.13 -0.05 -0.02 NA [12,] 0.09 0.22 -0.11 0.05 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/1b5xj1258124874.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/2ht2g1258124874.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/3gqko1258124874.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/45esd1258124874.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,] 1.74 1.75 1.83 2.09 2.12 2.29 2.40 2.75 2.87 2.91 2.75 2.70 [2,] 2.75 2.72 2.71 2.76 2.68 2.78 2.86 2.82 2.92 2.95 2.79 2.77 [3,] 3.73 3.58 3.45 3.44 3.25 3.25 3.02 2.87 3.18 4.00 3.97 3.84 [4,] 5.04 4.82 4.77 4.79 4.58 4.59 4.57 4.35 4.27 4.39 4.80 4.82 [5,] 5.37 5.27 5.33 5.23 5.08 5.11 5.10 4.97 5.00 5.20 4.90 5.28 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.111892 2.096145 1.994409 2.005607 1.907465 1.971059 1.811718 1.788906 [2,] 5.348108 5.063855 4.905591 4.874393 4.592535 4.528941 4.228282 3.951094 [,9] [,10] [,11] [,12] [1,] 2.226093 2.982500 2.549739 2.391475 [2,] 4.133907 5.017500 5.390261 5.288525 $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(1.74, 2.75, 3.73, 5.04, 5.37, 1.75, 2.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qisr1258124874.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.22 -0.13 -0.10 -0.21 0.00 -0.02 -0.15 -0.08 0.03 -0.42 -0.13 -0.110 [2,] -0.15 -0.05 -0.01 -0.19 0.01 -0.02 -0.15 0.03 0.04 -0.30 -0.08 -0.030 [3,] -0.10 -0.01 0.02 -0.15 0.03 -0.01 -0.13 0.05 0.12 -0.20 -0.05 0.070 [4,] -0.03 0.06 0.05 -0.08 0.10 0.08 -0.11 0.12 0.20 -0.12 -0.02 0.155 [5,] 0.01 0.08 0.05 0.03 0.17 0.11 -0.11 0.12 0.20 -0.12 -0.02 0.220 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.18479170 -0.08772572 -0.02239585 -0.22772572 -0.03359377 -0.08065975 [2,] -0.01520830 0.06772572 0.06239585 -0.07227428 0.09359377 0.06065975 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1582639 -0.01359377 0.006944403 -0.32718755 -0.092395849 -0.07615 [2,] -0.1017361 0.11359377 0.233055597 -0.07281245 -0.007604151 0.21615 $out [1] 0.26 -0.23 0.42 -0.22 0.36 0.82 0.80 0.48 $group [1] 3 6 7 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.220000000000000, -0.15, -0.100000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ip2m1258124874.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,] 1.740 4.820 3.840 2.700 2.680 NA [2,] 1.960 4.985 4.310 2.895 2.735 NA [3,] 2.345 5.105 4.575 3.135 2.765 NA [4,] 3.590 5.250 4.780 3.445 2.825 NA [5,] 5.280 5.370 5.040 3.730 2.910 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.601546 4.984132 4.36063 2.884141 2.723950 NA [2,] 3.088454 5.225868 4.78937 3.385859 2.806050 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.74, 1.96, 2.345, 3.59, 5.28, 4.82, 4.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ooy01258124874.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,] 3.542 2.870 3.5850 [2,] 3.597 3.215 3.6500 [3,] 3.638 3.445 3.7275 [4,] 3.784 3.785 3.7850 [5,] 3.890 4.000 3.8950 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.552708 3.185019 3.665926 [2,] 3.723292 3.704981 3.789074 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.542, 3.597, 3.638, 3.784, 3.89, 2.87, 3.215, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1b5xj1258124874.ps tmp/1b5xj1258124874.png") > system("convert tmp/2ht2g1258124874.ps tmp/2ht2g1258124874.png") > system("convert tmp/3gqko1258124874.ps tmp/3gqko1258124874.png") > system("convert tmp/45esd1258124874.ps tmp/45esd1258124874.png") > system("convert tmp/5qisr1258124874.ps tmp/5qisr1258124874.png") > system("convert tmp/6ip2m1258124874.ps tmp/6ip2m1258124874.png") > system("convert tmp/7ooy01258124874.ps tmp/7ooy01258124874.png") > > > proc.time() user system elapsed 1.171 1.007 1.527