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(0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.7,0.7,0.68,0.68,0.69,0.69,0.7,0.7,0.7,0.7,0.7,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.71,0.76,0.77,0.78,0.85,0.89,0.9,0.91,0.91,0.91,0.9,0.89,0.88,0.87,0.86,0.87,0.87,0.87,0.85,0.84,0.84,0.84,0.84,0.84,0.82,0.87,0.92,0.92,0.92,0.93,0.94,0.87,0.84,0.83,0.81,0.81,0.81,0.8,0.8,0.8,0.8,0.8,0.8) > 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,] 0.71 0.68 0.71 0.91 0.84 0.87 NA [2,] 0.71 0.68 0.71 0.91 0.84 0.84 NA [3,] 0.71 0.69 0.71 0.91 0.84 0.83 NA [4,] 0.71 0.69 0.71 0.90 0.84 0.81 NA [5,] 0.71 0.70 0.71 0.89 0.84 0.81 NA [6,] 0.71 0.70 0.71 0.88 0.82 0.81 NA [7,] 0.71 0.70 0.76 0.87 0.87 0.80 NA [8,] 0.71 0.70 0.77 0.86 0.92 0.80 NA [9,] 0.71 0.70 0.78 0.87 0.92 0.80 NA [10,] 0.71 0.71 0.85 0.87 0.92 0.80 NA [11,] 0.70 0.71 0.89 0.87 0.93 0.80 NA [12,] 0.70 0.71 0.90 0.85 0.94 0.80 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 0.00 -0.03 NA [2,] 0.00 0.01 0.00 0.00 0.00 -0.01 NA [3,] 0.00 0.00 0.00 -0.01 0.00 -0.02 NA [4,] 0.00 0.01 0.00 -0.01 0.00 0.00 NA [5,] 0.00 0.00 0.00 -0.01 -0.02 0.00 NA [6,] 0.00 0.00 0.05 -0.01 0.05 -0.01 NA [7,] 0.00 0.00 0.01 -0.01 0.05 0.00 NA [8,] 0.00 0.00 0.01 0.01 0.00 0.00 NA [9,] 0.00 0.01 0.07 0.00 0.00 0.00 NA [10,] -0.01 0.00 0.04 0.00 0.01 0.00 NA [11,] 0.00 0.00 0.01 -0.02 0.01 0.00 NA [12,] -0.02 0.00 0.01 -0.01 -0.07 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/1vze81319182600.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/2y7x21319182600.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/31dpy1319182600.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/4taez1319182600.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,] 0.680 0.680 0.69 0.69 0.70 0.70 0.70 0.700 0.70 0.710 0.700 0.700 [2,] 0.710 0.710 0.71 0.71 0.71 0.71 0.71 0.710 0.71 0.710 0.710 0.710 [3,] 0.775 0.775 0.77 0.76 0.76 0.76 0.78 0.785 0.79 0.825 0.835 0.825 [4,] 0.870 0.840 0.84 0.84 0.84 0.82 0.87 0.860 0.87 0.870 0.890 0.900 [5,] 0.910 0.910 0.91 0.90 0.89 0.88 0.87 0.920 0.92 0.920 0.930 0.940 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.6717948 0.6911458 0.6861458 0.6761458 0.6761458 0.6890464 0.6767948 [2,] 0.8782052 0.8588542 0.8538542 0.8438542 0.8438542 0.8309536 0.8832052 [,8] [,9] [,10] [,11] [,12] [1,] 0.6882452 0.6867948 0.7217948 0.7188942 0.7024439 [2,] 0.8817548 0.8932052 0.9282052 0.9511058 0.9475561 $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(0.68, 0.71, 0.775, 0.87, 0.91, 0.68, 0.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5ekgq1319182600.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 0 -0.02 0 -0.02 -0.01 -0.01 0.00 0.00 -0.01 0.00 -0.02 [2,] 0 0 -0.01 0 -0.01 -0.01 0.00 0.00 0.00 0.00 0.00 -0.02 [3,] 0 0 0.00 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -0.01 [4,] 0 0 0.00 0 0.00 0.05 0.01 0.01 0.01 0.01 0.01 0.00 [5,] 0 0 0.00 0 0.00 0.05 0.01 0.01 0.01 0.01 0.01 0.01 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 0 -0.006450323 0 -0.006450323 -0.03870194 -0.006450323 [2,] 0 0 0.006450323 0 0.006450323 0.03870194 0.006450323 [,8] [,9] [,10] [,11] [,12] [1,] -0.006450323 -0.006450323 -0.006450323 -0.006450323 -0.02413195 [2,] 0.006450323 0.006450323 0.006450323 0.006450323 0.00413195 $out [1] -0.03 0.01 -0.01 0.01 -0.01 0.05 0.07 0.04 -0.02 -0.07 $group [1] 1 2 2 4 4 7 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.0199999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6sqwv1319182600.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,] 0.71 0.680 0.710 0.850 0.820 0.800 NA [2,] 0.71 0.690 0.710 0.870 0.840 0.800 NA [3,] 0.71 0.700 0.735 0.875 0.855 0.805 NA [4,] 0.71 0.705 0.815 0.905 0.920 0.820 NA [5,] 0.71 0.710 0.900 0.910 0.940 0.840 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.71 0.6931584 0.6871088 0.8590363 0.8185115 0.7958779 NA [2,] 0.71 0.7068416 0.7828912 0.8909637 0.8914885 0.8141221 NA $out [1] 0.70 0.70 0.87 $group [1] 1 1 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.71, 0.71, 0.71, 0.71, 0.71, 0.68, 0.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7bf1b1319182600.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,] 0.7716667 0.7600 0.763750 [2,] 0.7791667 0.7650 0.772500 [3,] 0.7858333 0.7775 0.785625 [4,] 0.8033333 0.8075 0.794375 [5,] 0.8166667 0.8350 0.810000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.7748108 0.7581155 0.7756477 [2,] 0.7968559 0.7968845 0.7956023 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.771666666666667, 0.779166666666667, 0.785833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vze81319182600.ps tmp/1vze81319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/2y7x21319182600.ps tmp/2y7x21319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/31dpy1319182600.ps tmp/31dpy1319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/4taez1319182600.ps tmp/4taez1319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/5ekgq1319182600.ps tmp/5ekgq1319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/6sqwv1319182600.ps tmp/6sqwv1319182600.png",intern=TRUE)) character(0) > try(system("convert tmp/7bf1b1319182600.ps tmp/7bf1b1319182600.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.616 0.310 1.930