R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9,9.10,9.11,9.12,9.13,9.14,9.15,9.16,9.17,9.18,9.19,9.20,9.21,9.22,9.23,9.24,9.25,9.26,9.27,9.28,9.29,9.30,9.31,9.32,9.33,9.34,9.35,9.36,9.37,9.38,9.39,9.40,9.41,9.42,9.43,9.44,9.45,9.46,9.47,9.48,9.49,9.50,9.51,9.52,9.53,9.54,9.55,9.56,9.57,9.58,9.59,9.60,9.61,9.62,9.63,9.64,9.65,9.66,9.67) > 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] 68 > (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] 6 6 6 6 6 6 6 6 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9.00 9.12 9.24 9.36 9.48 9.60 [2,] 9.10 9.13 9.25 9.37 9.49 9.61 [3,] 9.20 9.14 9.26 9.38 9.50 9.62 [4,] 9.30 9.15 9.27 9.39 9.51 9.63 [5,] 9.40 9.16 9.28 9.40 9.52 9.64 [6,] 9.50 9.17 9.29 9.41 9.53 9.65 [7,] 9.60 9.18 9.30 9.42 9.54 9.66 [8,] 9.70 9.19 9.31 9.43 9.55 9.67 [9,] 9.80 9.20 9.32 9.44 9.56 NA [10,] 9.90 9.21 9.33 9.45 9.57 NA [11,] 9.10 9.22 9.34 9.46 9.58 NA [12,] 9.11 9.23 9.35 9.47 9.59 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.10 0.01 0.01 0.01 0.01 0.01 [2,] 0.10 0.01 0.01 0.01 0.01 0.01 [3,] 0.10 0.01 0.01 0.01 0.01 0.01 [4,] 0.10 0.01 0.01 0.01 0.01 0.01 [5,] 0.10 0.01 0.01 0.01 0.01 0.01 [6,] 0.10 0.01 0.01 0.01 0.01 0.01 [7,] 0.10 0.01 0.01 0.01 0.01 0.01 [8,] 0.10 0.01 0.01 0.01 0.01 NA [9,] 0.10 0.01 0.01 0.01 0.01 NA [10,] -0.80 0.01 0.01 0.01 0.01 NA [11,] 0.01 0.01 0.01 0.01 0.01 NA [12,] 0.01 0.01 0.01 0.01 0.01 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/1owxh1225733389.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/2hpyd1225733389.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/3ik4k1225733389.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/41jlc1225733389.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,] 9.00 9.10 9.14 9.150 9.16 9.170 9.18 9.19 9.20 9.21 9.10 9.11 [2,] 9.12 9.13 9.20 9.270 9.28 9.290 9.30 9.31 9.32 9.33 9.22 9.23 [3,] 9.30 9.31 9.32 9.345 9.40 9.455 9.48 9.49 9.44 9.45 9.34 9.35 [4,] 9.48 9.49 9.50 9.510 9.52 9.530 9.60 9.67 9.56 9.57 9.46 9.47 [5,] 9.60 9.61 9.62 9.630 9.64 9.650 9.66 9.70 9.80 9.90 9.58 9.59 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.067788 9.077788 9.12649 9.190192 9.245192 9.300192 9.28649 9.257788 [2,] 9.532212 9.542212 9.51351 9.499808 9.554808 9.609808 9.67351 9.722212 [,9] [,10] [,11] [,12] [1,] 9.270417 9.280417 9.170417 9.180417 [2,] 9.609583 9.619583 9.509583 9.519583 $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, 9.12, 9.3, 9.48, 9.6, 9.1, 9.13, 9.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ws041225733389.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.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [2,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [3,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [4,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [5,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 $n [1] 6 6 6 6 6 6 6 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [2,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 $out [1] 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 -0.80 0.01 $group [1] 1 2 3 4 5 6 7 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.00999999999999979, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67ssj1225733389.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] [1,] 9.000 9.120 9.240 9.360 9.480 9.600 [2,] 9.105 9.145 9.265 9.385 9.505 9.615 [3,] 9.350 9.175 9.295 9.415 9.535 9.635 [4,] 9.650 9.205 9.325 9.445 9.565 9.655 [5,] 9.900 9.230 9.350 9.470 9.590 9.670 $n [1] 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9.101422 9.147634 9.267634 9.387634 9.507634 9.612655 [2,] 9.598578 9.202366 9.322366 9.442366 9.562366 9.657345 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(9, 9.105, 9.35, 9.65, 9.9, 9.12, 9.145, 9.175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78yhw1225733389.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,] 9.3000 9.3000 9.300000 [2,] 9.3450 9.3300 9.341250 [3,] 9.3875 9.3750 9.389375 [4,] 9.4570 9.4525 9.445000 [5,] 9.4920 9.4900 9.490000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 9.336416 9.319127 9.342054 [2,] 9.438584 9.430873 9.436696 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(9.3, 9.345, 9.3875, 9.457, 9.492, 9.3, 9.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1owxh1225733389.ps tmp/1owxh1225733389.png") > system("convert tmp/2hpyd1225733389.ps tmp/2hpyd1225733389.png") > system("convert tmp/3ik4k1225733389.ps tmp/3ik4k1225733389.png") > system("convert tmp/41jlc1225733389.ps tmp/41jlc1225733389.png") > system("convert tmp/5ws041225733389.ps tmp/5ws041225733389.png") > system("convert tmp/67ssj1225733389.ps tmp/67ssj1225733389.png") > system("convert tmp/78yhw1225733389.ps tmp/78yhw1225733389.png") > > > proc.time() user system elapsed 1.390 0.932 1.767