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(104.37,104.89,105.15,105.72,106.38,106.40,106.47,106.59,106.76,107.35,107.81,108.03,109.08,109.86,110.29,110.34,110.59,110.64,110.83,111.51,113.32,115.89,116.51,117.44,118.25,118.65,118.52,119.07,119.12,119.28,119.30,119.44,119.57,119.93,120.03,119.66,119.46,119.48,119.56,119.43,119.57,119.59,119.50,119.54,119.56,119.61,119.64,119.60,119.71,119.72,119.66,119.76,119.80,119.88,119.78,120.08,120.22) > 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] 57 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 104.37 109.08 118.25 119.46 119.71 [2,] 104.89 109.86 118.65 119.48 119.72 [3,] 105.15 110.29 118.52 119.56 119.66 [4,] 105.72 110.34 119.07 119.43 119.76 [5,] 106.38 110.59 119.12 119.57 119.80 [6,] 106.40 110.64 119.28 119.59 119.88 [7,] 106.47 110.83 119.30 119.50 119.78 [8,] 106.59 111.51 119.44 119.54 120.08 [9,] 106.76 113.32 119.57 119.56 120.22 [10,] 107.35 115.89 119.93 119.61 NA [11,] 107.81 116.51 120.03 119.64 NA [12,] 108.03 117.44 119.66 119.60 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.52 0.78 0.40 0.02 0.01 [2,] 0.26 0.43 -0.13 0.08 -0.06 [3,] 0.57 0.05 0.55 -0.13 0.10 [4,] 0.66 0.25 0.05 0.14 0.04 [5,] 0.02 0.05 0.16 0.02 0.08 [6,] 0.07 0.19 0.02 -0.09 -0.10 [7,] 0.12 0.68 0.14 0.04 0.30 [8,] 0.17 1.81 0.13 0.02 0.14 [9,] 0.59 2.57 0.36 0.05 NA [10,] 0.46 0.62 0.10 0.03 NA [11,] 0.22 0.93 -0.37 -0.04 NA [12,] 1.05 0.81 -0.20 0.11 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/1zkyp1289560012.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/29bxa1289560012.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/39bxa1289560012.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/4kkxv1289560012.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,] 104.37 104.89 105.15 105.72 106.38 106.40 106.47 106.59 106.76 107.35 [2,] 109.08 109.86 110.29 110.34 110.59 110.64 110.83 111.51 113.32 111.62 [3,] 118.25 118.65 118.52 119.07 119.12 119.28 119.30 119.44 119.56 117.75 [4,] 119.46 119.48 119.56 119.43 119.57 119.59 119.50 119.54 119.57 119.77 [5,] 119.71 119.72 119.66 119.76 119.80 119.88 119.78 120.08 120.22 119.93 [,11] [,12] [1,] 107.810 108.030 [2,] 112.160 112.735 [3,] 118.075 118.520 [4,] 119.835 119.630 [5,] 120.030 119.660 $n [1] 5 5 5 5 5 5 5 5 5 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 110.9155 111.8525 111.9698 112.6470 112.7748 112.9560 113.1738 113.7660 [2,] 125.5845 125.4475 125.0702 125.4930 125.4652 125.6040 125.4262 125.1140 [,9] [,10] [,11] [,12] [1,] 115.1438 111.3115 112.0117 113.0729 [2,] 123.9762 124.1885 124.1383 123.9671 $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(104.37, 109.08, 118.25, 119.46, 119.71, 104.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kkxv1289560012.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.01 -0.13 -0.13 0.04 0.02 -0.10 0.04 0.13 0.050 0.030 -0.370 -0.200 [2,] 0.02 -0.06 0.05 0.05 0.02 -0.09 0.12 0.13 0.205 0.065 -0.205 -0.045 [3,] 0.40 0.08 0.10 0.14 0.05 0.02 0.14 0.14 0.475 0.280 0.090 0.460 [4,] 0.52 0.26 0.55 0.25 0.08 0.07 0.30 0.17 1.580 0.540 0.575 0.930 [5,] 0.78 0.43 0.57 0.25 0.16 0.19 0.30 0.17 2.570 0.620 0.930 1.050 $n [1] 5 5 5 5 5 5 5 5 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.04670126 -0.1461112 -0.2532987 -0.001319496 0.007604151 -0.0930556 [2,] 0.75329874 0.3061112 0.4532987 0.281319496 0.092395849 0.1330556 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01281245 0.1117361 -0.61125 -0.09525 -0.5262 -0.31025 [2,] 0.26718755 0.1682639 1.56125 0.65525 0.7062 1.23025 $out [1] 0.66 0.68 1.81 0.02 $group [1] 4 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0100000000000051, 0.0200000000000102, 0.400000000000006, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kkxv1289560012.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] [1,] 104.370 109.080 118.250 119.430 119.66 [2,] 105.435 110.315 118.860 119.490 119.72 [3,] 106.435 110.735 119.290 119.560 119.78 [4,] 107.055 114.605 119.615 119.595 119.88 [5,] 108.030 117.440 120.030 119.640 120.08 $n [1] 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [1,] 105.6961 108.7783 118.9456 119.5121 119.6957 [2,] 107.1739 112.6917 119.6344 119.6079 119.8643 $out [1] 120.22 $group [1] 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(104.37, 105.435, 106.435, 107.055, 108.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dcwg1289560012.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,] 114.1740 117.750 114.2700 [2,] 114.7500 118.385 114.9050 [3,] 115.1670 118.860 115.1400 [4,] 115.7905 119.290 116.5837 [5,] 116.1825 119.560 117.3512 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 114.6924 118.4472 114.3743 [2,] 115.6416 119.2728 115.9057 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(114.174, 114.75, 115.167, 115.7905, 116.1825, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zkyp1289560012.ps tmp/1zkyp1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/29bxa1289560012.ps tmp/29bxa1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/39bxa1289560012.ps tmp/39bxa1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/4kkxv1289560012.ps tmp/4kkxv1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/5kkxv1289560012.ps tmp/5kkxv1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/6kkxv1289560012.ps tmp/6kkxv1289560012.png",intern=TRUE)) character(0) > try(system("convert tmp/7dcwg1289560012.ps tmp/7dcwg1289560012.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.196 0.940 1.537