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(161.88,161.88,162.05,162.16,162.61,162.53,162.53,162.53,162.53,162.83,161.61,161.79,161.79,161.79,161.79,161.85,161.77,161.86,161.89,161.89,161.89,162.18,162.43,162.58,162.57,162.57,162.57,162.44,162.79,163.15,163.23,163.23,163.23,163.38,163.71,163.73,163.73,163.73,163.73,163.93,164.27,164.57,164.73,164.73,164.76,165.75,165.86,165.99,166.13,166.13,166.13,166.15,166.45,166.48,166.51,166.51,166.51,166.58,166.82,167.35,167.5,167.5,167.6,167.72,167.29,166.98,166.98,166.98,166.98,167.63,167.83,167.85,167.87,167.87,167.96,167.7,169.25,168.79,168.77,168.77,169,168.92,169.23,169.28,169.29,163.93,164.28,164.58,165.97,166.3,166.27,166.27,166.44,166.26,166.64,166.07,166.19) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 161.88 161.79 162.57 163.73 166.13 167.50 167.87 169.29 166.19 [2,] 161.88 161.79 162.57 163.73 166.13 167.50 167.87 163.93 NA [3,] 162.05 161.79 162.57 163.73 166.13 167.60 167.96 164.28 NA [4,] 162.16 161.85 162.44 163.93 166.15 167.72 167.70 164.58 NA [5,] 162.61 161.77 162.79 164.27 166.45 167.29 169.25 165.97 NA [6,] 162.53 161.86 163.15 164.57 166.48 166.98 168.79 166.30 NA [7,] 162.53 161.89 163.23 164.73 166.51 166.98 168.77 166.27 NA [8,] 162.53 161.89 163.23 164.73 166.51 166.98 168.77 166.27 NA [9,] 162.53 161.89 163.23 164.76 166.51 166.98 169.00 166.44 NA [10,] 162.83 162.18 163.38 165.75 166.58 167.63 168.92 166.26 NA [11,] 161.61 162.43 163.71 165.86 166.82 167.83 169.23 166.64 NA [12,] 161.79 162.58 163.73 165.99 167.35 167.85 169.28 166.07 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -5.36 NA [2,] 0.17 0.00 0.00 0.00 0.00 0.10 0.09 0.35 NA [3,] 0.11 0.06 -0.13 0.20 0.02 0.12 -0.26 0.30 NA [4,] 0.45 -0.08 0.35 0.34 0.30 -0.43 1.55 1.39 NA [5,] -0.08 0.09 0.36 0.30 0.03 -0.31 -0.46 0.33 NA [6,] 0.00 0.03 0.08 0.16 0.03 0.00 -0.02 -0.03 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [8,] 0.00 0.00 0.00 0.03 0.00 0.00 0.23 0.17 NA [9,] 0.30 0.29 0.15 0.99 0.07 0.65 -0.08 -0.18 NA [10,] -1.22 0.25 0.33 0.11 0.24 0.20 0.31 0.38 NA [11,] 0.18 0.15 0.02 0.13 0.53 0.02 0.05 -0.57 NA [12,] 0.00 -0.01 0.00 0.14 0.15 0.02 0.01 0.12 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/1dqvs1259689925.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/2jsk61259689925.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/3c11b1259689925.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/496yv1259689925.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] [1,] 161.79 161.790 161.790 161.850 161.77 161.860 161.890 161.890 161.890 [2,] 162.57 162.225 162.310 162.300 162.70 162.840 162.880 162.880 162.880 [3,] 166.13 163.830 164.005 164.255 165.12 165.435 165.500 165.500 165.600 [4,] 167.50 166.815 166.865 166.925 166.87 166.730 166.745 166.745 166.745 [5,] 169.29 167.870 167.960 167.720 169.25 168.790 168.770 168.770 169.000 [,10] [,11] [,12] [1,] 162.180 161.610 161.790 [2,] 163.105 163.070 163.155 [3,] 166.005 166.250 166.030 [4,] 167.105 167.325 167.600 [5,] 168.920 169.230 169.280 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 163.5335 161.2660 161.4605 161.6714 162.7906 163.262 163.3410 163.3410 [2,] 168.7265 166.3940 166.5495 166.8386 167.4494 167.608 167.6590 167.6590 [,9] [,10] [,11] [,12] [1,] 163.4410 163.7705 163.8731 163.5470 [2,] 167.7590 168.2395 168.6269 168.5130 $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(161.79, 162.57, 166.13, 167.5, 169.29, 161.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57wez1259689925.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] [,12] [1,] 0 0.000 -0.260 -0.430 -0.460 -0.030 0 0.00 -0.180 0.110 0.020 -0.010 [2,] 0 0.000 -0.055 0.110 -0.195 -0.010 0 0.00 -0.005 0.155 0.020 0.000 [3,] 0 0.045 0.085 0.345 0.060 0.015 0 0.00 0.220 0.245 0.090 0.015 [4,] 0 0.135 0.160 0.920 0.315 0.055 0 0.10 0.475 0.320 0.165 0.130 [5,] 0 0.170 0.300 1.550 0.360 0.080 0 0.23 0.990 0.380 0.180 0.150 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -0.03041294 -0.03510209 -0.1074776 -0.2248933 -0.02130993 0 [2,] 0 0.12041294 0.20510209 0.7974776 0.3448933 0.05130993 0 [,8] [,9] [,10] [,11] [,12] [1,] -0.05586144 -0.04813489 0.1528286 0.009000918 -0.05761987 [2,] 0.05586144 0.48813489 0.3371714 0.170999082 0.08761987 $out [1] -5.36 0.35 0.16 -1.22 0.53 -0.57 $group [1] 1 2 6 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, 0, 0, 0, 0, 0, 0, 0.0450000000000017, 0.135000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/690o21259689925.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] [,9] [1,] 161.610 161.770 162.440 163.730 166.130 166.980 167.700 163.930 166.19 [2,] 161.880 161.790 162.570 163.830 166.140 166.980 167.915 165.275 166.19 [3,] 162.345 161.875 163.190 164.650 166.495 167.500 168.780 166.265 166.19 [4,] 162.530 162.035 163.305 165.255 166.545 167.675 169.115 166.370 166.19 [5,] 162.830 162.180 163.730 165.990 166.820 167.850 169.280 166.640 166.19 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 162.0485 161.7633 162.8548 164.0000 166.3103 167.183 168.2327 165.7656 [2,] 162.6415 161.9867 163.5252 165.3000 166.6797 167.817 169.3273 166.7644 [,9] [1,] 166.19 [2,] 166.19 $out [1] 162.43 162.58 167.35 169.29 $group [1] 2 2 5 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(161.61, 161.88, 162.345, 162.53, 162.83, 161.77, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75o6k1259689925.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,] 164.4250 163.8300 164.4350 [2,] 164.8081 164.6875 164.5856 [3,] 165.1137 165.5000 164.8413 [4,] 165.3290 166.0175 165.0387 [5,] 165.5800 166.2500 165.4588 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 164.8762 164.8934 164.6346 [2,] 165.3513 166.1066 165.0479 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(164.425, 164.808125, 165.11375, 165.328958333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dqvs1259689925.ps tmp/1dqvs1259689925.png") > system("convert tmp/2jsk61259689925.ps tmp/2jsk61259689925.png") > system("convert tmp/3c11b1259689925.ps tmp/3c11b1259689925.png") > system("convert tmp/496yv1259689925.ps tmp/496yv1259689925.png") > system("convert tmp/57wez1259689925.ps tmp/57wez1259689925.png") > system("convert tmp/690o21259689925.ps tmp/690o21259689925.png") > system("convert tmp/75o6k1259689925.ps tmp/75o6k1259689925.png") > > > proc.time() user system elapsed 1.215 0.962 1.901