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.14,104.75,104.75,105.15,105.20,105.77,105.78,106.26,106.13,106.12,106.57,106.44,106.54,107.10,108.10,108.40,108.84,109.62,110.42,110.67,111.66,112.28,112.87,112.18,112.36,112.16,111.49,111.25,111.36,111.74,111.10,111.33,111.25,111.04,110.97,111.31,111.02,111.07,111.36,111.54,112.05,112.52,112.94,113.33,113.78,113.77,113.82,113.89,114.25) > 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] 49 > (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 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 104.14 106.54 112.36 111.02 114.25 [2,] 104.75 107.10 112.16 111.07 NA [3,] 104.75 108.10 111.49 111.36 NA [4,] 105.15 108.40 111.25 111.54 NA [5,] 105.20 108.84 111.36 112.05 NA [6,] 105.77 109.62 111.74 112.52 NA [7,] 105.78 110.42 111.10 112.94 NA [8,] 106.26 110.67 111.33 113.33 NA [9,] 106.13 111.66 111.25 113.78 NA [10,] 106.12 112.28 111.04 113.77 NA [11,] 106.57 112.87 110.97 113.82 NA [12,] 106.44 112.18 111.31 113.89 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.61 0.56 -0.20 0.05 NA [2,] 0.00 1.00 -0.67 0.29 NA [3,] 0.40 0.30 -0.24 0.18 NA [4,] 0.05 0.44 0.11 0.51 NA [5,] 0.57 0.78 0.38 0.47 NA [6,] 0.01 0.80 -0.64 0.42 NA [7,] 0.48 0.25 0.23 0.39 NA [8,] -0.13 0.99 -0.08 0.45 NA [9,] -0.01 0.62 -0.21 -0.01 NA [10,] 0.45 0.59 -0.07 0.05 NA [11,] -0.13 -0.69 0.34 0.07 NA [12,] 0.10 0.18 -0.29 0.36 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/1fcwv1289835360.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/2fcwv1289835360.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/3fcwv1289835360.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/48ldy1289835360.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] [1,] 104.14 104.750 104.750 105.150 105.200 105.770 105.78 106.260 106.130 [2,] 106.54 105.925 106.425 106.775 107.020 107.695 108.10 108.465 108.690 [3,] 111.02 109.085 109.730 109.825 110.100 110.680 110.76 111.000 111.455 [4,] 112.36 111.615 111.425 111.395 111.705 112.130 112.02 112.330 112.720 [5,] 114.25 112.160 111.490 111.540 112.050 112.520 112.94 113.330 113.780 [,10] [,11] [,12] [1,] 106.120 106.570 106.440 [2,] 108.580 108.770 108.875 [3,] 111.660 111.920 111.745 [4,] 113.025 113.345 113.035 [5,] 113.770 113.820 113.890 $n [1] 5 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.9076 104.5899 105.78 106.1752 106.3989 107.1763 107.6632 107.9467 [2,] 115.1324 113.5801 113.68 113.4748 113.8011 114.1837 113.8568 114.0533 [,9] [,10] [,11] [,12] [1,] 108.2713 108.1484 108.3058 108.4586 [2,] 114.6387 115.1715 115.5343 115.0314 $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.14, 106.54, 111.02, 112.36, 114.25, 104.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58ldy1289835360.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] [1,] -0.200 -0.670 -0.24 0.050 0.380 -0.640 0.230 -0.130 -0.210 -0.07 -0.690 [2,] -0.075 -0.335 -0.03 0.080 0.425 -0.315 0.240 -0.105 -0.110 -0.01 -0.410 [3,] 0.305 0.145 0.24 0.275 0.520 0.215 0.320 0.185 -0.010 0.25 -0.030 [4,] 0.585 0.645 0.35 0.475 0.675 0.610 0.435 0.720 0.305 0.52 0.205 [5,] 0.610 1.000 0.40 0.510 0.780 0.800 0.480 0.990 0.620 0.59 0.340 [,12] [1,] -0.290 [2,] -0.095 [3,] 0.140 [4,] 0.270 [5,] 0.360 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.2164 -0.6292 -0.0602 -0.03705 0.3225 -0.51575 0.16595 -0.46675 -0.33785 [2,] 0.8264 0.9192 0.5402 0.58705 0.7175 0.94575 0.47405 0.83675 0.31785 [,10] [,11] [,12] [1,] -0.1687 -0.51585 -0.14835 [2,] 0.6687 0.45585 0.42835 $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(-0.200000000000003, -0.0750000000000028, 0.304999999999993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60uc11289835360.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.140 106.54 110.970 111.020 114.25 [2,] 104.950 108.25 111.175 111.450 114.25 [3,] 105.775 110.02 111.320 112.730 114.25 [4,] 106.195 111.92 111.615 113.775 114.25 [5,] 106.570 112.87 112.160 113.890 114.25 $n [1] 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [1,] 105.2071 108.3461 111.1193 111.6696 114.25 [2,] 106.3429 111.6939 111.5207 113.7904 114.25 $out [1] 112.36 $group [1] 3 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(104.14, 104.95, 105.775, 106.195, 106.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70uc11289835360.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,] 108.7700 109.0850 108.9275 [2,] 109.2237 109.9625 109.4525 [3,] 109.9862 110.8800 110.3531 [4,] 110.7537 111.5575 111.1556 [5,] 111.0575 111.9200 111.4887 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.2884 110.1525 109.5763 [2,] 110.6841 111.6075 111.1299 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(108.77, 109.22375, 109.98625, 110.75375, 111.0575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1fcwv1289835360.ps tmp/1fcwv1289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/2fcwv1289835360.ps tmp/2fcwv1289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/3fcwv1289835360.ps tmp/3fcwv1289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/48ldy1289835360.ps tmp/48ldy1289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/58ldy1289835360.ps tmp/58ldy1289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/60uc11289835360.ps tmp/60uc11289835360.png",intern=TRUE)) character(0) > try(system("convert tmp/70uc11289835360.ps tmp/70uc11289835360.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.206 0.956 1.560