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.26,1.27,1.24,1.25,1.27,1.25,1.26,1.27,1.26,1.26,1.28,1.27,1.28,1.27,1.26,1.27,1.27,1.28,1.27,1.26,1.3,1.31,1.28,1.29,1.31,1.29,1.29,1.32,1.3,1.29,1.31,1.29,1.33,1.35,1.32,1.33,1.34,1.34,1.33,1.33,1.35,1.32,1.35,1.32,1.36,1.37,1.34,1.32,1.34,1.32,1.33,1.35,1.33,1.33,1.35,1.33,1.36,1.39,1.37,1.37) > 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.26 1.28 1.31 1.34 1.34 NA [2,] 1.27 1.27 1.29 1.34 1.32 NA [3,] 1.24 1.26 1.29 1.33 1.33 NA [4,] 1.25 1.27 1.32 1.33 1.35 NA [5,] 1.27 1.27 1.30 1.35 1.33 NA [6,] 1.25 1.28 1.29 1.32 1.33 NA [7,] 1.26 1.27 1.31 1.35 1.35 NA [8,] 1.27 1.26 1.29 1.32 1.33 NA [9,] 1.26 1.30 1.33 1.36 1.36 NA [10,] 1.26 1.31 1.35 1.37 1.39 NA [11,] 1.28 1.28 1.32 1.34 1.37 NA [12,] 1.27 1.29 1.33 1.32 1.37 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01 -0.01 -0.02 0.00 -0.02 NA [2,] -0.03 -0.01 0.00 -0.01 0.01 NA [3,] 0.01 0.01 0.03 0.00 0.02 NA [4,] 0.02 0.00 -0.02 0.02 -0.02 NA [5,] -0.02 0.01 -0.01 -0.03 0.00 NA [6,] 0.01 -0.01 0.02 0.03 0.02 NA [7,] 0.01 -0.01 -0.02 -0.03 -0.02 NA [8,] -0.01 0.04 0.04 0.04 0.03 NA [9,] 0.00 0.01 0.02 0.01 0.03 NA [10,] 0.02 -0.03 -0.03 -0.03 -0.02 NA [11,] -0.01 0.01 0.01 -0.02 0.00 NA [12,] 0.01 0.02 0.01 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/19x971319395472.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/2tk0d1319395472.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/3o5gx1319395472.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/4xoua1319395472.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.26 1.27 1.24 1.25 1.27 1.25 1.26 1.26 1.26 1.26 1.28 1.27 [2,] 1.28 1.27 1.26 1.27 1.27 1.28 1.27 1.27 1.30 1.31 1.28 1.29 [3,] 1.31 1.29 1.29 1.32 1.30 1.29 1.31 1.29 1.33 1.35 1.32 1.32 [4,] 1.34 1.32 1.33 1.33 1.33 1.32 1.35 1.32 1.36 1.37 1.34 1.33 [5,] 1.34 1.34 1.33 1.35 1.35 1.33 1.35 1.33 1.36 1.39 1.37 1.37 $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.267604 1.25467 1.240538 1.277604 1.257604 1.261736 1.253472 1.25467 [2,] 1.352396 1.32533 1.339462 1.362396 1.342396 1.318264 1.366528 1.32533 [,9] [,10] [,11] [,12] [1,] 1.287604 1.307604 1.277604 1.291736 [2,] 1.372396 1.392396 1.362396 1.348264 $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(1.26, 1.28, 1.31, 1.34, 1.34, 1.27, 1.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5ab3u1319395472.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.02 -0.01 0.00 -0.02 -0.03 0.01 -0.03 0.03 0.00 -0.03 -0.02 0.010 [2,] -0.02 -0.01 0.01 -0.02 -0.02 0.01 -0.02 0.03 0.01 -0.03 -0.01 0.010 [3,] -0.01 -0.01 0.01 0.00 -0.01 0.02 -0.02 0.04 0.01 -0.03 0.00 0.015 [4,] 0.00 0.00 0.02 0.02 0.00 0.02 -0.01 0.04 0.02 -0.02 0.01 0.020 [5,] 0.01 0.01 0.03 0.02 0.01 0.03 -0.01 0.04 0.03 -0.02 0.01 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.02413195 -0.017065975 0.002934025 -0.0282639 -0.02413195 0.01293403 [2,] 0.00413195 -0.002934025 0.017065975 0.0282639 0.00413195 0.02706597 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02706597 0.03293403 0.002934025 -0.03706597 -0.01413195 0.0071 [2,] -0.01293403 0.04706597 0.017065975 -0.02293403 0.01413195 0.0229 $out [1] -0.03 -0.01 0.01 -0.01 0.02 $group [1] 2 6 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.02, -0.02, -0.01, 0, 0.01, -0.01, -0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6oy9f1319395472.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.240 1.260 1.290 1.320 1.320 NA [2,] 1.255 1.270 1.290 1.325 1.330 NA [3,] 1.260 1.275 1.310 1.340 1.345 NA [4,] 1.270 1.285 1.325 1.350 1.365 NA [5,] 1.280 1.300 1.350 1.370 1.390 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.253158 1.268158 1.294036 1.328597 1.329036 NA [2,] 1.266842 1.281842 1.325964 1.351403 1.360964 NA $out [1] 1.31 $group [1] 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.24, 1.255, 1.26, 1.27, 1.28, 1.26, 1.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7wsxs1319395472.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.290 1.29 1.2950 [2,] 1.296 1.29 1.2975 [3,] 1.305 1.31 1.3050 [4,] 1.317 1.32 1.3100 [5,] 1.336 1.35 1.3100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.295422 1.296317 1.299299 [2,] 1.314578 1.323683 1.310701 $out [1] 1.33 1.34 $group [1] 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.29, 1.296, 1.305, 1.317, 1.336, 1.29, 1.29, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/19x971319395472.ps tmp/19x971319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/2tk0d1319395472.ps tmp/2tk0d1319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/3o5gx1319395472.ps tmp/3o5gx1319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/4xoua1319395472.ps tmp/4xoua1319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/5ab3u1319395472.ps tmp/5ab3u1319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/6oy9f1319395472.ps tmp/6oy9f1319395472.png",intern=TRUE)) character(0) > try(system("convert tmp/7wsxs1319395472.ps tmp/7wsxs1319395472.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.626 0.328 2.011