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(2.12,2.13,2.16,2.25,2.26,2.39,2.36,2.26,2.26,2.27,2.29,2.21,2.17,2.17,2.08,2.12,2.18,2.13,2.21,2.06,1.91,1.99,2.04,2.02,2.01,2.1,2.01,2.07,2.05,2.1,2.15,2.15,1.96,2.06,2.07,2.05,2.08,2.14,2.16,2.35,2.31,2.2,2.3,2.22,2.14,2.17,2.12,2.1,2.17,2.29,2.17,2.25,2.13,2.23,2.17,2.24,2.13,2.16,2.1,2.05,2.03,2.24,2.17,2.13,2.21,2.18,2.21,2.23,2.09,2.16,2.13,2.12) > 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.12 2.17 2.01 2.08 2.17 2.03 NA [2,] 2.13 2.17 2.10 2.14 2.29 2.24 NA [3,] 2.16 2.08 2.01 2.16 2.17 2.17 NA [4,] 2.25 2.12 2.07 2.35 2.25 2.13 NA [5,] 2.26 2.18 2.05 2.31 2.13 2.21 NA [6,] 2.39 2.13 2.10 2.20 2.23 2.18 NA [7,] 2.36 2.21 2.15 2.30 2.17 2.21 NA [8,] 2.26 2.06 2.15 2.22 2.24 2.23 NA [9,] 2.26 1.91 1.96 2.14 2.13 2.09 NA [10,] 2.27 1.99 2.06 2.17 2.16 2.16 NA [11,] 2.29 2.04 2.07 2.12 2.10 2.13 NA [12,] 2.21 2.02 2.05 2.10 2.05 2.12 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01 0.00 0.09 0.06 0.12 0.21 NA [2,] 0.03 -0.09 -0.09 0.02 -0.12 -0.07 NA [3,] 0.09 0.04 0.06 0.19 0.08 -0.04 NA [4,] 0.01 0.06 -0.02 -0.04 -0.12 0.08 NA [5,] 0.13 -0.05 0.05 -0.11 0.10 -0.03 NA [6,] -0.03 0.08 0.05 0.10 -0.06 0.03 NA [7,] -0.10 -0.15 0.00 -0.08 0.07 0.02 NA [8,] 0.00 -0.15 -0.19 -0.08 -0.11 -0.14 NA [9,] 0.01 0.08 0.10 0.03 0.03 0.07 NA [10,] 0.02 0.05 0.01 -0.05 -0.06 -0.03 NA [11,] -0.08 -0.02 -0.02 -0.02 -0.05 -0.01 NA [12,] -0.04 -0.01 0.03 0.07 -0.02 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/1ip0v1319646949.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/2gnd61319646949.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/3irdu1319646949.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/47yxy1319646949.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,] 2.01 2.100 2.01 2.07 2.050 2.10 2.15 2.060 1.91 1.99 2.04 2.020 [2,] 2.03 2.130 2.08 2.12 2.130 2.13 2.17 2.150 1.96 2.06 2.07 2.050 [3,] 2.10 2.155 2.16 2.19 2.195 2.19 2.21 2.225 2.11 2.16 2.11 2.075 [4,] 2.17 2.240 2.17 2.25 2.260 2.23 2.30 2.240 2.14 2.17 2.13 2.120 [5,] 2.17 2.290 2.17 2.35 2.310 2.23 2.36 2.260 2.26 2.27 2.13 2.210 $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.009695 2.084046 2.101947 2.106146 2.111146 2.125497 2.126146 2.166947 [2,] 2.190305 2.225954 2.218053 2.273854 2.278854 2.254503 2.293854 2.283053 [,9] [,10] [,11] [,12] [1,] 1.993894 2.089046 2.071298 2.029848 [2,] 2.226106 2.230954 2.148702 2.120152 $out [1] 2.39 2.29 $group [1] 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.01, 2.03, 2.1, 2.17, 2.17, 2.1, 2.13, 2.155, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5qyj61319646949.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.000 -0.12 0.04 -0.120 -0.11 -0.06 -0.15 -0.190 0.01 -0.06 -0.08 -0.04 [2,] 0.010 -0.09 0.04 -0.040 -0.05 -0.03 -0.10 -0.150 0.03 -0.05 -0.05 -0.02 [3,] 0.075 -0.08 0.07 -0.005 0.01 0.04 -0.04 -0.125 0.05 -0.01 -0.02 -0.01 [4,] 0.120 0.02 0.09 0.060 0.10 0.08 0.02 -0.080 0.08 0.02 -0.02 0.03 [5,] 0.210 0.03 0.09 0.080 0.13 0.10 0.07 0.000 0.10 0.05 -0.01 0.07 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.004046447 -0.150953553 0.03774839 -0.06950323 -0.08675484 -0.03095355 [2,] 0.145953553 -0.009046447 0.10225161 0.05950323 0.10675484 0.11095355 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.11740388 -0.17015226 0.01774839 -0.05515226 -0.039350969 -0.04532987 [2,] 0.03740388 -0.07984774 0.08225161 0.03515226 -0.000649031 0.02532987 $out [1] 0.19 -0.04 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.00999999999999979, 0.0750000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/651dm1319646949.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] [,7] [1,] 2.120 1.91 1.960 2.080 2.050 2.030 NA [2,] 2.185 2.03 2.030 2.130 2.130 2.125 NA [3,] 2.260 2.10 2.065 2.165 2.170 2.165 NA [4,] 2.280 2.17 2.100 2.260 2.235 2.210 NA [5,] 2.390 2.21 2.150 2.350 2.290 2.240 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.21667 2.036145 2.033073 2.105706 2.122109 2.126231 NA [2,] 2.30333 2.163855 2.096927 2.224294 2.217891 2.203769 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.12, 2.185, 2.26, 2.28, 2.39, 1.91, 2.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/77fue1319646949.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.081667 2.0750 2.065000 [2,] 2.110833 2.1100 2.101250 [3,] 2.156667 2.1600 2.155625 [4,] 2.194167 2.1925 2.190625 [5,] 2.233333 2.2250 2.228750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.118658 2.122371 2.11486 [2,] 2.194676 2.197629 2.19639 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.08166666666667, 2.11083333333333, 2.15666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ip0v1319646949.ps tmp/1ip0v1319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/2gnd61319646949.ps tmp/2gnd61319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/3irdu1319646949.ps tmp/3irdu1319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/47yxy1319646949.ps tmp/47yxy1319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/5qyj61319646949.ps tmp/5qyj61319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/651dm1319646949.ps tmp/651dm1319646949.png",intern=TRUE)) character(0) > try(system("convert tmp/77fue1319646949.ps tmp/77fue1319646949.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.629 0.347 1.980