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(1.86,1.86,1.86,1.86,1.85,1.85,1.84,1.84,1.83,1.83,1.83,1.82,1.82,1.82,1.81,1.81,1.81,1.81,1.8,1.8,1.79,1.78,1.77,1.77,1.76,1.76,1.75,1.75,1.74,1.73,1.73,1.73,1.72,1.72,1.72,1.71,1.71,1.71,1.71,1.7,1.7,1.69,1.69,1.68,1.68,1.68,1.68,1.67,1.67,1.66,1.66,1.65,1.65,1.65,1.64,1.63,1.63,1.62,1.62,1.61,1.6,1.6,1.6,1.59,1.59,1.58,1.58,1.58,1.58,1.58,1.58,1.56,1.56,1.55,1.55) > 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] 75 > (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] 7 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.86 1.82 1.76 1.71 1.67 1.60 1.56 [2,] 1.86 1.82 1.76 1.71 1.66 1.60 1.55 [3,] 1.86 1.81 1.75 1.71 1.66 1.60 1.55 [4,] 1.86 1.81 1.75 1.70 1.65 1.59 NA [5,] 1.85 1.81 1.74 1.70 1.65 1.59 NA [6,] 1.85 1.81 1.73 1.69 1.65 1.58 NA [7,] 1.84 1.80 1.73 1.69 1.64 1.58 NA [8,] 1.84 1.80 1.73 1.68 1.63 1.58 NA [9,] 1.83 1.79 1.72 1.68 1.63 1.58 NA [10,] 1.83 1.78 1.72 1.68 1.62 1.58 NA [11,] 1.83 1.77 1.72 1.68 1.62 1.58 NA [12,] 1.82 1.77 1.71 1.67 1.61 1.56 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 -0.01 0.00 -0.01 [2,] 0.00 -0.01 -0.01 0.00 0.00 0.00 0.00 [3,] 0.00 0.00 0.00 -0.01 -0.01 -0.01 NA [4,] -0.01 0.00 -0.01 0.00 0.00 0.00 NA [5,] 0.00 0.00 -0.01 -0.01 0.00 -0.01 NA [6,] -0.01 -0.01 0.00 0.00 -0.01 0.00 NA [7,] 0.00 0.00 0.00 -0.01 -0.01 0.00 NA [8,] -0.01 -0.01 -0.01 0.00 0.00 0.00 NA [9,] 0.00 -0.01 0.00 0.00 -0.01 0.00 NA [10,] 0.00 -0.01 0.00 0.00 0.00 0.00 NA [11,] -0.01 0.00 -0.01 -0.01 -0.01 -0.02 NA [12,] 0.00 -0.01 0.00 0.00 -0.01 0.00 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/1i0af1290679348.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/2srrh1290679348.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/3srrh1290679348.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/4srrh1290679348.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,] 1.560 1.55 1.55 1.590 1.59 1.58 1.58 1.580 1.58 1.58 1.58 1.56 [2,] 1.635 1.63 1.63 1.650 1.65 1.65 1.64 1.630 1.63 1.62 1.62 1.61 [3,] 1.710 1.71 1.71 1.725 1.72 1.71 1.71 1.705 1.70 1.70 1.70 1.69 [4,] 1.790 1.79 1.78 1.810 1.81 1.81 1.80 1.800 1.79 1.78 1.77 1.77 [5,] 1.860 1.86 1.86 1.860 1.85 1.85 1.84 1.840 1.83 1.83 1.83 1.82 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.617437 1.614451 1.620422 1.621795 1.616795 1.606795 1.606795 1.595345 [2,] 1.802563 1.805549 1.799578 1.828205 1.823205 1.813205 1.813205 1.814655 [,9] [,10] [,11] [,12] [1,] 1.596795 1.596795 1.603245 1.586795 [2,] 1.803205 1.803205 1.796755 1.793205 $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.56, 1.635, 1.71, 1.79, 1.86, 1.55, 1.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53iqk1290679348.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] [1,] -0.010 -0.010 -0.010 -0.01 -0.010 -0.010 -0.01 -0.010 -0.01 0 -0.01 [2,] -0.005 -0.005 -0.010 -0.01 -0.010 -0.010 -0.01 -0.010 -0.01 0 -0.01 [3,] 0.000 0.000 -0.005 0.00 -0.005 -0.005 0.00 -0.005 0.00 0 -0.01 [4,] 0.000 0.000 0.000 0.00 0.000 0.000 0.00 0.000 0.00 0 -0.01 [5,] 0.000 0.000 0.000 0.00 0.000 0.000 0.00 0.000 0.00 0 -0.01 [,12] [1,] -0.01 [2,] -0.01 [3,] 0.00 [4,] 0.00 [5,] 0.00 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.002985919 -0.002985919 -0.011450323 -0.006450323 -0.011450323 [2,] 0.002985919 0.002985919 0.001450323 0.006450323 0.001450323 [,6] [,7] [,8] [,9] [,10] [,11] [1,] -0.011450323 -0.006450323 -0.011450323 -0.006450323 0 -0.01 [2,] 0.001450323 0.006450323 0.001450323 0.006450323 0 -0.01 [,12] [1,] -0.006450323 [2,] 0.006450323 $out [1] -0.01 0.00 -0.02 $group [1] 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.01, -0.005, 0, 0, 0, -0.01, -0.005, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63iqk1290679348.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,] 1.820 1.770 1.71 1.670 1.610 1.560 1.550 [2,] 1.830 1.785 1.72 1.680 1.625 1.580 1.550 [3,] 1.845 1.805 1.73 1.690 1.645 1.580 1.550 [4,] 1.860 1.810 1.75 1.705 1.655 1.595 1.555 [5,] 1.860 1.820 1.76 1.710 1.670 1.600 1.560 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.831317 1.793597 1.716317 1.678597 1.631317 1.573158 1.545439 [2,] 1.858683 1.816403 1.743683 1.701403 1.658683 1.586842 1.554561 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.82, 1.83, 1.845, 1.86, 1.86, 1.77, 1.785, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7espo1290679348.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,] 1.690000 1.690 1.69000 [2,] 1.703333 1.700 1.70250 [3,] 1.709286 1.710 1.71125 [4,] 1.715833 1.710 1.72125 [5,] 1.726667 1.725 1.72875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.703584 1.705439 1.702698 [2,] 1.714987 1.714561 1.719802 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.69, 1.70333333333333, 1.70928571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1i0af1290679348.ps tmp/1i0af1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/2srrh1290679348.ps tmp/2srrh1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/3srrh1290679348.ps tmp/3srrh1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/4srrh1290679348.ps tmp/4srrh1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/53iqk1290679348.ps tmp/53iqk1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/63iqk1290679348.ps tmp/63iqk1290679348.png",intern=TRUE)) character(0) > try(system("convert tmp/7espo1290679348.ps tmp/7espo1290679348.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.221 0.990 8.142