R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(100.17,102.01,100.3,99.94,100.16,100.18,99.98,100.04,100.05,100.11,100.11,101.03,100.84,102.68,101.27,100.28,100.82,100.87,101.23,101.09,101.22,101.33,101.3,102.39,101.69,103.75,102.99,100.8,102.21,102.45,102.49,102.4,102.99,103.19,103.35,104.44,103.42,105.81,104.25,103.78,104.53,105.01,104.83,104.55,105.16,105.06,105.2,105.87,105.41,107.89,106.06,105.5,106.71,106.34,106.11,106.15,106.61,106.63,106.27,105.59,107.09,108.53,108.01,106.52,107.27,107.58,107.36,107.23,107.54,107.64,108.23,108.42) > 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,] 100.17 100.84 101.69 103.42 105.41 107.09 NA [2,] 102.01 102.68 103.75 105.81 107.89 108.53 NA [3,] 100.30 101.27 102.99 104.25 106.06 108.01 NA [4,] 99.94 100.28 100.80 103.78 105.50 106.52 NA [5,] 100.16 100.82 102.21 104.53 106.71 107.27 NA [6,] 100.18 100.87 102.45 105.01 106.34 107.58 NA [7,] 99.98 101.23 102.49 104.83 106.11 107.36 NA [8,] 100.04 101.09 102.40 104.55 106.15 107.23 NA [9,] 100.05 101.22 102.99 105.16 106.61 107.54 NA [10,] 100.11 101.33 103.19 105.06 106.63 107.64 NA [11,] 100.11 101.30 103.35 105.20 106.27 108.23 NA [12,] 101.03 102.39 104.44 105.87 105.59 108.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.84 1.84 2.06 2.39 2.48 1.44 NA [2,] -1.71 -1.41 -0.76 -1.56 -1.83 -0.52 NA [3,] -0.36 -0.99 -2.19 -0.47 -0.56 -1.49 NA [4,] 0.22 0.54 1.41 0.75 1.21 0.75 NA [5,] 0.02 0.05 0.24 0.48 -0.37 0.31 NA [6,] -0.20 0.36 0.04 -0.18 -0.23 -0.22 NA [7,] 0.06 -0.14 -0.09 -0.28 0.04 -0.13 NA [8,] 0.01 0.13 0.59 0.61 0.46 0.31 NA [9,] 0.06 0.11 0.20 -0.10 0.02 0.10 NA [10,] 0.00 -0.03 0.16 0.14 -0.36 0.59 NA [11,] 0.92 1.09 1.09 0.67 -0.68 0.19 NA [12,] -0.19 -0.70 -1.02 -0.46 1.50 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/wessaorg/rcomp/tmp/17l0z1331539518.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/wessaorg/rcomp/tmp/2nfke1331539518.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/wessaorg/rcomp/tmp/31kx31331539518.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/wessaorg/rcomp/tmp/4urj91331539518.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] [1,] 100.170 102.01 100.30 99.94 100.16 100.18 99.98 100.040 100.050 100.110 [2,] 100.840 102.68 101.27 100.28 100.82 100.87 101.23 101.090 101.220 101.330 [3,] 102.555 104.78 103.62 102.29 103.37 103.73 103.66 103.475 104.075 104.125 [4,] 105.410 107.89 106.06 105.50 106.71 106.34 106.11 106.150 106.610 106.630 [5,] 107.090 108.53 108.01 106.52 107.27 107.58 107.36 107.230 107.540 107.640 [,11] [,12] [1,] 100.110 101.030 [2,] 101.300 102.390 [3,] 104.275 105.015 [4,] 106.270 105.870 [5,] 108.230 108.420 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.6072 101.4194 100.5303 98.92293 99.57076 100.2017 100.5122 100.2111 [2,] 105.5028 108.1406 106.7097 105.65707 107.16924 107.2583 106.8078 106.7389 [,9] [,10] [,11] [,12] [1,] 100.5983 100.7063 101.0692 102.7703 [2,] 107.5517 107.5437 107.4808 107.2597 $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(100.17, 100.84, 102.555, 105.41, 107.09, 102.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5bjtx1331539518.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,] 1.44 -1.830 -2.190 0.22 -0.370 -0.23 -0.28 0.010 -0.10 -0.03 -0.680 -1.02 [2,] 1.84 -1.710 -1.490 0.54 0.020 -0.22 -0.14 0.130 0.02 -0.03 0.190 -0.70 [3,] 1.95 -1.485 -0.775 0.75 0.145 -0.19 -0.11 0.385 0.08 0.07 0.795 -0.46 [4,] 2.39 -0.760 -0.470 1.21 0.310 0.04 0.04 0.590 0.11 0.16 1.090 -0.19 [5,] 2.48 -0.520 -0.360 1.41 0.480 0.36 0.06 0.610 0.20 0.16 1.090 -0.19 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.595232 -2.0977807 -1.4329329 0.3178284 -0.04205937 -0.3577084 [2,] 2.304768 -0.8722193 -0.1170671 1.1821716 0.33205937 -0.0222916 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.226105814 0.08828514 0.02194709 -0.05255614 0.2144709 -0.82036472 [2,] 0.006105814 0.68171486 0.13805291 0.19255614 1.3755291 -0.09963528 $out [1] -0.36 0.59 1.50 $group [1] 10 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.44, 1.84, 1.95, 2.39, 2.48, -1.83, -1.71000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/626ej1331539518.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,] 99.940 100.280 101.690 103.42 105.410 106.52 NA [2,] 100.045 100.855 102.305 104.39 105.825 107.25 NA [3,] 100.135 101.225 102.740 104.92 106.210 107.56 NA [4,] 100.240 101.315 103.270 105.18 106.620 108.12 NA [5,] 100.300 101.330 104.440 105.87 106.710 108.53 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 100.0461 101.0152 102.2999 104.5597 105.8474 107.1632 NA [2,] 100.2239 101.4348 103.1801 105.2803 106.5726 107.9568 NA $out [1] 102.01 101.03 102.68 102.39 100.80 107.89 $group [1] 1 1 2 2 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(99.94, 100.045, 100.135, 100.24, 100.3, 100.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7dzf21331539518.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,] 103.1033 102.2900 103.5838 [2,] 103.5967 103.4225 103.6100 [3,] 103.7758 103.6950 103.6669 [4,] 104.0350 104.2000 103.9856 [5,] 104.6233 105.0150 104.3513 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.5759 103.3404 103.4955 [2,] 103.9758 104.0496 103.8382 $out [1] 105.1117 102.8033 102.9825 105.1587 102.7400 $group [1] 1 1 3 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.103333333333, 103.596666666667, 103.775833333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/17l0z1331539518.ps tmp/17l0z1331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/2nfke1331539518.ps tmp/2nfke1331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/31kx31331539518.ps tmp/31kx31331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/4urj91331539518.ps tmp/4urj91331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/5bjtx1331539518.ps tmp/5bjtx1331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/626ej1331539518.ps tmp/626ej1331539518.png",intern=TRUE)) character(0) > try(system("convert tmp/7dzf21331539518.ps tmp/7dzf21331539518.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.559 0.447 2.257