R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(7.08,7.08,7.09,7.07,7.06,6.99,6.99,6.99,6.98,6.96,6.95,6.91,6.91,6.87,6.91,6.89,6.88,6.9,6.91,6.85,6.86,6.82,6.8,6.83,6.84,6.89,7.14,7.21,7.25,7.31,7.3,7.48,7.49,7.4,7.44,7.42,7.14,7.24,7.33,7.61,7.66,7.69,7.7,7.68,7.71,7.71,7.72,7.68,7.72,7.74,7.76,7.9,7.97,7.96,7.95,7.97,7.93,7.99,7.96,7.92,7.97,7.98,8,8.04,8.17,8.29,8.26,8.3,8.32,8.28,8.27,8.32,8.31,8.34,8.32,8.36,8.33,8.35,8.34,8.37,8.31,8.33,8.34,8.25) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.08 6.91 6.84 7.14 7.72 7.97 8.31 NA [2,] 7.08 6.87 6.89 7.24 7.74 7.98 8.34 NA [3,] 7.09 6.91 7.14 7.33 7.76 8.00 8.32 NA [4,] 7.07 6.89 7.21 7.61 7.90 8.04 8.36 NA [5,] 7.06 6.88 7.25 7.66 7.97 8.17 8.33 NA [6,] 6.99 6.90 7.31 7.69 7.96 8.29 8.35 NA [7,] 6.99 6.91 7.30 7.70 7.95 8.26 8.34 NA [8,] 6.99 6.85 7.48 7.68 7.97 8.30 8.37 NA [9,] 6.98 6.86 7.49 7.71 7.93 8.32 8.31 NA [10,] 6.96 6.82 7.40 7.71 7.99 8.28 8.33 NA [11,] 6.95 6.80 7.44 7.72 7.96 8.27 8.34 NA [12,] 6.91 6.83 7.42 7.68 7.92 8.32 8.25 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 -0.04 0.05 0.10 0.02 0.01 0.03 NA [2,] 0.01 0.04 0.25 0.09 0.02 0.02 -0.02 NA [3,] -0.02 -0.02 0.07 0.28 0.14 0.04 0.04 NA [4,] -0.01 -0.01 0.04 0.05 0.07 0.13 -0.03 NA [5,] -0.07 0.02 0.06 0.03 -0.01 0.12 0.02 NA [6,] 0.00 0.01 -0.01 0.01 -0.01 -0.03 -0.01 NA [7,] 0.00 -0.06 0.18 -0.02 0.02 0.04 0.03 NA [8,] -0.01 0.01 0.01 0.03 -0.04 0.02 -0.06 NA [9,] -0.02 -0.04 -0.09 0.00 0.06 -0.04 0.02 NA [10,] -0.01 -0.02 0.04 0.01 -0.03 -0.01 0.01 NA [11,] -0.04 0.03 -0.02 -0.04 -0.04 0.05 -0.09 NA [12,] 0.00 0.01 -0.28 0.04 0.05 -0.01 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/rcomp/tmp/1qtk61289661739.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/rcomp/tmp/2qtk61289661739.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/rcomp/tmp/3qtk61289661739.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/rcomp/tmp/4jlk91289661739.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,] 6.840 6.870 6.910 6.89 6.880 6.900 6.910 6.850 6.860 6.820 6.800 6.830 [2,] 6.995 6.985 7.115 7.14 7.155 7.150 7.145 7.235 7.235 7.180 7.195 7.165 [3,] 7.140 7.240 7.330 7.61 7.660 7.690 7.700 7.680 7.710 7.710 7.720 7.680 [4,] 7.845 7.860 7.880 7.97 8.070 8.125 8.105 8.135 8.120 8.135 8.115 8.085 [5,] 8.310 8.340 8.320 8.36 8.330 8.350 8.340 8.370 8.320 8.330 8.340 8.320 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.632394 6.717464 6.873154 7.114337 7.113577 7.107746 7.126703 7.142535 [2,] 7.647606 7.762536 7.786846 8.105663 8.206423 8.272254 8.273297 8.217465 [,9] [,10] [,11] [,12] [1,] 7.181492 7.13969 7.170591 7.130591 [2,] 8.238508 8.28031 8.269409 8.229409 $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(6.84, 6.995, 7.14, 7.845, 8.31, 6.87, 6.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5jlk91289661739.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.040 -0.020 -0.020 -0.03 -0.010 -0.030 -0.060 -0.060 -0.09 -0.030 -0.090 [2,] 0.005 0.015 0.010 -0.01 0.005 -0.010 -0.010 -0.025 -0.04 -0.015 -0.040 [3,] 0.020 0.020 0.040 0.04 0.020 -0.010 0.020 0.010 -0.02 -0.010 -0.040 [4,] 0.040 0.065 0.105 0.06 0.045 0.005 0.035 0.015 0.01 0.010 0.005 [5,] 0.050 0.090 0.140 0.13 0.060 0.010 0.040 0.030 0.06 0.040 0.050 [,12] [1,] -0.010 [2,] -0.010 [3,] 0.005 [4,] 0.040 [5,] 0.050 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.0009014354 -0.009859193 -0.01673247 -0.001802871 -0.003887355 [2,] 0.0409014354 0.049859193 0.09673247 0.081802871 0.043887355 [,6] [,7] [,8] [,9] [,10] [1,] -0.018957758 -0.006873274 -0.01388735 -0.049859193 -0.024929597 [2,] -0.001042242 0.046873274 0.03388735 0.009859193 0.004929597 [,11] [,12] [1,] -0.06687327 -0.02725161 [2,] -0.01312673 0.03725161 $out [1] 0.10 0.25 0.28 -0.07 0.12 0.18 -0.28 $group [1] 1 2 3 5 5 7 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.04, 0.00500000000000034, 0.0200000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6bu1c1289661739.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] [,8] [1,] 6.910 6.800 6.840 7.140 7.720 7.970 8.310 NA [2,] 6.970 6.840 7.175 7.470 7.830 8.020 8.315 NA [3,] 6.990 6.875 7.305 7.680 7.940 8.265 8.335 NA [4,] 7.075 6.905 7.430 7.705 7.965 8.295 8.345 NA [5,] 7.090 6.910 7.490 7.720 7.990 8.320 8.370 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.942109 6.845353 7.188693 7.572815 7.878426 8.13957 8.321317 NA [2,] 7.037891 6.904647 7.421307 7.787185 8.001574 8.39043 8.348683 NA $out [1] 8.25 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(6.91, 6.97, 6.99, 7.075, 7.09, 6.8, 6.84, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7bu1c1289661739.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,] 7.424286 7.140 7.42000 [2,] 7.545000 7.470 7.52625 [3,] 7.627143 7.680 7.62500 [4,] 7.641429 7.705 7.65625 [5,] 7.662857 7.720 7.68500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.583161 7.572815 7.565706 [2,] 7.671125 7.787185 7.684294 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.42428571428571, 7.545, 7.62714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qtk61289661739.ps tmp/1qtk61289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/2qtk61289661739.ps tmp/2qtk61289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/3qtk61289661739.ps tmp/3qtk61289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/4jlk91289661739.ps tmp/4jlk91289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/5jlk91289661739.ps tmp/5jlk91289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/6bu1c1289661739.ps tmp/6bu1c1289661739.png",intern=TRUE)) character(0) > try(system("convert tmp/7bu1c1289661739.ps tmp/7bu1c1289661739.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.960 0.620 2.566