R version 2.8.0 (2008-10-20) 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(1.83,1.89,1.9,2.01,2.04,2.04,2.03,2.04,1.87,1.85,1.82,1.79,1.88,2.01,1.9,1.96,1.94,1.92,1.79,1.77,1.74,1.75,1.86,1.84,1.77,1.98,1.94,1.85,1.84,1.82,1.83,1.91,1.85,1.81,1.83,1.79,1.8,1.82,1.88,2.01,1.97,1.92,1.98,2.02,1.9,1.94,1.96,1.84,1.87,1.84,2.07,2.08,2.14,2.15,2.05,2.05,1.95,2.02,2.02,1.88,1.96,1.93,2.03,2.1,1.95,2.07,2.09,2.01,1.92,1.99,2.11,2) > 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,] 1.83 1.88 1.77 1.80 1.87 1.96 NA [2,] 1.89 2.01 1.98 1.82 1.84 1.93 NA [3,] 1.90 1.90 1.94 1.88 2.07 2.03 NA [4,] 2.01 1.96 1.85 2.01 2.08 2.10 NA [5,] 2.04 1.94 1.84 1.97 2.14 1.95 NA [6,] 2.04 1.92 1.82 1.92 2.15 2.07 NA [7,] 2.03 1.79 1.83 1.98 2.05 2.09 NA [8,] 2.04 1.77 1.91 2.02 2.05 2.01 NA [9,] 1.87 1.74 1.85 1.90 1.95 1.92 NA [10,] 1.85 1.75 1.81 1.94 2.02 1.99 NA [11,] 1.82 1.86 1.83 1.96 2.02 2.11 NA [12,] 1.79 1.84 1.79 1.84 1.88 2.00 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.06 0.13 0.21 0.02 -0.03 -0.03 NA [2,] 0.01 -0.11 -0.04 0.06 0.23 0.10 NA [3,] 0.11 0.06 -0.09 0.13 0.01 0.07 NA [4,] 0.03 -0.02 -0.01 -0.04 0.06 -0.15 NA [5,] 0.00 -0.02 -0.02 -0.05 0.01 0.12 NA [6,] -0.01 -0.13 0.01 0.06 -0.10 0.02 NA [7,] 0.01 -0.02 0.08 0.04 0.00 -0.08 NA [8,] -0.17 -0.03 -0.06 -0.12 -0.10 -0.09 NA [9,] -0.02 0.01 -0.04 0.04 0.07 0.07 NA [10,] -0.03 0.11 0.02 0.02 0.00 0.12 NA [11,] -0.03 -0.02 -0.04 -0.12 -0.14 -0.11 NA [12,] 0.09 -0.07 0.01 0.03 0.08 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/1re9l1228418084.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/2c2mg1228418085.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/3xzz31228418085.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/4pbde1228418085.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.77 1.82 1.88 1.85 1.84 1.82 1.790 1.770 1.850 1.750 1.82 1.79 [2,] 1.80 1.84 1.90 1.96 1.94 1.92 1.830 1.910 1.850 1.810 1.83 1.79 [3,] 1.85 1.91 1.92 2.01 1.96 1.98 2.005 2.015 1.885 1.895 1.91 1.84 [4,] 1.88 1.98 2.03 2.08 2.04 2.07 2.050 2.040 1.920 1.990 2.02 1.88 [5,] 1.96 2.01 2.07 2.10 2.14 2.15 2.090 2.050 1.950 2.020 2.11 2.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.798397 1.819695 1.836146 1.932596 1.895497 1.883245 1.863093 1.931146 [2,] 1.901603 2.000305 2.003854 2.087404 2.024503 2.076755 2.146907 2.098854 [,9] [,10] [,11] [,12] [1,] 1.839848 1.778894 1.787444 1.781947 [2,] 1.930152 2.011106 2.032556 1.898053 $out [1] 1.74 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.77, 1.8, 1.85, 1.88, 1.96, 1.82, 1.84, 1.91, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5b1fh1228418085.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] [1,] -0.03 -0.110 -0.090 -0.040 -0.05 -1.300000e-01 -0.080 -0.170 -0.040 -0.03 [2,] -0.03 -0.040 0.010 -0.040 -0.02 -1.000000e-01 -0.020 -0.120 -0.020 0.00 [3,] 0.04 0.035 0.065 -0.015 -0.01 -1.110223e-16 0.005 -0.095 0.025 0.02 [4,] 0.13 0.100 0.110 0.030 0.01 2.000000e-02 0.040 -0.060 0.070 0.11 [5,] 0.21 0.230 0.130 0.060 0.01 6.000000e-02 0.080 -0.030 0.070 0.12 [,11] [,12] [1,] -0.140 -0.07 [2,] -0.120 0.01 [3,] -0.075 0.03 [4,] -0.030 0.08 [5,] -0.020 0.09 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.06320517 -0.05530452 0.0004967701 -0.06015226 -0.029350969 -0.07740388 [2,] 0.14320517 0.12530452 0.1295032299 0.03015226 0.009350969 0.07740388 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.03370194 -0.13370194 -0.03305291 -0.05095355 -0.13305291 -0.01946182 [2,] 0.04370194 -0.05629806 0.08305291 0.09095355 -0.01694709 0.07946182 $out [1] -0.15 0.12 $group [1] 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.03, -0.03, 0.0399999999999999, 0.13, 0.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z2v31228418085.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.790 1.74 1.770 1.800 1.840 1.920 NA [2,] 1.840 1.78 1.815 1.860 1.915 1.955 NA [3,] 1.895 1.87 1.835 1.930 2.035 2.005 NA [4,] 2.035 1.93 1.880 1.975 2.075 2.080 NA [5,] 2.040 2.01 1.940 2.020 2.150 2.110 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.806059 1.801584 1.805353 1.877548 1.962023 1.947987 NA [2,] 1.983941 1.938416 1.864647 1.982452 2.107977 2.062013 NA $out [1] 1.98 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.79, 1.84, 1.895, 2.035, 2.04, 1.74, 1.78, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7twwa1228418085.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.851667 1.8400 1.836250 [2,] 1.882500 1.8900 1.891875 [3,] 1.943333 1.9150 1.937500 [4,] 1.973333 1.9925 1.983750 [5,] 2.001667 2.0150 2.017500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.901904 1.868249 1.895595 [2,] 1.984763 1.961751 1.979405 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.85166666666667, 1.8825, 1.94333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1re9l1228418084.ps tmp/1re9l1228418084.png") > system("convert tmp/2c2mg1228418085.ps tmp/2c2mg1228418085.png") > system("convert tmp/3xzz31228418085.ps tmp/3xzz31228418085.png") > system("convert tmp/4pbde1228418085.ps tmp/4pbde1228418085.png") > system("convert tmp/5b1fh1228418085.ps tmp/5b1fh1228418085.png") > system("convert tmp/6z2v31228418085.ps tmp/6z2v31228418085.png") > system("convert tmp/7twwa1228418085.ps tmp/7twwa1228418085.png") > > > proc.time() user system elapsed 1.203 0.965 1.506