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(34.74,34.89,34.98,34.93,35.01,35.03,35.03,34.98,34.92,35.04,35.21,35.21,35.21,35.26,35.45,35.53,35.53,35.57,35.57,35.57,35.63,35.92,36.05,36.1,36.1,36.02,36.07,36.17,36.52,36.49,36.49,36.48,36.62,36.63,36.7,36.7,36.7,36.69,36.86,36.85,36.83,36.88,36.88,36.92,36.93,37.06,37.1,37.09,37.09,37.15,37.27,37.43,37.42,37.4,37.4,37.39,37.42,37.7,37.85,37.88) > 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,] 34.74 35.21 36.10 36.70 37.09 NA [2,] 34.89 35.26 36.02 36.69 37.15 NA [3,] 34.98 35.45 36.07 36.86 37.27 NA [4,] 34.93 35.53 36.17 36.85 37.43 NA [5,] 35.01 35.53 36.52 36.83 37.42 NA [6,] 35.03 35.57 36.49 36.88 37.40 NA [7,] 35.03 35.57 36.49 36.88 37.40 NA [8,] 34.98 35.57 36.48 36.92 37.39 NA [9,] 34.92 35.63 36.62 36.93 37.42 NA [10,] 35.04 35.92 36.63 37.06 37.70 NA [11,] 35.21 36.05 36.70 37.10 37.85 NA [12,] 35.21 36.10 36.70 37.09 37.88 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.15 0.05 -0.08 -0.01 0.06 NA [2,] 0.09 0.19 0.05 0.17 0.12 NA [3,] -0.05 0.08 0.10 -0.01 0.16 NA [4,] 0.08 0.00 0.35 -0.02 -0.01 NA [5,] 0.02 0.04 -0.03 0.05 -0.02 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.05 0.00 -0.01 0.04 -0.01 NA [8,] -0.06 0.06 0.14 0.01 0.03 NA [9,] 0.12 0.29 0.01 0.13 0.28 NA [10,] 0.17 0.13 0.07 0.04 0.15 NA [11,] 0.00 0.05 0.00 -0.01 0.03 NA [12,] 0.00 0.00 0.00 0.00 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/167051331755899.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/214hw1331755899.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/3sg3p1331755899.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/4f96y1331755899.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,] 34.74 34.89 34.98 34.93 35.01 35.03 35.03 34.98 34.92 35.04 35.21 35.21 [2,] 35.21 35.26 35.45 35.53 35.53 35.57 35.57 35.57 35.63 35.92 36.05 36.10 [3,] 36.10 36.02 36.07 36.17 36.52 36.49 36.49 36.48 36.62 36.63 36.70 36.70 [4,] 36.70 36.69 36.86 36.85 36.83 36.88 36.88 36.92 36.93 37.06 37.10 37.09 [5,] 37.09 37.15 37.27 37.43 37.42 37.40 37.40 37.39 37.42 37.70 37.85 37.88 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 35.04717 35.00957 35.0737 35.23729 35.60142 35.56436 35.56436 35.52609 [2,] 37.15283 37.03043 37.0663 37.10271 37.43858 37.41564 37.41564 37.43391 [,9] [,10] [,11] [,12] [1,] 35.70142 35.82448 35.95807 36.00047 [2,] 37.53858 37.43552 37.44193 37.39953 $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(34.74, 35.21, 36.1, 36.7, 37.09, 34.89, 35.26, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5mq2s1331755899.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.08 0.05 -0.05 -0.02 -0.03 0 -0.01 -0.06 0.01 0.04 -0.01 0 [2,] -0.01 0.09 -0.01 -0.01 -0.02 0 -0.01 0.01 0.12 0.07 0.00 0 [3,] 0.05 0.12 0.08 0.00 0.02 0 -0.01 0.03 0.13 0.13 0.00 0 [4,] 0.06 0.17 0.10 0.08 0.04 0 0.00 0.06 0.28 0.15 0.03 0 [5,] 0.15 0.19 0.16 0.08 0.05 0 0.00 0.06 0.29 0.17 0.05 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.0005381763 0.0634722 0.002274277 -0.06359377 -0.02239585 0 [2,] 0.0994618237 0.1765278 0.157725723 0.06359377 0.06239585 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.017065975 -0.005329874 0.0169444 0.0734722 -0.02119792 0 [2,] -0.002934025 0.065329874 0.2430556 0.1865278 0.02119792 0 $out [1] 0.35 -0.05 0.04 0.14 $group [1] 4 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0799999999999983, -0.0100000000000051, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/636mk1331755899.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,] 34.890 35.210 36.020 36.690 37.090 NA [2,] 34.925 35.490 36.135 36.840 37.330 NA [3,] 34.995 35.570 36.490 36.880 37.410 NA [4,] 35.035 35.775 36.625 36.995 37.565 NA [5,] 35.040 36.100 36.700 37.100 37.880 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 34.94483 35.44001 36.26651 36.8093 37.30281 NA [2,] 35.04517 35.69999 36.71349 36.9507 37.51719 NA $out [1] 34.74 35.21 35.21 $group [1] 1 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(34.89, 34.925, 34.995, 35.035, 35.04, 35.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7hu891331755899.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,] 35.968 36.020 35.9550 [2,] 36.154 36.135 36.1675 [3,] 36.271 36.490 36.2250 [4,] 36.387 36.625 36.3850 [5,] 36.596 36.700 36.5950 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 36.16473 36.26651 36.1258 [2,] 36.37727 36.71349 36.3242 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(35.968, 36.154, 36.271, 36.387, 36.596, 36.02, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/167051331755899.ps tmp/167051331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/214hw1331755899.ps tmp/214hw1331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/3sg3p1331755899.ps tmp/3sg3p1331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/4f96y1331755899.ps tmp/4f96y1331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/5mq2s1331755899.ps tmp/5mq2s1331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/636mk1331755899.ps tmp/636mk1331755899.png",intern=TRUE)) character(0) > try(system("convert tmp/7hu891331755899.ps tmp/7hu891331755899.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.683 0.414 2.113