R version 2.6.2 (2008-02-08) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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.36,0.35,0.35,0.35,0.33,0.78,0.71,0.62,0.52,0.46,0.43,0.43,0.42,0.42,0.42,0.42,0.43,0.99,1.03,0.83,0.64,0.6,0.58,0.58,0.58,0.57,0.57,0.56,0.56,0.88,0.84,0.69,0.59,0.54,0.52,0.52,0.51,0.52,0.51,0.51,0.53,0.95,0.98,0.88,0.81,0.77,0.76,0.75,0.73,0.74,0.73,0.75,0.77,1.09,1.03,0.9,0.76,0.66,0.63,0.61,0.61,0.61,0.61,0.61,0.62,0.76,0.83,0.81,0.77,0.75,0.76,0.76) > 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.36 0.42 0.58 0.51 0.73 0.61 NA [2,] 0.35 0.42 0.57 0.52 0.74 0.61 NA [3,] 0.35 0.42 0.57 0.51 0.73 0.61 NA [4,] 0.35 0.42 0.56 0.51 0.75 0.61 NA [5,] 0.33 0.43 0.56 0.53 0.77 0.62 NA [6,] 0.78 0.99 0.88 0.95 1.09 0.76 NA [7,] 0.71 1.03 0.84 0.98 1.03 0.83 NA [8,] 0.62 0.83 0.69 0.88 0.90 0.81 NA [9,] 0.52 0.64 0.59 0.81 0.76 0.77 NA [10,] 0.46 0.60 0.54 0.77 0.66 0.75 NA [11,] 0.43 0.58 0.52 0.76 0.63 0.76 NA [12,] 0.43 0.58 0.52 0.75 0.61 0.76 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.01 0.00 -0.01 0.01 0.01 0.00 NA [2,] 0.00 0.00 0.00 -0.01 -0.01 0.00 NA [3,] 0.00 0.00 -0.01 0.00 0.02 0.00 NA [4,] -0.02 0.01 0.00 0.02 0.02 0.01 NA [5,] 0.45 0.56 0.32 0.42 0.32 0.14 NA [6,] -0.07 0.04 -0.04 0.03 -0.06 0.07 NA [7,] -0.09 -0.20 -0.15 -0.10 -0.13 -0.02 NA [8,] -0.10 -0.19 -0.10 -0.07 -0.14 -0.04 NA [9,] -0.06 -0.04 -0.05 -0.04 -0.10 -0.02 NA [10,] -0.03 -0.02 -0.02 -0.01 -0.03 0.01 NA [11,] 0.00 0.00 0.00 -0.01 -0.02 0.00 NA [12,] -0.01 0.00 -0.01 -0.02 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/www/html/rcomp/tmp/1ayzx1209398334.ps",horizontal=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/www/html/rcomp/tmp/273fp1209398334.ps",horizontal=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/www/html/rcomp/tmp/3bdih1209398334.ps",horizontal=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/www/html/rcomp/tmp/4yvmq1209398334.ps",horizontal=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.360 0.350 0.35 0.350 0.330 0.760 0.71 0.62 0.52 0.46 0.430 0.430 [2,] 0.420 0.420 0.42 0.420 0.430 0.780 0.83 0.69 0.59 0.54 0.520 0.520 [3,] 0.545 0.545 0.54 0.535 0.545 0.915 0.91 0.82 0.70 0.63 0.605 0.595 [4,] 0.610 0.610 0.61 0.610 0.620 0.990 1.03 0.88 0.77 0.75 0.760 0.750 [5,] 0.730 0.740 0.73 0.750 0.770 1.090 1.03 0.90 0.81 0.77 0.760 0.760 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4224439 0.4224439 0.4174439 0.4124439 0.4224439 0.7795432 0.7809935 [2,] 0.6675561 0.6675561 0.6625561 0.6575561 0.6675561 1.0504568 1.0390065 [,8] [,9] [,10] [,11] [,12] [1,] 0.6974439 0.5838942 0.4945432 0.4501922 0.4466426 [2,] 0.9425561 0.8161058 0.7654568 0.7598078 0.7433574 $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.36, 0.42, 0.545, 0.61, 0.73, 0.35, 0.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5z25c1209398335.ps",horizontal=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.01 -0.01 0 -0.02 0.14 -0.070 -0.200 -0.19 -0.060 -0.03 -0.02 -0.02 [2,] -0.01 -0.01 0 0.00 0.32 -0.060 -0.150 -0.14 -0.060 -0.03 -0.01 -0.01 [3,] 0.00 0.00 0 0.01 0.37 -0.005 -0.115 -0.10 -0.045 -0.02 0.00 -0.01 [4,] 0.01 0.00 0 0.02 0.45 0.040 -0.090 -0.07 -0.040 -0.01 0.00 0.00 [5,] 0.01 0.00 0 0.02 0.56 0.070 -0.020 -0.04 -0.020 0.01 0.00 0.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01290065 -0.006450323 0 -0.002900646 0.2861458 -0.06950323 [2,] 0.01290065 0.006450323 0 0.022900646 0.4538542 0.05950323 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.15370194 -0.14515226 -0.05790065 -0.032900646 -0.006450323 -0.017065975 [2,] -0.07629806 -0.05484774 -0.03209935 -0.007099354 0.006450323 -0.002934025 $out [1] -0.01 0.02 -0.10 $group [1] 3 3 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.01, 0, 0.01, 0.01, -0.01, -0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vzjo1209398335.ps",horizontal=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.33 0.420 0.52 0.510 0.610 0.610 NA [2,] 0.35 0.420 0.55 0.515 0.695 0.610 NA [3,] 0.43 0.580 0.57 0.755 0.745 0.755 NA [4,] 0.57 0.735 0.64 0.845 0.835 0.765 NA [5,] 0.78 1.030 0.69 0.980 1.030 0.830 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3296565 0.4363264 0.5289504 0.6044848 0.681145 0.6843035 NA [2,] 0.5303435 0.7236736 0.6110496 0.9055152 0.808855 0.8256965 NA $out [1] 0.88 0.84 1.09 $group [1] 3 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.33, 0.35, 0.43, 0.57, 0.78, 0.42, 0.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7vjjb1209398335.ps",horizontal=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.5316667 0.535 0.520000 [2,] 0.5350000 0.545 0.522500 [3,] 0.6108333 0.600 0.628125 [4,] 0.7350000 0.760 0.739375 [5,] 0.9083333 0.915 0.925000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5196120 0.5019371 0.5292069 [2,] 0.7020547 0.6980629 0.7270431 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.531666666666667, 0.535, 0.610833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ayzx1209398334.ps tmp/1ayzx1209398334.png") > system("convert tmp/273fp1209398334.ps tmp/273fp1209398334.png") > system("convert tmp/3bdih1209398334.ps tmp/3bdih1209398334.png") > system("convert tmp/4yvmq1209398334.ps tmp/4yvmq1209398334.png") > system("convert tmp/5z25c1209398335.ps tmp/5z25c1209398335.png") > system("convert tmp/6vzjo1209398335.ps tmp/6vzjo1209398335.png") > system("convert tmp/7vjjb1209398335.ps tmp/7vjjb1209398335.png") > > > proc.time() user system elapsed 1.406 0.964 1.725