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(44.13,44.13,44.14,44.14,44.14,44.14,44.15,44.17,44.19,44.26,44.27,44.29,44.29,44.29,44.29,44.32,44.33,44.34,44.34,44.34,44.37,44.47,44.51,44.51,44.51,44.52,44.7,44.84,44.9,44.91,44.94,44.94,44.95,45.28,45.34,45.34,45.34,45.36,45.44,45.62,45.75,45.77,45.77,45.77,46.09,46.25,46.28,46.29,46.29,46.29,46.3,46.34,46.34,46.35,46.42,46.52,46.59,46.66,46.67,46.72,46.72,46.72,46.76,46.89,47.02,47.02,47.04,47.18,47.22,47.8,47.88,47.91) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 44.13 44.29 44.51 45.34 46.29 46.72 NA [2,] 44.13 44.29 44.52 45.36 46.29 46.72 NA [3,] 44.14 44.29 44.70 45.44 46.30 46.76 NA [4,] 44.14 44.32 44.84 45.62 46.34 46.89 NA [5,] 44.14 44.33 44.90 45.75 46.34 47.02 NA [6,] 44.14 44.34 44.91 45.77 46.35 47.02 NA [7,] 44.15 44.34 44.94 45.77 46.42 47.04 NA [8,] 44.17 44.34 44.94 45.77 46.52 47.18 NA [9,] 44.19 44.37 44.95 46.09 46.59 47.22 NA [10,] 44.26 44.47 45.28 46.25 46.66 47.80 NA [11,] 44.27 44.51 45.34 46.28 46.67 47.88 NA [12,] 44.29 44.51 45.34 46.29 46.72 47.91 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.01 0.02 0.00 0.00 NA [2,] 0.01 0.00 0.18 0.08 0.01 0.04 NA [3,] 0.00 0.03 0.14 0.18 0.04 0.13 NA [4,] 0.00 0.01 0.06 0.13 0.00 0.13 NA [5,] 0.00 0.01 0.01 0.02 0.01 0.00 NA [6,] 0.01 0.00 0.03 0.00 0.07 0.02 NA [7,] 0.02 0.00 0.00 0.00 0.10 0.14 NA [8,] 0.02 0.03 0.01 0.32 0.07 0.04 NA [9,] 0.07 0.10 0.33 0.16 0.07 0.58 NA [10,] 0.01 0.04 0.06 0.03 0.01 0.08 NA [11,] 0.02 0.00 0.00 0.01 0.05 0.03 NA [12,] 0.00 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/1uabs1209309568.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/2dbg81209309568.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/3060g1209309568.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/47v7u1209309568.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] [1,] 44.130 44.13 44.14 44.14 44.140 44.14 44.150 44.170 44.19 44.260 44.27 [2,] 44.290 44.29 44.29 44.32 44.330 44.34 44.340 44.340 44.37 44.470 44.51 [3,] 44.925 44.94 45.07 45.23 45.325 45.34 45.355 45.355 45.52 45.765 45.81 [4,] 46.290 46.29 46.30 46.34 46.340 46.35 46.420 46.520 46.59 46.660 46.67 [5,] 46.720 46.72 46.76 46.89 47.020 47.02 47.040 47.180 47.22 47.800 47.88 [,12] [1,] 44.290 [2,] 44.510 [3,] 45.815 [4,] 46.720 [5,] 47.910 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 43.63494 43.64994 43.77349 43.92703 44.02849 44.04349 44.01333 43.94883 [2,] 46.21506 46.23006 46.36651 46.53297 46.62151 46.63651 46.69667 46.76117 [,9] [,10] [,11] [,12] [1,] 44.08803 44.35238 44.41673 44.38948 [2,] 46.95197 47.17762 47.20327 47.24052 $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(44.13, 44.29, 44.925, 46.29, 46.72, 44.13, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59ce01209309568.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.000 0.000 0.000 0.00 0.000 0.00 0.010 0.07 0.010 0.000 0 [2,] 0.00 0.010 0.030 0.000 0.00 0.000 0.00 0.020 0.07 0.010 0.000 0 [3,] 0.00 0.025 0.085 0.035 0.01 0.015 0.01 0.035 0.13 0.035 0.015 0 [4,] 0.01 0.080 0.140 0.130 0.01 0.030 0.10 0.070 0.33 0.060 0.030 0 [5,] 0.02 0.180 0.180 0.130 0.02 0.070 0.14 0.070 0.58 0.080 0.050 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.006450323 -0.02015226 0.01404645 -0.0488542 0.003549677 -0.004350969 [2,] 0.006450323 0.07015226 0.15595355 0.1188542 0.016450323 0.034350969 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.05450323 0.002748385 -0.0377084 0.002748385 -0.004350969 0 [2,] 0.07450323 0.067251615 0.2977084 0.067251615 0.034350969 0 $out [1] 0.32 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.0100000000000051, 0.019999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zovs1209309568.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] [,7] [1,] 44.130 44.290 44.510 45.34 46.290 46.720 NA [2,] 44.140 44.305 44.770 45.53 46.320 46.825 NA [3,] 44.145 44.340 44.925 45.77 46.385 47.030 NA [4,] 44.225 44.420 45.115 46.17 46.625 47.510 NA [5,] 44.290 44.510 45.340 46.29 46.720 47.910 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 44.10623 44.28755 44.76764 45.47809 46.24589 46.71757 NA [2,] 44.18377 44.39245 45.08236 46.06191 46.52411 47.34243 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(44.13, 44.14, 44.145, 44.225, 44.29, 44.29, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7vma21209309568.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,] 45.21333 44.9250 45.19875 [2,] 45.31500 45.1500 45.27188 [3,] 45.43250 45.3475 45.35875 [4,] 45.67750 45.6425 45.55250 [5,] 45.84333 45.8150 45.66500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 45.26716 45.12287 45.23076 [2,] 45.59784 45.57213 45.48674 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(45.2133333333333, 45.315, 45.4325, 45.6775, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uabs1209309568.ps tmp/1uabs1209309568.png") > system("convert tmp/2dbg81209309568.ps tmp/2dbg81209309568.png") > system("convert tmp/3060g1209309568.ps tmp/3060g1209309568.png") > system("convert tmp/47v7u1209309568.ps tmp/47v7u1209309568.png") > system("convert tmp/59ce01209309568.ps tmp/59ce01209309568.png") > system("convert tmp/6zovs1209309568.ps tmp/6zovs1209309568.png") > system("convert tmp/7vma21209309568.ps tmp/7vma21209309568.png") > > > proc.time() user system elapsed 1.457 0.972 1.709