R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(105.23,105.22,105.13,105,105.01,105.01,105.01,105.01,105.57,106.05,106.09,106.2,106.19,106.2,106.09,106.23,106.23,106.22,106.22,106.61,106.95,107.74,107.8,107.8,107.2,107.56,107.72,108.14,108.16,108.16,108.16,108.1,108.95,110.49,110.72,110.82,110.82,110.75,110.71,110.86,110.84,110.84,110.84,110.92,111.46,112.46,113.04,113.15,113.15,113.21,113.37,113.47,113.71,113.71,113.71,113.8,115.46,117,117.94,118.08,118.08,118.47,118.49,118.45,118.54,118.55,118.55,118.55,119.04,121.37,122,122.14) > 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,] 105.23 106.19 107.20 110.82 113.15 118.08 NA [2,] 105.22 106.20 107.56 110.75 113.21 118.47 NA [3,] 105.13 106.09 107.72 110.71 113.37 118.49 NA [4,] 105.00 106.23 108.14 110.86 113.47 118.45 NA [5,] 105.01 106.23 108.16 110.84 113.71 118.54 NA [6,] 105.01 106.22 108.16 110.84 113.71 118.55 NA [7,] 105.01 106.22 108.16 110.84 113.71 118.55 NA [8,] 105.01 106.61 108.10 110.92 113.80 118.55 NA [9,] 105.57 106.95 108.95 111.46 115.46 119.04 NA [10,] 106.05 107.74 110.49 112.46 117.00 121.37 NA [11,] 106.09 107.80 110.72 113.04 117.94 122.00 NA [12,] 106.20 107.80 110.82 113.15 118.08 122.14 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.01 0.01 0.36 -0.07 0.06 0.39 NA [2,] -0.09 -0.11 0.16 -0.04 0.16 0.02 NA [3,] -0.13 0.14 0.42 0.15 0.10 -0.04 NA [4,] 0.01 0.00 0.02 -0.02 0.24 0.09 NA [5,] 0.00 -0.01 0.00 0.00 0.00 0.01 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.39 -0.06 0.08 0.09 0.00 NA [8,] 0.56 0.34 0.85 0.54 1.66 0.49 NA [9,] 0.48 0.79 1.54 1.00 1.54 2.33 NA [10,] 0.04 0.06 0.23 0.58 0.94 0.63 NA [11,] 0.11 0.00 0.10 0.11 0.14 0.14 NA [12,] -0.01 -0.60 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/rcomp/tmp/1ok651287920549.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/rcomp/tmp/2ok651287920549.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/rcomp/tmp/3ok651287920549.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/rcomp/tmp/4hb6q1287920549.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,] 105.23 105.220 105.130 105.00 105.01 105.01 105.01 105.01 105.570 106.050 [2,] 106.19 106.200 106.090 106.23 106.23 106.22 106.22 106.61 106.950 107.740 [3,] 109.01 109.155 109.215 109.50 109.50 109.50 109.50 109.51 110.205 111.475 [4,] 113.15 113.210 113.370 113.47 113.71 113.71 113.71 113.80 115.460 117.000 [5,] 118.08 118.470 118.490 118.45 118.54 118.55 118.55 118.55 119.040 121.370 [,11] [,12] [1,] 106.09 106.200 [2,] 107.80 107.800 [3,] 111.88 111.985 [4,] 117.94 118.080 [5,] 122.00 122.140 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.5206 104.6333 104.5192 104.8300 104.6752 104.6687 104.6687 104.8722 [2,] 113.4994 113.6767 113.9108 114.1700 114.3248 114.3313 114.3313 114.1478 [,9] [,10] [,11] [,12] [1,] 104.7158 105.502 105.3394 105.3541 [2,] 115.6942 117.448 118.4206 118.6159 $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(105.23, 106.19, 109.01, 113.15, 118.08, 105.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5hb6q1287920549.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.070 -0.11 -0.13 -0.020 0 0 -0.06 0.34 0.48 0.040 0.10 -0.01 [2,] -0.010 -0.09 -0.04 0.000 0 0 0.00 0.49 0.79 0.060 0.10 -0.01 [3,] 0.035 -0.01 0.12 0.015 0 0 0.04 0.55 1.27 0.405 0.11 0.00 [4,] 0.360 0.16 0.15 0.090 0 0 0.09 0.85 1.54 0.630 0.14 0.00 [5,] 0.390 0.16 0.42 0.090 0 0 0.09 0.85 2.33 0.940 0.14 0.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.2036620 -0.1712581 -0.002556137 -0.04305291 0 0 -0.01805291 [2,] 0.2736620 0.1512581 0.242556137 0.07305291 0 0 0.09805291 [,8] [,9] [,10] [,11] [,12] [1,] 0.3177884 0.7862258 0.03733159 0.0841987 -0.007065975 [2,] 0.7822116 1.7537742 0.77266841 0.1358013 0.007065975 $out [1] 0.24 -0.01 0.01 0.39 1.66 0.00 -0.60 $group [1] 4 5 5 7 8 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0699999999999932, -0.0100000000000051, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/692nt1287920549.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,] 105.000 106.090 107.20 110.71 113.15 118.080 NA [2,] 105.010 106.210 107.91 110.83 113.42 118.480 NA [3,] 105.175 106.230 108.16 110.85 113.71 118.550 NA [4,] 105.810 107.345 109.72 111.96 116.23 120.205 NA [5,] 106.200 107.800 110.82 113.15 118.08 122.140 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 104.8101 105.7123 107.3344 110.3346 112.4283 117.7632 NA [2,] 105.5399 106.7477 108.9856 111.3654 114.9917 119.3368 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(105, 105.01, 105.175, 105.81, 106.2, 106.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/792nt1287920549.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,] 110.1117 109.0100 109.5050 [2,] 110.3050 109.3575 109.6819 [3,] 110.4150 109.5000 109.8506 [4,] 111.8783 110.8400 111.5506 [5,] 113.0317 111.9850 112.7012 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.6974 108.8238 108.9983 [2,] 111.1326 110.1762 110.7030 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(110.111666666667, 110.305, 110.415, 111.878333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ok651287920549.ps tmp/1ok651287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/2ok651287920549.ps tmp/2ok651287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/3ok651287920549.ps tmp/3ok651287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/4hb6q1287920549.ps tmp/4hb6q1287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/5hb6q1287920549.ps tmp/5hb6q1287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/692nt1287920549.ps tmp/692nt1287920549.png",intern=TRUE)) character(0) > try(system("convert tmp/792nt1287920549.ps tmp/792nt1287920549.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.04 1.30 3.31