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(1.05,1.07,1.07,1.06,1.08,1.11,1.09,1.1,1.11,1.12,1.13,1.13,1.13,1.18,1.21,1.22,1.22,1.24,1.24,1.25,1.25,1.26,1.26,1.26,1.26,1.3,1.32,1.34,1.35,1.35,1.34,1.33,1.32,1.32,1.33,1.31,1.33,1.34,1.34,1.33,1.3,1.28,1.27,1.28,1.27,1.29,1.28,1.29,1.28,1.28,1.28,1.25,1.24,1.24,1.25,1.25,1.26,1.26,1.26,1.28) > 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,] 1.05 1.13 1.26 1.33 1.28 NA [2,] 1.07 1.18 1.30 1.34 1.28 NA [3,] 1.07 1.21 1.32 1.34 1.28 NA [4,] 1.06 1.22 1.34 1.33 1.25 NA [5,] 1.08 1.22 1.35 1.30 1.24 NA [6,] 1.11 1.24 1.35 1.28 1.24 NA [7,] 1.09 1.24 1.34 1.27 1.25 NA [8,] 1.10 1.25 1.33 1.28 1.25 NA [9,] 1.11 1.25 1.32 1.27 1.26 NA [10,] 1.12 1.26 1.32 1.29 1.26 NA [11,] 1.13 1.26 1.33 1.28 1.26 NA [12,] 1.13 1.26 1.31 1.29 1.28 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.02 0.05 0.04 0.01 0.00 NA [2,] 0.00 0.03 0.02 0.00 0.00 NA [3,] -0.01 0.01 0.02 -0.01 -0.03 NA [4,] 0.02 0.00 0.01 -0.03 -0.01 NA [5,] 0.03 0.02 0.00 -0.02 0.00 NA [6,] -0.02 0.00 -0.01 -0.01 0.01 NA [7,] 0.01 0.01 -0.01 0.01 0.00 NA [8,] 0.01 0.00 -0.01 -0.01 0.01 NA [9,] 0.01 0.01 0.00 0.02 0.00 NA [10,] 0.01 0.00 0.01 -0.01 0.00 NA [11,] 0.00 0.00 -0.02 0.01 0.02 NA [12,] 0.00 0.00 0.02 -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/wessaorg/rcomp/tmp/14gcp1331805893.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/21l7l1331805893.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/3lrfm1331805893.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/452ar1331805893.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.05 1.07 1.07 1.06 1.22 1.24 1.24 1.25 1.25 1.26 1.26 1.26 [2,] 1.13 1.18 1.21 1.22 1.22 1.24 1.24 1.25 1.25 1.26 1.26 1.26 [3,] 1.26 1.28 1.28 1.25 1.24 1.24 1.25 1.25 1.26 1.26 1.26 1.28 [4,] 1.28 1.30 1.32 1.33 1.30 1.28 1.27 1.28 1.27 1.29 1.28 1.29 [5,] 1.33 1.34 1.34 1.34 1.35 1.28 1.27 1.28 1.27 1.32 1.28 1.31 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.15401 1.195208 1.202274 1.172274 1.183472 1.211736 1.228802 1.228802 [2,] 1.36599 1.364792 1.357726 1.327726 1.296528 1.268264 1.271198 1.271198 [,9] [,10] [,11] [,12] [1,] 1.245868 1.238802 1.245868 1.258802 [2,] 1.274132 1.281198 1.274132 1.301198 $out [1] 1.08 1.11 1.35 1.09 1.34 1.10 1.33 1.11 1.32 1.12 1.13 1.33 1.13 $group [1] 5 6 6 7 7 8 8 9 9 10 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.05, 1.13, 1.26, 1.28, 1.33, 1.07, 1.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5w5cq1331805893.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.00 0.00 -0.03 -0.03 -0.02 -0.02 -0.01 -0.01 0.00 -0.01 0.00 -0.010 [2,] 0.01 0.00 -0.01 -0.01 0.00 -0.01 0.00 -0.01 0.00 0.00 0.00 -0.005 [3,] 0.02 0.00 -0.01 0.00 0.00 -0.01 0.01 0.00 0.01 0.00 0.00 0.000 [4,] 0.04 0.02 0.01 0.01 0.02 0.00 0.01 0.01 0.01 0.01 0.01 0.010 [5,] 0.05 0.03 0.02 0.02 0.03 0.01 0.01 0.01 0.02 0.01 0.02 0.020 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.001197924 -0.01413195 -0.02413195 -0.01413195 -0.01413195 -0.017065975 [2,] 0.041197924 0.01413195 0.00413195 0.01413195 0.01413195 -0.002934025 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.002934025 -0.01413195 0.002934025 -0.007065975 -0.007065975 -0.01185 [2,] 0.017065975 0.01413195 0.017065975 0.007065975 0.007065975 0.01185 $out [1] -0.02 $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, 0.01, 0.02, 0.04, 0.05, 0, 0, 0, 0.02, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6ccd21331805893.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,] 1.050 1.180 1.300 1.27 1.24 NA [2,] 1.070 1.215 1.315 1.28 1.25 NA [3,] 1.095 1.240 1.325 1.29 1.26 NA [4,] 1.115 1.255 1.340 1.33 1.28 NA [5,] 1.130 1.260 1.350 1.34 1.28 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.074475 1.221756 1.313597 1.267195 1.246317 NA [2,] 1.115525 1.258244 1.336403 1.312805 1.273683 NA $out [1] 1.13 1.26 $group [1] 2 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.05, 1.07, 1.095, 1.115, 1.13, 1.18, 1.215, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7eyff1331805893.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,] 1.234 1.24 1.2400 [2,] 1.238 1.25 1.2575 [3,] 1.242 1.26 1.2625 [4,] 1.247 1.27 1.2725 [5,] 1.254 1.28 1.2750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.237895 1.250878 1.255658 [2,] 1.246105 1.269122 1.269342 $out [1] 1.210 1.205 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.234, 1.238, 1.242, 1.247, 1.254, 1.24, 1.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/14gcp1331805893.ps tmp/14gcp1331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/21l7l1331805893.ps tmp/21l7l1331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/3lrfm1331805893.ps tmp/3lrfm1331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/452ar1331805893.ps tmp/452ar1331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/5w5cq1331805893.ps tmp/5w5cq1331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/6ccd21331805893.ps tmp/6ccd21331805893.png",intern=TRUE)) character(0) > try(system("convert tmp/7eyff1331805893.ps tmp/7eyff1331805893.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.593 0.410 2.008