R version 2.8.1 (2008-12-22) 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(9.370,9.330,9.310,9.260,9.350,9.380,9.430,9.270,9.290,9.270,9.290,9.310,9.330,9.350,9.340,9.470,9.630,9.620,9.630,9.500,9.550,9.580,9.610,9.570,9.610,9.650,9.620,9.650,9.960,10.030,10.030,9.720,9.750,9.770,9.780,9.820,9.840,9.900,9.940,10.120,10.520,10.570,10.570,10.120,10.050,10.140,10.170,10.200,10.200,10.350,10.430,10.570,10.820,10.900,10.830,10.650,10.570,10.610,10.630,10.710,10.720,10.770,10.790,10.920,10.900,11.000,10.990,10.910,10.880,10.870,11.000,10.990,11.030,11.040,10.990) > 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,] 9.37 9.33 9.61 9.84 10.20 10.72 11.03 [2,] 9.33 9.35 9.65 9.90 10.35 10.77 11.04 [3,] 9.31 9.34 9.62 9.94 10.43 10.79 10.99 [4,] 9.26 9.47 9.65 10.12 10.57 10.92 NA [5,] 9.35 9.63 9.96 10.52 10.82 10.90 NA [6,] 9.38 9.62 10.03 10.57 10.90 11.00 NA [7,] 9.43 9.63 10.03 10.57 10.83 10.99 NA [8,] 9.27 9.50 9.72 10.12 10.65 10.91 NA [9,] 9.29 9.55 9.75 10.05 10.57 10.88 NA [10,] 9.27 9.58 9.77 10.14 10.61 10.87 NA [11,] 9.29 9.61 9.78 10.17 10.63 11.00 NA [12,] 9.31 9.57 9.82 10.20 10.71 10.99 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.04 0.02 0.04 0.06 0.15 0.05 0.01 [2,] -0.02 -0.01 -0.03 0.04 0.08 0.02 -0.05 [3,] -0.05 0.13 0.03 0.18 0.14 0.13 NA [4,] 0.09 0.16 0.31 0.40 0.25 -0.02 NA [5,] 0.03 -0.01 0.07 0.05 0.08 0.10 NA [6,] 0.05 0.01 0.00 0.00 -0.07 -0.01 NA [7,] -0.16 -0.13 -0.31 -0.45 -0.18 -0.08 NA [8,] 0.02 0.05 0.03 -0.07 -0.08 -0.03 NA [9,] -0.02 0.03 0.02 0.09 0.04 -0.01 NA [10,] 0.02 0.03 0.01 0.03 0.02 0.13 NA [11,] 0.02 -0.04 0.04 0.03 0.08 -0.01 NA [12,] 0.02 0.04 0.02 0.00 0.01 0.04 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/1nj5g1241114340.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/2e6n21241114340.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/31hqn1241114340.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/4jo011241114340.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,] 9.33 9.33 9.31 9.260 9.35 9.38 9.43 9.27 9.29 9.270 9.290 9.31 [2,] 9.49 9.50 9.48 9.470 9.63 9.62 9.63 9.50 9.55 9.580 9.610 9.57 [3,] 9.84 9.90 9.94 9.885 10.24 10.30 10.30 9.92 9.90 9.955 9.975 10.01 [4,] 10.46 10.56 10.61 10.570 10.82 10.90 10.83 10.65 10.57 10.610 10.630 10.71 [5,] 11.03 11.04 10.99 10.920 10.90 11.00 10.99 10.91 10.88 10.870 11.000 10.99 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.260732 9.266985 9.265182 9.175464 9.472412 9.474359 9.525961 [2,] 10.419268 10.533015 10.614818 10.594536 11.007588 11.125641 11.074039 [,8] [,9] [,10] [,11] [,12] [1,] 9.178213 9.242067 9.290617 9.317067 9.274663 [2,] 10.661787 10.557933 10.619383 10.632933 10.745337 $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(9.33, 9.49, 9.84, 10.46, 11.03, 9.33, 9.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59xvy1241114340.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.050 -0.05 -0.020 -0.01 -0.01 -0.45 -0.080 -0.020 0.010 -0.040 [2,] 0.015 -0.025 0.03 0.090 0.03 -0.01 -0.31 -0.070 -0.010 0.020 -0.010 [3,] 0.040 -0.010 0.13 0.205 0.06 0.00 -0.17 -0.005 0.025 0.025 0.025 [4,] 0.055 0.030 0.14 0.310 0.08 0.01 -0.13 0.030 0.040 0.030 0.040 [5,] 0.060 0.080 0.18 0.400 0.10 0.01 -0.08 0.050 0.090 0.030 0.080 [,12] [1,] 0.00 [2,] 0.01 [3,] 0.02 [4,] 0.04 [5,] 0.04 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01611265 -0.04284511 0.05904645 0.0630929 0.02774839 -0.01290065 [2,] 0.06388735 0.02284511 0.20095355 0.3469071 0.09225161 0.01290065 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.28610581 -0.06950323 -0.007251615 0.01854968 -0.007251615 0.000649031 [2,] -0.05389419 0.05950323 0.057251615 0.03145032 0.057251615 0.039350969 $out [1] 0.15 0.05 -0.07 0.13 $group [1] 1 6 6 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0399999999999991, 0.0149999999999997, 0.0400000000000009, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wo3z1241114340.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,] 9.26 9.330 9.61 9.840 10.200 10.720 10.990 [2,] 9.28 9.410 9.65 9.995 10.500 10.830 11.010 [3,] 9.31 9.560 9.76 10.130 10.620 10.905 11.030 [4,] 9.36 9.615 9.89 10.360 10.765 10.990 11.035 [5,] 9.43 9.630 10.03 10.570 10.900 11.000 11.040 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.273511 9.466498 9.650534 9.963521 10.49913 10.83202 11.00719 [2,] 9.346489 9.653502 9.869466 10.296479 10.74087 10.97798 11.05281 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(9.26, 9.28, 9.31, 9.36, 9.43, 9.33, 9.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7a6gh1241114340.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,] 9.998333 9.8400 9.97500 [2,] 10.021667 9.9000 10.02500 [3,] 10.057857 9.9475 10.05250 [4,] 10.148333 10.1250 10.16812 [5,] 10.250000 10.3000 10.27000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.00008 9.844876 9.98722 [2,] 10.11563 10.050124 10.11778 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(9.99833333333333, 10.0216666666667, 10.0578571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nj5g1241114340.ps tmp/1nj5g1241114340.png") > system("convert tmp/2e6n21241114340.ps tmp/2e6n21241114340.png") > system("convert tmp/31hqn1241114340.ps tmp/31hqn1241114340.png") > system("convert tmp/4jo011241114340.ps tmp/4jo011241114340.png") > system("convert tmp/59xvy1241114340.ps tmp/59xvy1241114340.png") > system("convert tmp/6wo3z1241114340.ps tmp/6wo3z1241114340.png") > system("convert tmp/7a6gh1241114340.ps tmp/7a6gh1241114340.png") > > > proc.time() user system elapsed 1.224 0.958 1.604