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(99.96,100.21,100.37,101.11,101.04,101.02,101.02,101.11,100.96,101.27,101.01,101.07,101.07,101.07,101.24,101.29,101.67,101.66,101.66,101.66,101.8,102.32,102.38,102.4,102.39,102.78,102.81,102.82,102.96,102.98,102.98,103.03,103.26,103.47,103.58,103.52,103.52,103.52,103.54,103.74,103.94,103.9,103.9,103.9,103.87,104.51,104.82,104.87,104.87,105.13,105.22,105.02,104.7,104.76,104.76,104.57,104.64,104.72,104.49,104.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] 60 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.96 101.07 102.39 103.52 104.87 NA [2,] 100.21 101.07 102.78 103.52 105.13 NA [3,] 100.37 101.24 102.81 103.54 105.22 NA [4,] 101.11 101.29 102.82 103.74 105.02 NA [5,] 101.04 101.67 102.96 103.94 104.70 NA [6,] 101.02 101.66 102.98 103.90 104.76 NA [7,] 101.02 101.66 102.98 103.90 104.76 NA [8,] 101.11 101.66 103.03 103.90 104.57 NA [9,] 100.96 101.80 103.26 103.87 104.64 NA [10,] 101.27 102.32 103.47 104.51 104.72 NA [11,] 101.01 102.38 103.58 104.82 104.49 NA [12,] 101.07 102.40 103.52 104.87 104.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.25 0.00 0.39 0.00 0.26 NA [2,] 0.16 0.17 0.03 0.02 0.09 NA [3,] 0.74 0.05 0.01 0.20 -0.20 NA [4,] -0.07 0.38 0.14 0.20 -0.32 NA [5,] -0.02 -0.01 0.02 -0.04 0.06 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.09 0.00 0.05 0.00 -0.19 NA [8,] -0.15 0.14 0.23 -0.03 0.07 NA [9,] 0.31 0.52 0.21 0.64 0.08 NA [10,] -0.26 0.06 0.11 0.31 -0.23 NA [11,] 0.06 0.02 -0.06 0.05 -0.07 NA [12,] 0.00 -0.01 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/wessaorg/rcomp/tmp/1ax4z1319457759.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/2xhtu1319457759.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/3knwu1319457759.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/43rgu1319457759.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,] 99.96 100.21 100.37 101.11 101.04 101.02 101.02 101.11 100.96 101.27 [2,] 101.07 101.07 101.24 101.29 101.67 101.66 101.66 101.66 101.80 102.32 [3,] 102.39 102.78 102.81 102.82 102.96 102.98 102.98 103.03 103.26 103.47 [4,] 103.52 103.52 103.54 103.74 103.94 103.90 103.90 103.90 103.87 104.51 [5,] 104.87 105.13 105.22 105.02 104.70 104.76 104.76 104.57 104.64 104.72 [,11] [,12] [1,] 101.01 101.07 [2,] 102.38 102.40 [3,] 103.58 103.52 [4,] 104.49 104.42 [5,] 104.82 104.87 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.6588 101.0488 101.1848 101.0888 101.356 101.3972 101.3972 101.4472 [2,] 104.1212 104.5112 104.4352 104.5512 104.564 104.5628 104.5628 104.6128 [,9] [,10] [,11] [,12] [1,] 101.7973 101.9226 102.0891 102.0927 [2,] 104.7227 105.0174 105.0709 104.9473 $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(99.96, 101.07, 102.39, 103.52, 104.87, 100.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5dkcm1319457759.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.00 0.02 -0.20 -0.32 -0.04 0 0.00 -0.15 0.08 -0.26 -0.07 -0.010 [2,] 0.00 0.03 0.01 -0.07 -0.02 0 0.00 -0.03 0.21 -0.23 -0.06 -0.005 [3,] 0.25 0.09 0.05 0.14 -0.01 0 0.00 0.07 0.31 0.06 0.02 0.000 [4,] 0.26 0.16 0.20 0.20 0.02 0 0.05 0.14 0.52 0.11 0.05 0.000 [5,] 0.39 0.17 0.20 0.38 0.06 0 0.09 0.23 0.64 0.31 0.06 0.000 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.06628465 -0.001857673 -0.08425352 -0.05078132 -0.0382639 0 [2,] 0.43371535 0.181857673 0.18425352 0.33078132 0.0182639 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.03532987 -0.05012157 0.09095478 -0.1802431 -0.05772572 -0.00395 [2,] 0.03532987 0.19012157 0.52904522 0.3002431 0.09772572 0.00395 $out [1] 0.74 -0.19 $group [1] 3 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.25, 0.259999999999991, 0.390000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/67es71319457759.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] [1,] 100.210 101.070 102.390 103.520 104.420 NA [2,] 100.665 101.265 102.815 103.640 104.605 NA [3,] 101.020 101.660 102.980 103.900 104.740 NA [4,] 101.090 102.060 103.365 104.225 104.945 NA [5,] 101.270 102.400 103.580 104.870 105.220 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.8262 101.2974 102.7291 103.6332 104.5849 NA [2,] 101.2138 102.0226 103.2309 104.1668 104.8951 NA $out [1] 99.96 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.21, 100.665, 101.02, 101.09, 101.27, 101.07, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7kqrs1319457759.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,] 102.362 102.390 102.2950 [2,] 102.716 102.815 102.4525 [3,] 102.863 102.980 102.7800 [4,] 103.081 103.365 103.1225 [5,] 103.258 103.580 103.4350 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.6965 102.7291 102.4744 [2,] 103.0295 103.2309 103.0856 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.362, 102.716, 102.863, 103.081, 103.258, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ax4z1319457759.ps tmp/1ax4z1319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/2xhtu1319457759.ps tmp/2xhtu1319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/3knwu1319457759.ps tmp/3knwu1319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/43rgu1319457759.ps tmp/43rgu1319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/5dkcm1319457759.ps tmp/5dkcm1319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/67es71319457759.ps tmp/67es71319457759.png",intern=TRUE)) character(0) > try(system("convert tmp/7kqrs1319457759.ps tmp/7kqrs1319457759.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.643 0.347 2.002