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(2.17,2.18,2.18,2.18,2.17,2.17,2.18,2.17,2.18,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.19,2.19,2.19,2.20,2.20,2.21,2.21,2.21,2.20,2.21,2.20,2.21,2.21,2.22,2.22,2.23,2.24,2.24,2.25,2.25,2.32,2.36,2.37,2.37,2.37,2.38,2.38,2.41,2.42,2.43,2.44,2.44,2.44,2.43,2.43,2.43,2.42,2.42,2.42,2.42,2.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,] 2.17 2.17 2.18 2.21 2.24 2.43 NA [2,] 2.18 2.17 2.18 2.21 2.25 2.44 NA [3,] 2.18 2.17 2.18 2.21 2.25 2.44 NA [4,] 2.18 2.17 2.18 2.20 2.32 2.44 NA [5,] 2.17 2.17 2.18 2.21 2.36 2.43 NA [6,] 2.17 2.17 2.18 2.20 2.37 2.43 NA [7,] 2.18 2.18 2.18 2.21 2.37 2.43 NA [8,] 2.17 2.18 2.19 2.21 2.37 2.42 NA [9,] 2.18 2.18 2.19 2.22 2.38 2.42 NA [10,] 2.17 2.18 2.19 2.22 2.38 2.42 NA [11,] 2.17 2.18 2.20 2.23 2.41 2.42 NA [12,] 2.17 2.18 2.20 2.24 2.42 2.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01 0.00 0.00 0.00 0.01 0.01 NA [2,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [3,] 0.00 0.00 0.00 -0.01 0.07 0.00 NA [4,] -0.01 0.00 0.00 0.01 0.04 -0.01 NA [5,] 0.00 0.00 0.00 -0.01 0.01 0.00 NA [6,] 0.01 0.01 0.00 0.01 0.00 0.00 NA [7,] -0.01 0.00 0.01 0.00 0.00 -0.01 NA [8,] 0.01 0.00 0.00 0.01 0.01 0.00 NA [9,] -0.01 0.00 0.00 0.00 0.00 0.00 NA [10,] 0.00 0.00 0.01 0.01 0.03 0.00 NA [11,] 0.00 0.00 0.00 0.01 0.01 0.00 NA [12,] 0.00 0.00 0.01 0.00 0.01 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/html/rcomp/tmp/1cmd21275122885.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/25eu51275122885.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/35eu51275122885.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/4g5b81275122885.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] [,10] [,11] [,12] [1,] 2.170 2.170 2.170 2.17 2.170 2.17 2.180 2.17 2.180 2.170 2.170 2.17 [2,] 2.170 2.180 2.180 2.18 2.170 2.17 2.180 2.18 2.180 2.180 2.180 2.18 [3,] 2.195 2.195 2.195 2.19 2.195 2.19 2.195 2.20 2.205 2.205 2.215 2.22 [4,] 2.240 2.250 2.250 2.32 2.360 2.37 2.370 2.37 2.380 2.380 2.410 2.42 [5,] 2.240 2.250 2.250 2.44 2.430 2.43 2.430 2.42 2.420 2.420 2.420 2.42 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.149848 2.149848 2.149848 2.099695 2.072444 2.060994 2.072444 2.077444 [2,] 2.240152 2.240152 2.240152 2.280305 2.317556 2.319006 2.317556 2.322556 [,9] [,10] [,11] [,12] [1,] 2.075994 2.075994 2.066643 2.065192 [2,] 2.334006 2.334006 2.363357 2.374808 $out [1] 2.43 2.44 2.44 $group [1] 1 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.17, 2.17, 2.195, 2.24, 2.24, 2.17, 2.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5g5b81275122885.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] [,12] [1,] 0.000 0 0 -0.01 0 0.000 -0.01 0.000 0 0.000 0.00 0.00 [2,] 0.000 0 0 -0.01 0 0.000 -0.01 0.000 0 0.000 0.00 0.00 [3,] 0.005 0 0 0.00 0 0.005 0.00 0.005 0 0.005 0.00 0.00 [4,] 0.010 0 0 0.01 0 0.010 0.00 0.010 0 0.010 0.01 0.01 [5,] 0.010 0 0 0.01 0 0.010 0.01 0.010 0 0.010 0.01 0.01 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.001450323 0 0 -0.01290065 0 -0.001450323 -0.006450323 [2,] 0.011450323 0 0 0.01290065 0 0.011450323 0.006450323 [,8] [,9] [,10] [,11] [,12] [1,] -0.001450323 0 -0.001450323 -0.006450323 -0.007065975 [2,] 0.011450323 0 0.011450323 0.006450323 0.007065975 $out [1] -0.01 0.07 0.04 -0.01 0.01 -0.01 0.03 $group [1] 3 3 4 5 5 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.00499999999999989, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rebt1275122885.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] [,6] [,7] [1,] 2.17 2.170 2.18 2.20 2.240 2.420 NA [2,] 2.17 2.170 2.18 2.21 2.285 2.420 NA [3,] 2.17 2.175 2.18 2.21 2.370 2.430 NA [4,] 2.18 2.180 2.19 2.22 2.380 2.435 NA [5,] 2.18 2.180 2.20 2.23 2.420 2.440 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.165439 2.170439 2.175439 2.205439 2.32667 2.423158 NA [2,] 2.174561 2.179561 2.184561 2.214561 2.41333 2.436842 NA $out [1] 2.24 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.17, 2.17, 2.17, 2.18, 2.18, 2.17, 2.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rebt1275122885.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,] 2.233333 2.190 2.20250 [2,] 2.243333 2.195 2.22250 [3,] 2.255000 2.195 2.25250 [4,] 2.260833 2.205 2.26125 [5,] 2.271667 2.215 2.28000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.247018 2.190439 2.234826 [2,] 2.262982 2.199561 2.270174 $out [1] 2.22 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.23333333333333, 2.24333333333333, 2.255, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1cmd21275122885.ps tmp/1cmd21275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/25eu51275122885.ps tmp/25eu51275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/35eu51275122885.ps tmp/35eu51275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/4g5b81275122885.ps tmp/4g5b81275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/5g5b81275122885.ps tmp/5g5b81275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/6rebt1275122885.ps tmp/6rebt1275122885.png",intern=TRUE)) character(0) > try(system("convert tmp/7rebt1275122885.ps tmp/7rebt1275122885.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.169 0.923 3.564