R version 2.9.0 (2009-04-17) Copyright (C) 2009 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.61,0.62,0.61,0.63,0.63,0.58,0.55,0.54,0.54,0.49,0.52,0.53,0.56,0.56,0.58,0.6,0.59,0.61,0.63,0.69,0.68,0.7,0.7,0.76,0.78,0.89,0.94,0.95,0.83,0.81,0.73,0.64,0.51,0.5,0.47,0.43,0.47,0.48,0.52,0.5,0.55,0.52,0.52,0.55,0.54,0.59,0.56,0.61,0.66,0.68,0.66,0.64,0.65) > 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] 53 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 0.61 0.56 0.78 0.47 0.66 [2,] 0.62 0.56 0.89 0.48 0.68 [3,] 0.61 0.58 0.94 0.52 0.66 [4,] 0.63 0.60 0.95 0.50 0.64 [5,] 0.63 0.59 0.83 0.55 0.65 [6,] 0.58 0.61 0.81 0.52 NA [7,] 0.55 0.63 0.73 0.52 NA [8,] 0.54 0.69 0.64 0.55 NA [9,] 0.54 0.68 0.51 0.54 NA [10,] 0.49 0.70 0.50 0.59 NA [11,] 0.52 0.70 0.47 0.56 NA [12,] 0.53 0.76 0.43 0.61 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.01 0.00 0.11 0.01 0.02 [2,] -0.01 0.02 0.05 0.04 -0.02 [3,] 0.02 0.02 0.01 -0.02 -0.02 [4,] 0.00 -0.01 -0.12 0.05 0.01 [5,] -0.05 0.02 -0.02 -0.03 NA [6,] -0.03 0.02 -0.08 0.00 NA [7,] -0.01 0.06 -0.09 0.03 NA [8,] 0.00 -0.01 -0.13 -0.01 NA [9,] -0.05 0.02 -0.01 0.05 NA [10,] 0.03 0.00 -0.03 -0.03 NA [11,] 0.01 0.06 -0.04 0.05 NA [12,] 0.03 0.02 0.04 0.05 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/1dszm1292703449.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/www/html/rcomp/tmp/2o0yp1292703449.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/www/html/rcomp/tmp/3o0yp1292703449.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/www/html/rcomp/tmp/4zaga1292703449.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.47 0.48 0.52 0.60 0.55 0.520 0.520 0.540 0.510 0.490 0.470 0.430 [2,] 0.56 0.56 0.58 0.60 0.59 0.550 0.535 0.545 0.525 0.495 0.495 0.480 [3,] 0.61 0.62 0.61 0.63 0.63 0.595 0.590 0.595 0.540 0.545 0.540 0.570 [4,] 0.66 0.68 0.66 0.64 0.65 0.710 0.680 0.665 0.610 0.645 0.630 0.685 [5,] 0.78 0.68 0.66 0.64 0.65 0.810 0.730 0.690 0.680 0.700 0.700 0.760 $n [1] 5 5 5 5 5 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.5393403 0.5352083 0.5534722 0.6017361 0.5876042 0.4686 0.47545 0.5002 [2,] 0.6806597 0.7047917 0.6665278 0.6582639 0.6723958 0.7214 0.70455 0.6898 [,9] [,10] [,11] [,12] [1,] 0.47285 0.4265 0.43335 0.40805 [2,] 0.60715 0.6635 0.64665 0.73195 $out [1] 0.89 0.94 0.95 0.50 0.83 $group [1] 2 3 4 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.47, 0.56, 0.61, 0.66, 0.78, 0.48, 0.56, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zaga1292703449.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] [1,] 0.00 -0.02 -0.02 -0.01 -5.000000e-02 -0.080 -0.090 -0.130 -0.050 -0.030 [2,] 0.01 -0.01 -0.02 -0.01 -4.000000e-02 -0.055 -0.050 -0.070 -0.030 -0.030 [3,] 0.01 0.02 0.01 0.00 -2.500000e-02 -0.015 0.010 -0.010 0.005 -0.015 [4,] 0.02 0.04 0.02 0.01 5.551115e-17 0.010 0.045 -0.005 0.035 0.015 [5,] 0.02 0.05 0.02 0.01 2.000000e-02 0.020 0.060 0.000 0.050 0.030 [,11] [,12] [1,] -0.040 0.020 [2,] -0.015 0.025 [3,] 0.030 0.035 [4,] 0.055 0.045 [5,] 0.060 0.050 $n [1] 5 5 5 5 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.002934025 -0.01532987 -0.0182639 -0.01413195 -0.0566 -0.06635 -0.06505 [2,] 0.017065975 0.05532987 0.0382639 0.01413195 0.0066 0.03635 0.08505 [,8] [,9] [,10] [,11] [,12] [1,] -0.06135 -0.04635 -0.05055 -0.0253 0.0192 [2,] 0.04135 0.05635 0.02055 0.0853 0.0508 $out [1] 0.11 -0.12 0.05 $group [1] 1 4 4 $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.01, 0.02, 0.02, -0.02, -0.01, 0.0199999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zaga1292703449.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] [1,] 0.490 0.560 0.430 0.470 0.64 [2,] 0.535 0.585 0.505 0.510 0.65 [3,] 0.565 0.620 0.755 0.530 0.66 [4,] 0.615 0.695 0.860 0.555 0.66 [5,] 0.630 0.760 0.950 0.610 0.66 $n [1] 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.5285115 0.5698283 0.5930821 0.5094752 0.652934 [2,] 0.6014885 0.6701717 0.9169179 0.5505248 0.667066 $out [1] 0.68 $group [1] 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(0.49, 0.535, 0.565, 0.615, 0.63, 0.56, 0.585, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/791xv1292703449.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.56250 0.5400 0.551250 [2,] 0.57625 0.5575 0.566875 [3,] 0.61175 0.5950 0.605000 [4,] 0.64800 0.6150 0.620000 [5,] 0.66400 0.6300 0.620000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5790243 0.5687739 0.5807693 [2,] 0.6444757 0.6212261 0.6292307 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.5625, 0.57625, 0.61175, 0.648, 0.664, 0.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dszm1292703449.ps tmp/1dszm1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/2o0yp1292703449.ps tmp/2o0yp1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/3o0yp1292703449.ps tmp/3o0yp1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/4zaga1292703449.ps tmp/4zaga1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/5zaga1292703449.ps tmp/5zaga1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/6zaga1292703449.ps tmp/6zaga1292703449.png",intern=TRUE)) character(0) > try(system("convert tmp/791xv1292703449.ps tmp/791xv1292703449.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.207 1.013 3.342