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(5.50,5.40,5.90,5.80,5.10,4.10,4.40,3.60,3.50,3.10,2.90,2.20,1.40,1.20,1.30,1.30,1.30,1.80,1.80,1.80,1.70,2.10,2.00,1.70,1.90,2.30,2.40,2.50,2.80,2.60,2.20,2.80,2.80,2.80,2.30,2.20,3.00,2.90,2.70,2.70,2.30,2.40,2.80,2.30,2.00,1.90,2.30,2.70,1.80,2.00,2.10,2.00,2.40,1.70,1.00,1.20,1.40,1.70,1.80,1.40,1.70,1.60,1.40,1.50,0.90,1.50,1.70,1.60,1.20) > 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] 69 > (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 6 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.5 1.4 1.9 3.0 1.8 1.7 [2,] 5.4 1.2 2.3 2.9 2.0 1.6 [3,] 5.9 1.3 2.4 2.7 2.1 1.4 [4,] 5.8 1.3 2.5 2.7 2.0 1.5 [5,] 5.1 1.3 2.8 2.3 2.4 0.9 [6,] 4.1 1.8 2.6 2.4 1.7 1.5 [7,] 4.4 1.8 2.2 2.8 1.0 1.7 [8,] 3.6 1.8 2.8 2.3 1.2 1.6 [9,] 3.5 1.7 2.8 2.0 1.4 1.2 [10,] 3.1 2.1 2.8 1.9 1.7 NA [11,] 2.9 2.0 2.3 2.3 1.8 NA [12,] 2.2 1.7 2.2 2.7 1.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1 -0.2 0.4 -0.1 0.2 -0.1 [2,] 0.5 0.1 0.1 -0.2 0.1 -0.2 [3,] -0.1 0.0 0.1 0.0 -0.1 0.1 [4,] -0.7 0.0 0.3 -0.4 0.4 -0.6 [5,] -1.0 0.5 -0.2 0.1 -0.7 0.6 [6,] 0.3 0.0 -0.4 0.4 -0.7 0.2 [7,] -0.8 0.0 0.6 -0.5 0.2 -0.1 [8,] -0.1 -0.1 0.0 -0.3 0.2 -0.4 [9,] -0.4 0.4 0.0 -0.1 0.3 NA [10,] -0.2 -0.1 -0.5 0.4 0.1 NA [11,] -0.7 -0.3 -0.1 0.4 -0.4 NA [12,] -0.8 0.2 0.8 -0.9 0.3 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/1oms81324293301.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/2rxzd1324293301.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/37oyl1324293301.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/41xva1324293301.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,] 1.40 1.20 1.30 1.30 0.90 1.5 1.0 1.20 1.20 1.7 1.8 1.4 [2,] 1.70 1.60 1.40 1.50 1.30 1.7 1.7 1.60 1.40 1.9 2.0 1.7 [3,] 1.85 2.15 2.25 2.25 2.35 2.1 2.0 2.05 1.85 2.1 2.3 2.2 [4,] 3.00 2.90 2.70 2.70 2.80 2.6 2.8 2.80 2.80 2.8 2.3 2.2 [5,] 3.00 2.90 2.70 2.70 2.80 2.6 4.4 3.60 3.50 3.1 2.3 2.7 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.011458 1.311458 1.411458 1.475961 1.382452 1.519471 1.290464 1.275961 [2,] 2.688542 2.988542 3.088542 3.024039 3.317548 2.680529 2.709536 2.824039 [,9] [,10] [,11] [,12] [1,] 0.9469548 1.464062 2.088021 1.846701 [2,] 2.7530452 2.735938 2.511979 2.553299 $out [1] 5.5 5.4 5.9 5.8 5.1 4.1 2.9 $group [1] 1 2 3 4 5 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.4, 1.7, 1.85, 3, 3, 1.2, 1.6, 2.15, 2.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5t4qr1324293301.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.2 -0.2 -0.1 -0.7 -1.00 -0.7 -0.80 -0.4 -0.4 -0.5 -0.7 -0.9 [2,] -0.1 -0.2 -0.1 -0.6 -0.70 -0.4 -0.50 -0.3 -0.1 -0.2 -0.4 -0.8 [3,] -0.1 0.1 0.0 -0.2 -0.05 0.1 -0.05 -0.1 0.0 -0.1 -0.3 0.2 [4,] 0.2 0.1 0.1 0.3 0.50 0.3 0.20 0.0 0.3 0.1 -0.1 0.3 [5,] 0.4 0.5 0.1 0.4 0.60 0.4 0.60 0.2 0.4 0.4 -0.1 0.8 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.29350969 -0.09350969 -0.1290065 -0.7805291 -0.8240388 -0.3515226 [2,] 0.09350969 0.29350969 0.1290065 0.3805291 0.7240388 0.5515226 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.5015226 -0.29350969 -0.282639 -0.3119792 -0.51197924 -0.5772572 [2,] 0.4015226 0.09350969 0.282639 0.1119792 -0.08802076 0.9772572 $out [1] 0.4 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.2, -0.1, -0.0999999999999998, 0.2, 0.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/62lp31324293301.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,] 2.20 1.2 1.90 1.90 1.00 1.2 [2,] 3.30 1.3 2.25 2.30 1.40 1.4 [3,] 4.25 1.7 2.45 2.55 1.75 1.5 [4,] 5.45 1.8 2.80 2.75 2.00 1.6 [5,] 5.90 2.1 2.80 3.00 2.40 1.7 $n [1] 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.269371 1.471947 2.199141 2.344752 1.476336 1.394667 [2,] 5.230629 1.928053 2.700859 2.755248 2.023664 1.605333 $out [1] 0.9 $group [1] 6 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2.2, 3.3, 4.25, 5.45, 5.9, 1.2, 1.3, 1.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7wirc1324293301.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,] 2.040000 1.850 2.03750 [2,] 2.238333 2.025 2.11250 [3,] 2.335000 2.125 2.14375 [4,] 2.558333 2.250 2.20625 [5,] 2.633333 2.350 2.22500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.189046 2.022376 2.10099 [2,] 2.480954 2.227624 2.18651 $out [1] 2.35 1.95 $group [1] 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.04, 2.23833333333333, 2.335, 2.55833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1oms81324293301.ps tmp/1oms81324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/2rxzd1324293301.ps tmp/2rxzd1324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/37oyl1324293301.ps tmp/37oyl1324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/41xva1324293301.ps tmp/41xva1324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/5t4qr1324293301.ps tmp/5t4qr1324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/62lp31324293301.ps tmp/62lp31324293301.png",intern=TRUE)) character(0) > try(system("convert tmp/7wirc1324293301.ps tmp/7wirc1324293301.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.954 0.485 2.480