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,1.842600513,1.923866553,2.298545766,3.728828058,4.603934987,3.814371257,5.473053892,3.931565441,2.586826347,1.614200171,1.770744226,1.155688623,1.897348161,2.105218135,2.590248075,4.092386655,4.255774166,3.940975192,5.345594525,4.113772455,2.700598802,1.633875107,1.905902481,1.363558597,2.110350727,1.900769889,3.085543199,4.007698888,4.24465355,4.935842601,4.687767322,4.277159966,2.761334474,1.704875962,1.9572284,1.351582549,1.805816938,1.875106929,3.080410607,3.990590248,4.171086399,4.972626176,4.78100941,4.560307956,2.630453379,1.71257485,1.972626176,1.289136014,1.70402053,2.127459367,2.985457656,3.975192472,4.78528657,4.799828914,4.951240376,5.307100086,2.577416595,1.651839179,2.180496151) > 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.000000 1.155689 1.363559 1.351583 1.289136 NA [2,] 1.842601 1.897348 2.110351 1.805817 1.704021 NA [3,] 1.923867 2.105218 1.900770 1.875107 2.127459 NA [4,] 2.298546 2.590248 3.085543 3.080411 2.985458 NA [5,] 3.728828 4.092387 4.007699 3.990590 3.975192 NA [6,] 4.603935 4.255774 4.244654 4.171086 4.785287 NA [7,] 3.814371 3.940975 4.935843 4.972626 4.799829 NA [8,] 5.473054 5.345595 4.687767 4.781009 4.951240 NA [9,] 3.931565 4.113772 4.277160 4.560308 5.307100 NA [10,] 2.586826 2.700599 2.761334 2.630453 2.577417 NA [11,] 1.614200 1.633875 1.704876 1.712575 1.651839 NA [12,] 1.770744 1.905902 1.957228 1.972626 2.180496 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.84260051 0.7416595 0.7467921 0.45423439 0.41488452 NA [2,] 0.08126604 0.2078700 -0.2095808 0.06928999 0.42343884 NA [3,] 0.37467921 0.4850299 1.1847733 1.20530368 0.85799829 NA [4,] 1.43028229 1.5021386 0.9221557 0.91017964 0.98973482 NA [5,] 0.87510693 0.1633875 0.2369547 0.18049615 0.81009410 NA [6,] -0.78956373 -0.3147990 0.6911891 0.80153978 0.01454234 NA [7,] 1.65868264 1.4046193 -0.2480753 -0.19161677 0.15141146 NA [8,] -1.54148845 -1.2318221 -0.4106074 -0.22070145 0.35585971 NA [9,] -1.34473909 -1.4131737 -1.5158255 -1.92985458 -2.72968349 NA [10,] -0.97262618 -1.0667237 -1.0564585 -0.91787853 -0.92557742 NA [11,] 0.15654405 0.2720274 0.2523524 0.26005133 0.52865697 NA [12,] -0.61505560 -0.5423439 -0.6056459 -0.68349016 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/1yny81258728805.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/2x8651258728805.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/33et21258728805.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/4wydm1258728805.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] [1,] 1.000000 1.704021 1.875107 2.298546 3.975192 4.171086 3.814371 4.687767 [2,] 1.155689 1.805817 1.900770 2.590248 3.975192 4.244654 3.940975 4.781009 [3,] 1.289136 1.842601 1.923867 2.985458 3.990590 4.255774 4.799829 4.951240 [4,] 1.351583 1.897348 2.105218 3.080411 4.007699 4.603935 4.935843 5.345595 [5,] 1.363559 1.897348 2.127459 3.085543 4.007699 4.785287 4.972626 5.473054 [,9] [,10] [,11] [,12] [1,] 3.931565 2.577417 1.614200 1.905902 [2,] 4.113772 2.586826 1.633875 1.905902 [3,] 4.277160 2.630453 1.651839 1.957228 [4,] 4.560308 2.700599 1.704876 1.972626 [5,] 4.560308 2.761334 1.712575 1.972626 $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.150718 1.777925 1.779404 2.639110 3.967621 4.001907 4.096858 4.552306 [2,] 1.427554 1.907276 2.068329 3.331805 4.013559 4.509642 5.502800 5.350175 [,9] [,10] [,11] [,12] [1,] 3.961639 2.550062 1.601670 1.910082 [2,] 4.592681 2.710845 1.702008 2.004375 $out [1] 2.110351 3.728828 4.092387 5.307100 1.770744 2.180496 $group [1] 2 5 5 9 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1, 1.155688623, 1.289136014, 1.351582549, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kla51258728805.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] [1,] 0.4148845 0.06928999 0.3746792 0.9101796 0.1633875 -0.78956373 -0.2480753 [2,] 0.4542344 0.06928999 0.4850299 0.9221557 0.1804962 -0.31479897 -0.1916168 [3,] 0.7416595 0.08126604 0.8579983 0.9897348 0.2369547 0.01454234 0.1514115 [4,] 0.7467921 0.20786997 1.1847733 1.4302823 0.8100941 0.69118905 1.4046193 [5,] 0.8426005 0.20786997 1.2053037 1.5021386 0.8751069 0.80153978 1.6586826 [,8] [,9] [,10] [,11] [,12] [1,] -1.5414885 -1.929855 -1.0667237 0.2523524 -0.6834902 [2,] -1.2318221 -1.929855 -1.0564585 0.2523524 -0.6492729 [3,] -0.4106074 -1.515825 -0.9726262 0.2600513 -0.6103507 [4,] -0.2207015 -1.413174 -0.9255774 0.2720274 -0.5739949 [5,] 0.3558597 -1.344739 -0.9178785 0.2720274 -0.5423439 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5349390 -0.01665423 0.3635614 0.6306938 -0.2079177 -0.6962863 -0.976485 [2,] 0.9483801 0.17918631 1.3524352 1.3487758 0.6818270 0.7253709 1.279308 [,8] [,9] [,10] [,11] [,12] [1,] -1.1250626 -1.880911 -1.065106 0.2461491 -0.6698204 [2,] 0.3038479 -1.150740 -0.880146 0.2739536 -0.5508811 $out [1] -0.2095808 0.4234388 -2.7296835 0.1565441 0.5286570 $group [1] 2 2 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.414884516, 0.454234389, 0.741659538, 0.74679213, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6pclf1258728805.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.000000 1.155689 1.363559 1.351583 1.289136 NA [2,] 1.806672 1.901625 1.928999 1.840462 1.915740 NA [3,] 2.442686 2.645423 2.923439 2.855432 2.781437 NA [4,] 3.872968 4.103080 4.260907 4.365697 4.792558 NA [5,] 5.473054 5.345595 4.935843 4.972626 5.307100 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.500235 1.641325 1.859840 1.703655 1.469301 NA [2,] 3.385138 3.649521 3.987038 4.007209 4.093573 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1, 1.8066723695, 2.4426860565, 3.872968349, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7223z1258728805.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.231993 1.289136 1.253636 [2,] 1.914713 1.883234 1.895423 [3,] 2.729683 2.807956 2.739521 [4,] 4.425064 4.266467 4.380667 [5,] 5.047733 4.951240 5.063302 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.584696 1.720947 1.605985 [2,] 3.874671 3.894964 3.873057 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.2319931566, 1.9147134303, 2.72968349, 4.4250641576, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yny81258728805.ps tmp/1yny81258728805.png") > system("convert tmp/2x8651258728805.ps tmp/2x8651258728805.png") > system("convert tmp/33et21258728805.ps tmp/33et21258728805.png") > system("convert tmp/4wydm1258728805.ps tmp/4wydm1258728805.png") > system("convert tmp/5kla51258728805.ps tmp/5kla51258728805.png") > system("convert tmp/6pclf1258728805.ps tmp/6pclf1258728805.png") > system("convert tmp/7223z1258728805.ps tmp/7223z1258728805.png") > > > proc.time() user system elapsed 1.214 0.965 1.552