R version 2.8.0 (2008-10-20) 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(0.8832,0.8707,0.8766,0.8860,0.9170,0.9561,0.9935,0.9781,0.9806,0.9812,1.0013,1.0194,1.0622,1.0785,1.0797,1.0862,1.1556,1.1674,1.1365,1.1155,1.1267,1.1714,1.1710,1.2298,1.2638,1.2640,1.2261,1.1989,1.2000,1.2146,1.2266,1.2191,1.2224,1.2507,1.2997,1.3406,1.3123,1.3013,1.3185,1.2943,1.2697,1.2155,1.2041,1.2295,1.2234,1.2022,1.0000,1.1861,1.2126,1.1940,1.2028,1.2273,1.2767,1.2661,1.2681,1.2810,1.2722,1.2617,1.2888,1.3205,1.2993,1.3080,1.3246,1.3513,1.3518,1.3421,1.3726,1.3626,1.3910,1.4233,1.4683,1.4559,1.4728,1.4759,1.5520,1.5754,1.5554,1.5562,1.5759,1.4955,1.4342,1.3266,1.2744,1.3511,1.3244,1.2797,1.3050,1.3203) > 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] 88 > (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] 8 8 8 8 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.8832 1.0622 1.2638 1.3123 1.2126 1.2993 1.4728 1.3244 [2,] 0.8707 1.0785 1.2640 1.3013 1.1940 1.3080 1.4759 1.2797 [3,] 0.8766 1.0797 1.2261 1.3185 1.2028 1.3246 1.5520 1.3050 [4,] 0.8860 1.0862 1.1989 1.2943 1.2273 1.3513 1.5754 1.3203 [5,] 0.9170 1.1556 1.2000 1.2697 1.2767 1.3518 1.5554 NA [6,] 0.9561 1.1674 1.2146 1.2155 1.2661 1.3421 1.5562 NA [7,] 0.9935 1.1365 1.2266 1.2041 1.2681 1.3726 1.5759 NA [8,] 0.9781 1.1155 1.2191 1.2295 1.2810 1.3626 1.4955 NA [9,] 0.9806 1.1267 1.2224 1.2234 1.2722 1.3910 1.4342 NA [10,] 0.9812 1.1714 1.2507 1.2022 1.2617 1.4233 1.3266 NA [11,] 1.0013 1.1710 1.2997 1.0000 1.2888 1.4683 1.2744 NA [12,] 1.0194 1.2298 1.3406 1.1861 1.3205 1.4559 1.3511 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.0125 0.0163 0.0002 -0.0110 -0.0186 0.0087 0.0031 -0.0447 [2,] 0.0059 0.0012 -0.0379 0.0172 0.0088 0.0166 0.0761 0.0253 [3,] 0.0094 0.0065 -0.0272 -0.0242 0.0245 0.0267 0.0234 0.0153 [4,] 0.0310 0.0694 0.0011 -0.0246 0.0494 0.0005 -0.0200 NA [5,] 0.0391 0.0118 0.0146 -0.0542 -0.0106 -0.0097 0.0008 NA [6,] 0.0374 -0.0309 0.0120 -0.0114 0.0020 0.0305 0.0197 NA [7,] -0.0154 -0.0210 -0.0075 0.0254 0.0129 -0.0100 -0.0804 NA [8,] 0.0025 0.0112 0.0033 -0.0061 -0.0088 0.0284 -0.0613 NA [9,] 0.0006 0.0447 0.0283 -0.0212 -0.0105 0.0323 -0.1076 NA [10,] 0.0201 -0.0004 0.0490 -0.2022 0.0271 0.0450 -0.0522 NA [11,] 0.0181 0.0588 0.0409 0.1861 0.0317 -0.0124 0.0767 NA [12,] 0.0428 0.0340 -0.0283 0.0265 -0.0212 0.0169 -0.0267 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/freestat/rcomp/tmp/1ayav1244033848.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/freestat/rcomp/tmp/2eu571244033848.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/freestat/rcomp/tmp/34qxk1244033848.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/freestat/rcomp/tmp/4n31i1244033848.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,] 0.88320 1.07850 0.87660 0.88600 1.15560 1.1674 0.99350 0.9781 0.98060 [2,] 1.13740 1.13625 1.14125 1.14255 1.17780 1.1910 1.17030 1.1673 1.17455 [3,] 1.28155 1.27185 1.26555 1.26080 1.26970 1.2155 1.22660 1.2295 1.22340 [4,] 1.31835 1.30465 1.32155 1.33580 1.31425 1.3041 1.32035 1.3218 1.33160 [5,] 1.47280 1.47590 1.55200 1.57540 1.35180 1.3421 1.37260 1.4955 1.43420 [,10] [,11] [,12] [1,] 1.17140 1.00000 1.01940 [2,] 1.18680 1.08615 1.20795 [3,] 1.25070 1.27440 1.32050 [4,] 1.29415 1.29425 1.34585 [5,] 1.42330 1.46830 1.45590 $n [1] 8 8 8 8 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.180469 1.177779 1.164832 1.152848 1.188214 1.147959 1.136993 1.137235 [2,] 1.382631 1.365921 1.366268 1.368752 1.351186 1.283041 1.316207 1.321765 [,9] [,10] [,11] [,12] [1,] 1.129612 1.186592 1.150126 1.238148 [2,] 1.317188 1.314808 1.398674 1.402852 $out [1] 0.8707 0.9170 1.5554 0.9561 1.5562 1.5759 0.9812 $group [1] 2 5 5 6 6 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.8832, 1.1374, 1.28155, 1.31835, 1.4728, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5gjnk1244033848.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] [1,] -0.04470 0.00120 -0.02720 -0.02460 -0.01060 -0.0309 -0.0210 -0.00880 [2,] -0.01555 0.00355 -0.00885 -0.00975 -0.01015 -0.0047 -0.0182 -0.00745 [3,] -0.00540 0.01270 0.01235 0.00110 0.00080 0.0120 -0.0100 0.00250 [4,] 0.00590 0.02125 0.02395 0.04020 0.01320 0.0251 0.0027 0.00725 [5,] 0.01630 0.02530 0.02670 0.06940 0.03910 0.0374 0.0254 0.02840 [,9] [,10] [,11] [,12] [1,] -0.02120 -0.05220 -0.01240 -0.02830 [2,] -0.01585 -0.02630 0.02490 -0.02395 [3,] 0.00060 0.02010 0.04090 0.01690 [4,] 0.03030 0.03605 0.06775 0.03025 [5,] 0.04470 0.04900 0.07670 0.04280 $n [1] 8 8 8 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.017382278 0.002812526 -0.005972551 -0.02872933 -0.01314424 -0.005796079 [2,] 0.006582278 0.022587474 0.030672551 0.03092933 0.01474424 0.029796079 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.022481143 -0.006278603 -0.02696004 -0.01713441 0.01531067 -0.01546737 [2,] 0.002481143 0.011278603 0.02816004 0.05733441 0.06648933 0.04926737 $out [1] -0.0379 0.0761 -0.0542 -0.0804 -0.0613 -0.1076 -0.2022 0.1861 $group [1] 2 2 5 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0447, -0.0155500000000000, -0.00540000000000007, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6jnhw1244033848.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,] 0.87070 1.06220 1.19890 1.18610 1.19400 1.29930 1.27440 1.27970 [2,] 0.88460 1.08295 1.21685 1.20315 1.21995 1.33335 1.39265 1.29235 [3,] 0.96710 1.13160 1.22635 1.22645 1.26710 1.35720 1.48570 1.31265 [4,] 0.98735 1.16920 1.26390 1.29780 1.27885 1.40715 1.55580 1.32235 [5,] 1.01940 1.22980 1.29970 1.31850 1.32050 1.46830 1.57590 1.32440 $n [1] 12 12 12 12 12 12 12 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.920235 1.092261 1.204890 1.183279 1.240235 1.323539 1.411286 1.28895 [2,] 1.013965 1.170939 1.247810 1.269621 1.293965 1.390861 1.560114 1.33635 $out [1] 1.3406 1.0000 $group [1] 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(0.8707, 0.8846, 0.9671, 0.98735, 1.0194, 1.0622, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7roc91244033848.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,] 1.214786 1.215500 1.234050 [2,] 1.229920 1.228050 1.242513 [3,] 1.237986 1.263175 1.245675 [4,] 1.246014 1.273125 1.248469 [5,] 1.253900 1.320500 1.253075 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.230645 1.242616 1.242958 [2,] 1.245327 1.283734 1.248392 $out [1] 1.271914 1.190200 1.276900 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.21478571428571, 1.22991964285714, 1.23798571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ayav1244033848.ps tmp/1ayav1244033848.png") > system("convert tmp/2eu571244033848.ps tmp/2eu571244033848.png") > system("convert tmp/34qxk1244033848.ps tmp/34qxk1244033848.png") > system("convert tmp/4n31i1244033848.ps tmp/4n31i1244033848.png") > system("convert tmp/5gjnk1244033848.ps tmp/5gjnk1244033848.png") > system("convert tmp/6jnhw1244033848.ps tmp/6jnhw1244033848.png") > system("convert tmp/7roc91244033848.ps tmp/7roc91244033848.png") > > > proc.time() user system elapsed 1.858 1.473 2.183