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(15.14,14.2,13.83,14.31,14.04,14.9,14.92,15.36,15.5,15.65,16.18,15.44,15.58,15.24,15.33,16.07,15.82,15.87,15.72,17.07,16.83,17.52,17.76,17.36,17.95,16.71,17.14,16.72,17.26,17.24,17.69,18.13,18.08,18.18,18.18,17.64,17.89,16.82,16.61,16.66,17.02,16.91,17.18,18.06,17.58,17.48,17.54,17.44,17.79,16.79,16.19,16.62,16.39,16.54,17.26,18,17.29,18.16,17.82,17.48,18.31,17.04,17.03,16.97,17.11,17.12,17.69,18.5,18.27,18.45,18.35,18.03,18.49,18.07,17.8,17.88,18.12,18.68,18.8,19.64,19.56,19.3,20.07,19.82,20.29,19.36,18.74,18.87,18.87,18.91,19.31,20.06,20.72,20.42,20.58,20.58,21.18,19.87,19.83,19.48,19.49,19.4,19.89,20.44,20.07,19.75,19.54,19.07,19.55,18.01,17.5,17.41,17.47,17.6,17.64,18.3,18.27,17.99,18.04,17.62,18.22,17.67,17.73,17.99,18.15,18.41,18.36,19.52,19.96,19.6,19.48,19.13) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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] 11 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 15.14 15.58 17.95 17.89 17.79 18.31 18.49 20.29 21.18 19.55 18.22 NA [2,] 14.20 15.24 16.71 16.82 16.79 17.04 18.07 19.36 19.87 18.01 17.67 NA [3,] 13.83 15.33 17.14 16.61 16.19 17.03 17.80 18.74 19.83 17.50 17.73 NA [4,] 14.31 16.07 16.72 16.66 16.62 16.97 17.88 18.87 19.48 17.41 17.99 NA [5,] 14.04 15.82 17.26 17.02 16.39 17.11 18.12 18.87 19.49 17.47 18.15 NA [6,] 14.90 15.87 17.24 16.91 16.54 17.12 18.68 18.91 19.40 17.60 18.41 NA [7,] 14.92 15.72 17.69 17.18 17.26 17.69 18.80 19.31 19.89 17.64 18.36 NA [8,] 15.36 17.07 18.13 18.06 18.00 18.50 19.64 20.06 20.44 18.30 19.52 NA [9,] 15.50 16.83 18.08 17.58 17.29 18.27 19.56 20.72 20.07 18.27 19.96 NA [10,] 15.65 17.52 18.18 17.48 18.16 18.45 19.30 20.42 19.75 17.99 19.60 NA [11,] 16.18 17.76 18.18 17.54 17.82 18.35 20.07 20.58 19.54 18.04 19.48 NA [12,] 15.44 17.36 17.64 17.44 17.48 18.03 19.82 20.58 19.07 17.62 19.13 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.94 -0.34 -1.24 -1.07 -1.00 -1.27 -0.42 -0.93 -1.31 -1.54 -0.55 NA [2,] -0.37 0.09 0.43 -0.21 -0.60 -0.01 -0.27 -0.62 -0.04 -0.51 0.06 NA [3,] 0.48 0.74 -0.42 0.05 0.43 -0.06 0.08 0.13 -0.35 -0.09 0.26 NA [4,] -0.27 -0.25 0.54 0.36 -0.23 0.14 0.24 0.00 0.01 0.06 0.16 NA [5,] 0.86 0.05 -0.02 -0.11 0.15 0.01 0.56 0.04 -0.09 0.13 0.26 NA [6,] 0.02 -0.15 0.45 0.27 0.72 0.57 0.12 0.40 0.49 0.04 -0.05 NA [7,] 0.44 1.35 0.44 0.88 0.74 0.81 0.84 0.75 0.55 0.66 1.16 NA [8,] 0.14 -0.24 -0.05 -0.48 -0.71 -0.23 -0.08 0.66 -0.37 -0.03 0.44 NA [9,] 0.15 0.69 0.10 -0.10 0.87 0.18 -0.26 -0.30 -0.32 -0.28 -0.36 NA [10,] 0.53 0.24 0.00 0.06 -0.34 -0.10 0.77 0.16 -0.21 0.05 -0.12 NA [11,] -0.74 -0.40 -0.54 -0.10 -0.34 -0.32 -0.25 0.00 -0.47 -0.42 -0.35 NA [12,] 0.14 0.59 0.25 0.35 0.83 0.46 0.47 0.60 0.48 0.60 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/1fifa1319371913.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/23nwr1319371913.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/3sfnw1319371913.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/49tsj1319371913.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,] 17.79 15.24 15.330 16.070 15.820 14.900 15.72 17.07 15.500 15.650 16.18 [2,] 17.84 16.75 16.400 16.640 16.705 16.725 17.22 18.03 17.435 17.755 17.79 [3,] 18.22 17.04 17.140 16.970 17.260 17.240 17.69 18.30 18.270 18.180 18.18 [4,] 19.02 18.04 17.765 17.935 18.135 18.545 18.58 19.58 19.760 19.450 19.51 [5,] 20.29 19.87 18.740 19.480 19.490 19.400 19.89 20.44 20.720 20.420 20.58 [,12] [1,] 15.44 [2,] 17.46 [3,] 17.64 [4,] 19.10 [5,] 20.58 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.65786 16.42546 16.48973 16.35308 16.57877 16.37297 17.04211 17.5616 [2,] 18.78214 17.65454 17.79027 17.58692 17.94123 18.10703 18.33789 19.0384 [,9] [,10] [,11] [,12] [1,] 17.1624 17.37252 17.36061 16.85872 [2,] 19.3776 18.98748 18.99939 18.42128 $out [1] 15.14 15.58 21.18 14.20 13.83 19.83 14.31 14.04 14.92 15.36 $group [1] 1 1 1 2 3 3 4 5 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.79, 17.84, 18.22, 19.02, 20.29, 15.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5p13u1319371913.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] [1,] -1.540 -0.620 -0.420 -0.270 -0.110 -0.15 0.440 -0.710 -0.360 -0.34 -0.540 [2,] -1.255 -0.440 -0.075 -0.115 -0.005 0.03 0.605 -0.305 -0.290 -0.11 -0.445 [3,] -1.000 -0.210 0.080 0.060 0.050 0.27 0.750 -0.080 -0.100 0.05 -0.350 [4,] -0.740 0.025 0.345 0.200 0.205 0.47 0.860 0.055 0.165 0.20 -0.285 [5,] -0.340 0.430 0.740 0.540 0.260 0.72 1.160 0.440 0.690 0.53 -0.100 [,12] [1,] 0.140 [2,] 0.350 [3,] 0.475 [4,] 0.600 [5,] 0.830 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.2453398 -0.43152038 -0.1200829 -0.0900622 -0.05004146 0.06038931 [2,] -0.7546602 0.01152038 0.2800829 0.2100622 0.15004146 0.47961069 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.6285211 -0.25149965 -0.3167565 -0.09768026 -0.4262221 0.35009 [2,] 0.8714789 0.09149965 0.1167565 0.19768026 -0.2737779 0.59991 $out [1] 0.86 0.56 1.35 0.66 0.87 0.77 -0.74 0.00 $group [1] 5 5 7 8 9 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.54, -1.255, -1, -0.739999999999998, -0.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6snm11319371913.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] [,9] [,10] [1,] 13.830 15.240 16.710 16.610 16.190 16.970 17.800 18.74 19.070 17.410 [2,] 14.255 15.650 17.190 16.865 16.580 17.075 18.095 18.89 19.485 17.550 [3,] 15.030 15.970 17.665 17.310 17.275 17.860 18.740 19.71 19.790 17.815 [4,] 15.470 17.215 18.105 17.560 17.805 18.330 19.600 20.50 19.980 18.155 [5,] 16.180 17.760 18.180 18.060 18.160 18.500 20.070 20.72 20.440 18.300 [,11] [,12] [1,] 17.670 NA [2,] 18.070 NA [3,] 18.385 NA [4,] 19.500 NA [5,] 19.960 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.47583 15.25619 17.24766 16.99301 16.71627 17.28759 18.05356 18.97567 [2,] 15.58417 16.68381 18.08234 17.62699 17.83373 18.43241 19.42644 20.44433 [,9] [,10] [,11] [,12] [1,] 19.56423 17.53906 17.73277 NA [2,] 20.01577 18.09094 19.03723 NA $out [1] 21.18 19.55 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(13.83, 14.255, 15.03, 15.47, 16.18, 15.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7e2e01319371913.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,] 17.06636 16.970 17.0825 [2,] 17.25091 17.190 17.4075 [3,] 17.91227 17.665 18.0900 [4,] 18.39227 18.200 18.6000 [5,] 18.50364 18.300 18.8050 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17.39169 17.20433 17.54609 [2,] 18.43286 18.12567 18.63391 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(17.0663636363636, 17.2509090909091, 17.9122727272727, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fifa1319371913.ps tmp/1fifa1319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/23nwr1319371913.ps tmp/23nwr1319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/3sfnw1319371913.ps tmp/3sfnw1319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/49tsj1319371913.ps tmp/49tsj1319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/5p13u1319371913.ps tmp/5p13u1319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/6snm11319371913.ps tmp/6snm11319371913.png",intern=TRUE)) character(0) > try(system("convert tmp/7e2e01319371913.ps tmp/7e2e01319371913.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.663 0.335 2.006