R version 2.8.0 (2008-10-20) 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(1.6891,1.7236,1.8072,1.7847,1.6813,1.6469,1.689,1.7169,1.8036,1.7955,1.7172,1.7348,1.7094,1.6963,1.6695,1.6537,1.6662,1.6793,1.7922,1.8045,1.7927,1.7831,1.7847,1.8076,1.8218,1.8112,1.795,1.7813,1.7866,1.7552,1.7184,1.7114,1.6967,1.6867,1.6337,1.6626,1.6374,1.626,1.637,1.6142,1.7033,1.7483,1.7135,1.7147,1.7396,1.7049,1.6867,1.7462,1.7147,1.667,1.6806,1.6738,1.6571,1.5875,1.6002,1.6144,1.6009,1.5937,1.603,1.5979) > 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.6891 1.7094 1.8218 1.6374 1.7147 NA [2,] 1.7236 1.6963 1.8112 1.6260 1.6670 NA [3,] 1.8072 1.6695 1.7950 1.6370 1.6806 NA [4,] 1.7847 1.6537 1.7813 1.6142 1.6738 NA [5,] 1.6813 1.6662 1.7866 1.7033 1.6571 NA [6,] 1.6469 1.6793 1.7552 1.7483 1.5875 NA [7,] 1.6890 1.7922 1.7184 1.7135 1.6002 NA [8,] 1.7169 1.8045 1.7114 1.7147 1.6144 NA [9,] 1.8036 1.7927 1.6967 1.7396 1.6009 NA [10,] 1.7955 1.7831 1.6867 1.7049 1.5937 NA [11,] 1.7172 1.7847 1.6337 1.6867 1.6030 NA [12,] 1.7348 1.8076 1.6626 1.7462 1.5979 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0345 -0.0131 -0.0106 -0.0114 -0.0477 NA [2,] 0.0836 -0.0268 -0.0162 0.0110 0.0136 NA [3,] -0.0225 -0.0158 -0.0137 -0.0228 -0.0068 NA [4,] -0.1034 0.0125 0.0053 0.0891 -0.0167 NA [5,] -0.0344 0.0131 -0.0314 0.0450 -0.0696 NA [6,] 0.0421 0.1129 -0.0368 -0.0348 0.0127 NA [7,] 0.0279 0.0123 -0.0070 0.0012 0.0142 NA [8,] 0.0867 -0.0118 -0.0147 0.0249 -0.0135 NA [9,] -0.0081 -0.0096 -0.0100 -0.0347 -0.0072 NA [10,] -0.0783 0.0016 -0.0530 -0.0182 0.0093 NA [11,] 0.0176 0.0229 0.0289 0.0595 -0.0051 NA [12,] -0.0254 0.0142 -0.0252 -0.0315 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/freestat/rcomp/tmp/1zbuy1257772365.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/freestat/rcomp/tmp/2d36x1257772365.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/freestat/rcomp/tmp/3t8ek1257772365.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/freestat/rcomp/tmp/47p8k1257772365.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,] 1.6891 1.6260 1.6370 1.6142 1.6571 1.5875 1.6890 1.7114 1.6009 1.5937 [2,] 1.6891 1.6670 1.6695 1.6537 1.6662 1.6469 1.6890 1.7114 1.6967 1.6867 [3,] 1.7094 1.6963 1.6806 1.6738 1.6813 1.6793 1.7135 1.7147 1.7396 1.7049 [4,] 1.7147 1.7236 1.7950 1.7813 1.7033 1.7483 1.7184 1.7169 1.7927 1.7831 [5,] 1.7147 1.7236 1.8072 1.7847 1.7033 1.7552 1.7184 1.7169 1.8036 1.7955 [,11] [,12] [1,] 1.6030 1.5979 [2,] 1.6337 1.6626 [3,] 1.6867 1.7348 [4,] 1.7172 1.7462 [5,] 1.7847 1.8076 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.691311 1.656307 1.591922 1.583638 1.655085 1.607651 1.692726 1.710814 [2,] 1.727489 1.736293 1.769278 1.763962 1.707515 1.750949 1.734274 1.718586 [,9] [,10] [,11] [,12] [1,] 1.671767 1.636784 1.627699 1.675728 [2,] 1.807433 1.773016 1.745701 1.793872 $out [1] 1.8218 1.6374 1.8112 1.7866 1.7922 1.6002 1.8045 1.6144 $group [1] 1 1 2 5 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.6891, 1.6891, 1.7094, 1.7147, 1.7147, 1.626, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5sq621257772365.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] [1,] -0.0131 -0.0268 -0.0228 -0.0167 -0.0696 -0.0368 -0.0070 -0.0147 -0.0100 [2,] -0.0131 -0.0162 -0.0225 -0.0167 -0.0344 -0.0348 0.0012 -0.0135 -0.0100 [3,] -0.0114 0.0110 -0.0158 0.0053 -0.0314 0.0127 0.0123 -0.0118 -0.0096 [4,] -0.0106 0.0136 -0.0137 0.0125 0.0131 0.0421 0.0142 0.0249 -0.0081 [5,] -0.0106 0.0136 -0.0068 0.0125 0.0450 0.1129 0.0279 0.0249 -0.0072 [,10] [,11] [,12] [1,] -0.0783 0.0176 -0.03150 [2,] -0.0530 0.0176 -0.02845 [3,] -0.0182 0.0229 -0.02530 [4,] 0.0016 0.0289 -0.00550 [5,] 0.0093 0.0289 0.01420 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.013166494 -0.01005660 -0.022018058 -0.01533265 -0.064963380 -0.04163735 [2,] -0.009633506 0.03205660 -0.009581942 0.02593265 0.002163380 0.06703735 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.003114233 -0.03893334 -0.010942535 -0.05678022 0.01491545 -0.0434305 [2,] 0.021485767 0.01533334 -0.008257465 0.02038022 0.03088455 -0.0071695 $out [1] 0.0345 -0.0477 0.0836 -0.1034 0.0891 0.0867 -0.0347 0.0595 -0.0051 $group [1] 1 1 2 4 4 8 9 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0131000000000001, -0.0131000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6ksx11257772365.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.64690 1.65370 1.6337 1.61420 1.58750 NA [2,] 1.68905 1.67440 1.6917 1.63720 1.59905 NA [3,] 1.72040 1.74625 1.7368 1.70410 1.60870 NA [4,] 1.79010 1.79245 1.7908 1.72715 1.67040 NA [5,] 1.80720 1.80760 1.8218 1.74830 1.71470 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.674310 1.692407 1.691600 1.663073 1.576157 NA [2,] 1.766490 1.800093 1.782000 1.745127 1.641243 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.6469, 1.68905, 1.7204, 1.7901, 1.8072, 1.6537, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7nuq11257772365.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,] 1.68344 1.67380 1.675450 [2,] 1.70022 1.68095 1.696450 [3,] 1.70732 1.70060 1.704050 [4,] 1.71363 1.71410 1.724875 [5,] 1.72670 1.73960 1.744700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.701204 1.68548 1.691085 [2,] 1.713436 1.71572 1.717015 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.68344, 1.70022, 1.70732, 1.71363, 1.7267, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zbuy1257772365.ps tmp/1zbuy1257772365.png") > system("convert tmp/2d36x1257772365.ps tmp/2d36x1257772365.png") > system("convert tmp/3t8ek1257772365.ps tmp/3t8ek1257772365.png") > system("convert tmp/47p8k1257772365.ps tmp/47p8k1257772365.png") > system("convert tmp/5sq621257772365.ps tmp/5sq621257772365.png") > system("convert tmp/6ksx11257772365.ps tmp/6ksx11257772365.png") > system("convert tmp/7nuq11257772365.ps tmp/7nuq11257772365.png") > > > proc.time() user system elapsed 1.927 1.514 2.335