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(9.24,9.29,9.39,9.42,9.42,9.43,9.5,9.53,9.58,9.58,9.6,9.61,9.65,9.71,9.78,9.79,9.84,9.87,9.9,9.95,9.96,9.98,10.01,10,10.03,10.05,10.06,10.09,10.24,10.23,10.27,10.28,10.29,10.44,10.51,10.52,10.57,10.62,10.71,10.73,10.74,10.75,10.79,10.81,10.87,10.92,10.95,10.94,10.97,10.99,11.04,11.09,11.12,11.11,11.14,11.2,11.25,11.3,11.31,11.31) > 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,] 9.24 9.65 10.03 10.57 10.97 NA [2,] 9.29 9.71 10.05 10.62 10.99 NA [3,] 9.39 9.78 10.06 10.71 11.04 NA [4,] 9.42 9.79 10.09 10.73 11.09 NA [5,] 9.42 9.84 10.24 10.74 11.12 NA [6,] 9.43 9.87 10.23 10.75 11.11 NA [7,] 9.50 9.90 10.27 10.79 11.14 NA [8,] 9.53 9.95 10.28 10.81 11.20 NA [9,] 9.58 9.96 10.29 10.87 11.25 NA [10,] 9.58 9.98 10.44 10.92 11.30 NA [11,] 9.60 10.01 10.51 10.95 11.31 NA [12,] 9.61 10.00 10.52 10.94 11.31 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.05 0.06 0.02 0.05 0.02 NA [2,] 0.10 0.07 0.01 0.09 0.05 NA [3,] 0.03 0.01 0.03 0.02 0.05 NA [4,] 0.00 0.05 0.15 0.01 0.03 NA [5,] 0.01 0.03 -0.01 0.01 -0.01 NA [6,] 0.07 0.03 0.04 0.04 0.03 NA [7,] 0.03 0.05 0.01 0.02 0.06 NA [8,] 0.05 0.01 0.01 0.06 0.05 NA [9,] 0.00 0.02 0.15 0.05 0.05 NA [10,] 0.02 0.03 0.07 0.03 0.01 NA [11,] 0.01 -0.01 0.01 -0.01 0.00 NA [12,] 0.04 0.03 0.05 0.03 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/1ldpb1331751894.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/227911331751894.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/3dr531331751894.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/42voh1331751894.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] [,12] [1,] 9.24 9.29 9.39 9.42 9.42 9.43 9.50 9.53 9.58 9.58 9.60 9.61 [2,] 9.65 9.71 9.78 9.79 9.84 9.87 9.90 9.95 9.96 9.98 10.01 10.00 [3,] 10.03 10.05 10.06 10.09 10.24 10.23 10.27 10.28 10.29 10.44 10.51 10.52 [4,] 10.57 10.62 10.71 10.73 10.74 10.75 10.79 10.81 10.87 10.92 10.95 10.94 [5,] 10.97 10.99 11.04 11.09 11.12 11.11 11.14 11.20 11.25 11.30 11.31 11.31 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.37993 9.406996 9.402864 9.425798 9.604062 9.608194 9.641128 [2,] 10.68007 10.693004 10.717136 10.754202 10.875938 10.851806 10.898872 [,8] [,9] [,10] [,11] [,12] [1,] 9.672326 9.646996 9.775798 9.845798 9.855798 [2,] 10.887674 10.933004 11.104202 11.174202 11.184202 $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(9.24, 9.65, 10.03, 10.57, 10.97, 9.29, 9.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5uuxj1331751894.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.02 0.01 0.01 0.00 -0.01 0.03 0.01 0.01 0.00 0.01 -0.01 0.030 [2,] 0.02 0.05 0.02 0.01 -0.01 0.03 0.02 0.01 0.02 0.02 -0.01 0.030 [3,] 0.05 0.07 0.03 0.03 0.01 0.04 0.03 0.05 0.05 0.03 0.00 0.035 [4,] 0.05 0.09 0.03 0.05 0.01 0.04 0.05 0.05 0.05 0.03 0.01 0.045 [5,] 0.06 0.10 0.03 0.05 0.03 0.04 0.06 0.06 0.05 0.03 0.01 0.050 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.02880208 0.0417361 0.02293403 0.001736101 -0.00413195 0.03293403 [2,] 0.07119792 0.0982639 0.03706597 0.058263899 0.02413195 0.04706597 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.008802076 0.0217361 0.02880208 0.02293403 -0.01413195 0.02315 [2,] 0.051197924 0.0782639 0.07119792 0.03706597 0.01413195 0.04685 $out [1] 0.05 0.15 0.07 0.15 0.07 $group [1] 3 4 6 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0199999999999996, 0.0200000000000014, 0.0499999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6qq1j1331751894.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,] 9.240 9.650 10.030 10.570 10.970 NA [2,] 9.405 9.785 10.075 10.720 11.065 NA [3,] 9.465 9.885 10.255 10.770 11.130 NA [4,] 9.580 9.970 10.365 10.895 11.275 NA [5,] 9.610 10.010 10.520 10.950 11.310 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9.385181 9.80062 10.12273 10.69018 11.03422 NA [2,] 9.544819 9.96938 10.38727 10.84982 11.22578 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(9.24, 9.405, 9.465, 9.58, 9.61, 9.65, 9.785, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7a6zo1331751894.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,] 10.092 10.030 10.1100 [2,] 10.210 10.075 10.2525 [3,] 10.299 10.255 10.3275 [4,] 10.417 10.365 10.4325 [5,] 10.476 10.520 10.4800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.20459 10.12273 10.2454 [2,] 10.39341 10.38727 10.4096 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10.092, 10.21, 10.299, 10.417, 10.476, 10.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ldpb1331751894.ps tmp/1ldpb1331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/227911331751894.ps tmp/227911331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/3dr531331751894.ps tmp/3dr531331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/42voh1331751894.ps tmp/42voh1331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/5uuxj1331751894.ps tmp/5uuxj1331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/6qq1j1331751894.ps tmp/6qq1j1331751894.png",intern=TRUE)) character(0) > try(system("convert tmp/7a6zo1331751894.ps tmp/7a6zo1331751894.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.34 0.34 2.66