R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(30.37,30.41,30.46,30.7,30.85,30.93,31,31.16,31.14,31.15,31.2,31.22,31.25,31.39,31.49,31.71,31.73,31.96,32.05,32.12,32.28,32.42,32.48,32.89,33.7,34.59,35.1,35.87,37.15,37.61,37.97,38.94,39.18,39.49,39.86,40.02,40.2,40.85,41.45,41.7,41.92,41.97,42.31,42.61,42.82,43.07,43.51,43.57,43.86,44.49,45.99,48.22,49.46,50.39,50.4,50.59,51.32,51.86,52.47,52.73,52.73,53.59,54.11,54.8,55.72,56.06,56.66,57.05,57.31,57.89,58.32,58.72,59.02,59.54,61.49,62.26,63.49,64.36,65.93,66.82,68.85,71.27,72.27,73.4) > 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,] 30.37 31.25 33.70 40.20 43.86 52.73 59.02 NA [2,] 30.41 31.39 34.59 40.85 44.49 53.59 59.54 NA [3,] 30.46 31.49 35.10 41.45 45.99 54.11 61.49 NA [4,] 30.70 31.71 35.87 41.70 48.22 54.80 62.26 NA [5,] 30.85 31.73 37.15 41.92 49.46 55.72 63.49 NA [6,] 30.93 31.96 37.61 41.97 50.39 56.06 64.36 NA [7,] 31.00 32.05 37.97 42.31 50.40 56.66 65.93 NA [8,] 31.16 32.12 38.94 42.61 50.59 57.05 66.82 NA [9,] 31.14 32.28 39.18 42.82 51.32 57.31 68.85 NA [10,] 31.15 32.42 39.49 43.07 51.86 57.89 71.27 NA [11,] 31.20 32.48 39.86 43.51 52.47 58.32 72.27 NA [12,] 31.22 32.89 40.02 43.57 52.73 58.72 73.40 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.04 0.14 0.89 0.65 0.63 0.86 0.52 NA [2,] 0.05 0.10 0.51 0.60 1.50 0.52 1.95 NA [3,] 0.24 0.22 0.77 0.25 2.23 0.69 0.77 NA [4,] 0.15 0.02 1.28 0.22 1.24 0.92 1.23 NA [5,] 0.08 0.23 0.46 0.05 0.93 0.34 0.87 NA [6,] 0.07 0.09 0.36 0.34 0.01 0.60 1.57 NA [7,] 0.16 0.07 0.97 0.30 0.19 0.39 0.89 NA [8,] -0.02 0.16 0.24 0.21 0.73 0.26 2.03 NA [9,] 0.01 0.14 0.31 0.25 0.54 0.58 2.42 NA [10,] 0.05 0.06 0.37 0.44 0.61 0.43 1.00 NA [11,] 0.02 0.41 0.16 0.06 0.26 0.40 1.13 NA [12,] 0.03 0.81 0.18 0.29 0.00 0.30 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/wessaorg/rcomp/tmp/1pq9v1319184853.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2iqbz1319184853.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3g8rc1319184853.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4pzzq1319184853.ps",horizontal=F,onefile=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] [1,] 30.370 30.41 30.460 30.70 30.85 30.930 31.00 31.16 31.140 31.150 31.200 [2,] 32.475 32.99 33.295 33.79 34.44 34.785 35.01 35.53 35.730 35.955 36.170 [3,] 40.200 40.85 41.450 41.70 41.92 41.970 42.31 42.61 42.820 43.070 43.510 [4,] 48.295 49.04 50.050 51.51 52.59 53.225 53.53 53.82 54.315 54.875 55.395 [5,] 59.020 59.54 61.490 62.26 63.49 64.360 65.93 66.82 68.850 71.270 72.270 [,12] [1,] 31.220 [2,] 36.455 [3,] 43.570 [4,] 55.725 [5,] 73.400 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 30.75255 31.2652 31.44418 31.1179 31.08111 30.95793 31.25015 31.68751 [2,] 49.64745 50.4348 51.45582 52.2821 52.75889 52.98207 53.36985 53.53249 [,9] [,10] [,11] [,12] [1,] 31.72134 31.77128 32.02914 32.06227 [2,] 53.91866 54.36872 54.99086 55.07773 $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(30.37, 32.475, 40.2, 48.295, 59.02, 30.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5s3481319184853.ps",horizontal=F,onefile=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.040 0.050 0.220 0.020 0.050 0.01 0.070 -0.020 0.010 0.050 0.020 0.000 [2,] 0.330 0.305 0.245 0.185 0.155 0.08 0.175 0.185 0.195 0.215 0.110 0.030 [3,] 0.630 0.520 0.690 0.920 0.340 0.34 0.300 0.240 0.310 0.430 0.260 0.235 [4,] 0.755 1.050 0.770 1.235 0.665 0.48 0.640 0.495 0.560 0.525 0.405 0.300 [5,] 0.890 1.950 0.770 1.280 0.930 0.60 0.970 0.730 0.580 0.610 0.410 0.300 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3761969 0.07509802 0.3764785 0.2929569 0.03543623 0.1011265 0.0223095 [2,] 0.8838031 0.96490198 1.0035215 1.5470431 0.64456377 0.5788735 0.5776905 [,8] [,9] [,10] [,11] [,12] [1,] 0.054873 0.09202789 0.244873 0.08383076 0.06084128 [2,] 0.425127 0.52797211 0.615127 0.43616924 0.40915872 $out [1] 2.23 1.57 2.03 2.42 1.00 1.13 0.81 $group [1] 3 6 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0399999999999991, 0.329999999999998, 0.630000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6ztcr1319184853.ps",horizontal=F,onefile=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,] 30.370 31.250 33.700 40.200 43.860 52.730 59.020 NA [2,] 30.580 31.600 35.485 41.575 47.105 54.455 61.875 NA [3,] 30.965 32.005 37.790 42.140 50.395 56.360 65.145 NA [4,] 31.155 32.350 39.335 42.945 51.590 57.600 70.060 NA [5,] 31.220 32.890 40.020 43.570 52.730 58.720 73.400 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 30.70274 31.66292 36.03399 41.51513 48.34936 54.92554 61.41177 NA [2,] 31.22726 32.34708 39.54601 42.76487 52.44064 57.79446 68.87823 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(30.37, 30.58, 30.965, 31.155, 31.22, 31.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ayzj1319184853.ps",horizontal=F,onefile=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,] 41.59000 40.200 40.38500 [2,] 43.23929 41.575 42.16125 [3,] 44.97143 42.140 44.13750 [4,] 46.43214 42.945 45.21875 [5,] 47.50714 43.570 46.09000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 43.51514 41.51513 42.74295 [2,] 46.42771 42.76487 45.53205 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(41.59, 43.2392857142857, 44.9714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1pq9v1319184853.ps tmp/1pq9v1319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/2iqbz1319184853.ps tmp/2iqbz1319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/3g8rc1319184853.ps tmp/3g8rc1319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/4pzzq1319184853.ps tmp/4pzzq1319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/5s3481319184853.ps tmp/5s3481319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/6ztcr1319184853.ps tmp/6ztcr1319184853.png",intern=TRUE)) character(0) > try(system("convert tmp/7ayzj1319184853.ps tmp/7ayzj1319184853.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.605 0.366 1.992