R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(16.46,16.49,16.59,16.58,16.60,16.55,16.57,16.51,16.50,16.49,16.44,16.26,16.33,16.72,16.75,16.74,16.84,16.79,16.66,16.69,16.84,16.86,16.76,16.72,16.29,16.29,16.46,16.54,16.70,16.82,16.88,16.89,16.92,16.88,16.91,16.80,16.78,17.03,17.18,17.12,17.11,17.14,17.17,17.21,17.22,17.19,17.15,17.10,17.21,17.33,17.30,17.33,17.35,17.43,17.46,17.50,17.54,17.56,17.44,17.41,17.72,17.79,17.83,17.76,17.95,17.91,17.96,17.98,17.89,17.88,17.91,17.51,17.63) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 16.46 16.33 16.29 16.78 17.21 17.72 17.63 [2,] 16.49 16.72 16.29 17.03 17.33 17.79 NA [3,] 16.59 16.75 16.46 17.18 17.30 17.83 NA [4,] 16.58 16.74 16.54 17.12 17.33 17.76 NA [5,] 16.60 16.84 16.70 17.11 17.35 17.95 NA [6,] 16.55 16.79 16.82 17.14 17.43 17.91 NA [7,] 16.57 16.66 16.88 17.17 17.46 17.96 NA [8,] 16.51 16.69 16.89 17.21 17.50 17.98 NA [9,] 16.50 16.84 16.92 17.22 17.54 17.89 NA [10,] 16.49 16.86 16.88 17.19 17.56 17.88 NA [11,] 16.44 16.76 16.91 17.15 17.44 17.91 NA [12,] 16.26 16.72 16.80 17.10 17.41 17.51 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.03 0.39 0.00 0.25 0.12 0.07 NA [2,] 0.10 0.03 0.17 0.15 -0.03 0.04 NA [3,] -0.01 -0.01 0.08 -0.06 0.03 -0.07 NA [4,] 0.02 0.10 0.16 -0.01 0.02 0.19 NA [5,] -0.05 -0.05 0.12 0.03 0.08 -0.04 NA [6,] 0.02 -0.13 0.06 0.03 0.03 0.05 NA [7,] -0.06 0.03 0.01 0.04 0.04 0.02 NA [8,] -0.01 0.15 0.03 0.01 0.04 -0.09 NA [9,] -0.01 0.02 -0.04 -0.03 0.02 -0.01 NA [10,] -0.05 -0.10 0.03 -0.04 -0.12 0.03 NA [11,] -0.18 -0.04 -0.11 -0.05 -0.03 -0.40 NA [12,] 0.07 -0.43 -0.02 0.11 0.31 0.12 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/1klze1292858143.ps",horizontal=F,onefile=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/2klze1292858143.ps",horizontal=F,onefile=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/3klze1292858143.ps",horizontal=F,onefile=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/4ddzh1292858143.ps",horizontal=F,onefile=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,] 16.290 16.290 16.460 16.54 16.600 16.55 16.570 16.51 16.50 16.490 16.44 [2,] 16.395 16.490 16.590 16.58 16.700 16.79 16.660 16.69 16.84 16.860 16.76 [3,] 16.780 16.875 16.965 16.93 16.975 16.98 17.025 17.05 17.07 17.035 17.03 [4,] 17.420 17.330 17.300 17.33 17.350 17.43 17.460 17.50 17.54 17.560 17.44 [5,] 17.720 17.790 17.830 17.76 17.950 17.91 17.960 17.98 17.89 17.880 17.91 [,12] [1,] 16.26 [2,] 16.72 [3,] 16.95 [4,] 17.41 [5,] 17.51 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16.16789 16.33317 16.50703 16.44623 16.55573 16.56718 16.50897 16.52752 [2,] 17.39211 17.41683 17.42297 17.41377 17.39427 17.39282 17.54103 17.57248 [,9] [,10] [,11] [,12] [1,] 16.61848 16.58348 16.59138 16.50493 [2,] 17.52152 17.48652 17.46862 17.39507 $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(16.29, 16.395, 16.78, 17.42, 17.72, 16.29, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5ddzh1292858143.ps",horizontal=F,onefile=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.000 -0.03 -0.07 -0.01 -0.050 0.02 0.010 -0.01 -0.04 -0.120 -0.18 -0.02 [2,] 0.030 0.03 -0.06 0.02 -0.050 0.02 0.010 -0.01 -0.03 -0.100 -0.18 -0.02 [3,] 0.095 0.07 -0.01 0.06 -0.005 0.03 0.025 0.02 -0.01 -0.045 -0.08 0.09 [4,] 0.250 0.15 0.03 0.16 0.080 0.05 0.040 0.04 0.02 0.030 -0.04 0.12 [5,] 0.390 0.17 0.08 0.19 0.120 0.06 0.040 0.04 0.02 0.030 -0.03 0.31 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.04690711 -0.007403876 -0.06805291 -0.03030452 -0.0888542 0.01064903 [2,] 0.23690711 0.147403876 0.04805291 0.15030452 0.0788542 0.04935097 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.005649031 -0.01225161 -0.04225161 -0.1288542 -0.17030452 -0.0003045219 [2,] 0.044350969 0.05225161 0.02225161 0.0388542 0.01030452 0.1803045219 $out [1] -0.13 -0.06 0.15 -0.09 -0.40 -0.43 $group [1] 6 7 8 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, 0.0299999999999976, 0.0949999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6omyj1292858143.ps",horizontal=F,onefile=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,] 16.440 16.660 16.290 17.030 17.21 17.720 17.63 [2,] 16.475 16.705 16.500 17.105 17.33 17.775 17.63 [3,] 16.505 16.745 16.810 17.145 17.42 17.885 17.63 [4,] 16.575 16.815 16.885 17.185 17.48 17.930 17.63 [5,] 16.600 16.860 16.920 17.220 17.56 17.980 17.63 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 16.45939 16.69483 16.6344 17.10851 17.35158 17.81430 17.63 [2,] 16.55061 16.79517 16.9856 17.18149 17.48842 17.95570 17.63 $out [1] 16.26 16.33 16.78 17.51 $group [1] 1 2 4 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(16.44, 16.475, 16.505, 16.575, 16.6, 16.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7omyj1292858143.ps",horizontal=F,onefile=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,] 16.91714 16.8750 16.90125 [2,] 16.98917 16.9400 16.94937 [3,] 17.09667 16.9775 17.04375 [4,] 17.12333 17.0325 17.08313 [5,] 17.15167 17.0700 17.16625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17.03547 16.93531 16.98275 [2,] 17.15786 17.01969 17.10475 $out [1] 16.78 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.9171428571429, 16.9891666666667, 17.0966666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1klze1292858143.ps tmp/1klze1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/2klze1292858143.ps tmp/2klze1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/3klze1292858143.ps tmp/3klze1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/4ddzh1292858143.ps tmp/4ddzh1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/5ddzh1292858143.ps tmp/5ddzh1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/6omyj1292858143.ps tmp/6omyj1292858143.png",intern=TRUE)) character(0) > try(system("convert tmp/7omyj1292858143.ps tmp/7omyj1292858143.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.630 1.120 2.759