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.79,1.79,1.79,1.79,1.78,1.78,1.77,1.76,1.76,1.76,1.75,1.75,1.75,1.74,1.73,1.73,1.73,1.73,1.72,1.72,1.71,1.7,1.69,1.68,1.68,1.67,1.67,1.66,1.65,1.65,1.64,1.64,1.64,1.63,1.63,1.63,1.63,1.63,1.63,1.62,1.62,1.61,1.6,1.6,1.59,1.59,1.58,1.58,1.58,1.58,1.57,1.57,1.56,1.56,1.55,1.54,1.53,1.53,1.53,1.52,1.51,1.5,1.5,1.49,1.49,1.48,1.47,1.47,1.47,1.46,1.46,1.44,1.43,1.43,1.42) > 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.79 1.75 1.68 1.63 1.58 1.51 1.43 [2,] 1.79 1.74 1.67 1.63 1.58 1.50 1.43 [3,] 1.79 1.73 1.67 1.63 1.57 1.50 1.42 [4,] 1.79 1.73 1.66 1.62 1.57 1.49 NA [5,] 1.78 1.73 1.65 1.62 1.56 1.49 NA [6,] 1.78 1.73 1.65 1.61 1.56 1.48 NA [7,] 1.77 1.72 1.64 1.60 1.55 1.47 NA [8,] 1.76 1.72 1.64 1.60 1.54 1.47 NA [9,] 1.76 1.71 1.64 1.59 1.53 1.47 NA [10,] 1.76 1.70 1.63 1.59 1.53 1.46 NA [11,] 1.75 1.69 1.63 1.58 1.53 1.46 NA [12,] 1.75 1.68 1.63 1.58 1.52 1.44 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 -0.01 -0.01 0.00 0.00 -0.01 0.00 [2,] 0.00 -0.01 0.00 0.00 -0.01 0.00 -0.01 [3,] 0.00 0.00 -0.01 -0.01 0.00 -0.01 NA [4,] -0.01 0.00 -0.01 0.00 -0.01 0.00 NA [5,] 0.00 0.00 0.00 -0.01 0.00 -0.01 NA [6,] -0.01 -0.01 -0.01 -0.01 -0.01 -0.01 NA [7,] -0.01 0.00 0.00 0.00 -0.01 0.00 NA [8,] 0.00 -0.01 0.00 -0.01 -0.01 0.00 NA [9,] 0.00 -0.01 -0.01 0.00 0.00 -0.01 NA [10,] -0.01 -0.01 0.00 -0.01 0.00 0.00 NA [11,] 0.00 -0.01 0.00 0.00 -0.01 -0.02 NA [12,] 0.00 0.00 0.00 0.00 -0.01 -0.01 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/1srrh1290679244.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/23iqk1290679244.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/33iqk1290679244.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/43iqk1290679244.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.430 1.430 1.420 1.49 1.490 1.48 1.47 1.47 1.470 1.46 1.460 1.440 [2,] 1.545 1.540 1.535 1.57 1.560 1.56 1.55 1.54 1.530 1.53 1.530 1.520 [3,] 1.630 1.630 1.630 1.64 1.635 1.63 1.62 1.62 1.615 1.61 1.605 1.605 [4,] 1.715 1.705 1.700 1.73 1.730 1.73 1.72 1.72 1.710 1.70 1.690 1.680 [5,] 1.790 1.790 1.790 1.79 1.780 1.78 1.77 1.76 1.760 1.76 1.750 1.750 $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.528479 1.531465 1.531465 1.536795 1.525345 1.520345 1.510345 1.503894 [2,] 1.731521 1.728535 1.728535 1.743205 1.744655 1.739655 1.729655 1.736106 [,9] [,10] [,11] [,12] [1,] 1.498894 1.500345 1.501795 1.501795 [2,] 1.731106 1.719655 1.708205 1.708205 $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.43, 1.545, 1.63, 1.715, 1.79, 1.43, 1.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5espo1290679244.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.01 -0.01 -0.010 -0.010 -0.01 -0.01 -0.01 -0.010 -0.010 -0.010 -0.020 [2,] -0.01 -0.01 -0.010 -0.010 -0.01 -0.01 -0.01 -0.010 -0.010 -0.010 -0.010 [3,] 0.00 0.00 -0.005 -0.005 0.00 -0.01 0.00 -0.005 -0.005 -0.005 -0.005 [4,] 0.00 0.00 0.000 0.000 0.00 -0.01 0.00 0.000 0.000 0.000 0.000 [5,] 0.00 0.00 0.000 0.000 0.00 -0.01 0.00 0.000 0.000 0.000 0.000 [,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] [,6] [1,] -0.005971839 -0.005971839 -0.011450323 -0.011450323 -0.006450323 -0.01 [2,] 0.005971839 0.005971839 0.001450323 0.001450323 0.006450323 -0.01 [,7] [,8] [,9] [,10] [,11] [1,] -0.006450323 -0.011450323 -0.011450323 -0.011450323 -0.011450323 [2,] 0.006450323 0.001450323 0.001450323 0.001450323 0.001450323 [,12] [1,] -0.006450323 [2,] 0.006450323 $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.01, -0.01, 0, 0, 0, -0.01, -0.01, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6espo1290679244.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.750 1.680 1.630 1.580 1.520 1.440 1.420 [2,] 1.760 1.705 1.635 1.590 1.530 1.465 1.425 [3,] 1.775 1.725 1.645 1.605 1.555 1.475 1.430 [4,] 1.790 1.730 1.665 1.625 1.570 1.495 1.430 [5,] 1.790 1.750 1.680 1.630 1.580 1.510 1.430 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.761317 1.713597 1.631317 1.589036 1.536756 1.461317 1.425439 [2,] 1.788683 1.736403 1.658683 1.620964 1.573244 1.488683 1.434561 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.75, 1.76, 1.775, 1.79, 1.79, 1.68, 1.705, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/76jpq1290679244.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.600000 1.6050 1.601250 [2,] 1.613690 1.6125 1.615625 [3,] 1.620833 1.6250 1.625000 [4,] 1.630000 1.6300 1.636250 [5,] 1.643333 1.6400 1.647500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.613394 1.617018 1.615593 [2,] 1.628272 1.632982 1.634407 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.6, 1.61369047619048, 1.62083333333333, 1.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1srrh1290679244.ps tmp/1srrh1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/23iqk1290679244.ps tmp/23iqk1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/33iqk1290679244.ps tmp/33iqk1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/43iqk1290679244.ps tmp/43iqk1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/5espo1290679244.ps tmp/5espo1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/6espo1290679244.ps tmp/6espo1290679244.png",intern=TRUE)) character(0) > try(system("convert tmp/76jpq1290679244.ps tmp/76jpq1290679244.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.191 0.956 2.963