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(1.1591,1.1203,1.0886,1.0701,1.0630,1.0377,1.0370,1.0605,1.0497,1.0706,1.0328,1.0110,1.0131,0.9834,0.9643,0.9449,0.9059,0.9505,0.9386,0.9045,0.8695,0.8525,0.8552,0.8983,0.9376,0.9205,0.9083,0.8925,0.8753,0.8530,0.8615,0.9014,0.9114,0.9050,0.8883,0.8912,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.1789,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.3199,1.3646,1.4014,1.4092,1.4266,1.4575,1.4821,1.4908,1.4579) > 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] [1,] 1.1591 1.0131 0.9376 0.8832 1.0622 1.2638 1.3123 1.2126 1.2993 1.4728 [2,] 1.1203 0.9834 0.9205 0.8707 1.0785 1.2640 1.3013 1.1940 1.3080 1.4759 [3,] 1.0886 0.9643 0.9083 0.8766 1.0797 1.2261 1.3185 1.2028 1.3246 1.5520 [4,] 1.0701 0.9449 0.8925 0.8860 1.0862 1.1989 1.2943 1.2273 1.3513 1.5754 [5,] 1.0630 0.9059 0.8753 0.9170 1.1556 1.2000 1.2697 1.2767 1.3518 1.5554 [6,] 1.0377 0.9505 0.8530 0.9561 1.1674 1.2146 1.2155 1.2661 1.3421 1.5562 [7,] 1.0370 0.9386 0.8615 0.9935 1.1365 1.2266 1.2041 1.2681 1.3726 1.5759 [8,] 1.0605 0.9045 0.9014 0.9781 1.1155 1.2191 1.2295 1.2810 1.3626 1.4955 [9,] 1.0497 0.8695 0.9114 0.9806 1.1267 1.2224 1.2234 1.2722 1.3910 1.4342 [10,] 1.0706 0.8525 0.9050 0.9812 1.1714 1.2507 1.2022 1.2617 1.4233 1.3266 [11,] 1.0328 0.8552 0.8883 1.0013 1.1710 1.2997 1.1789 1.2888 1.4683 1.2744 [12,] 1.0110 0.8983 0.8912 1.0194 1.2298 1.3406 1.1861 1.3205 1.4559 1.3511 [,11] [,12] [1,] 1.3244 NA [2,] 1.2797 NA [3,] 1.3050 NA [4,] 1.3199 NA [5,] 1.3646 NA [6,] 1.4014 NA [7,] 1.4092 NA [8,] 1.4266 NA [9,] 1.4575 NA [10,] 1.4821 NA [11,] 1.4908 NA [12,] 1.4579 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.0388 -0.0297 -0.0171 -0.0125 0.0163 0.0002 -0.0110 -0.0186 0.0087 [2,] -0.0317 -0.0191 -0.0122 0.0059 0.0012 -0.0379 0.0172 0.0088 0.0166 [3,] -0.0185 -0.0194 -0.0158 0.0094 0.0065 -0.0272 -0.0242 0.0245 0.0267 [4,] -0.0071 -0.0390 -0.0172 0.0310 0.0694 0.0011 -0.0246 0.0494 0.0005 [5,] -0.0253 0.0446 -0.0223 0.0391 0.0118 0.0146 -0.0542 -0.0106 -0.0097 [6,] -0.0007 -0.0119 0.0085 0.0374 -0.0309 0.0120 -0.0114 0.0020 0.0305 [7,] 0.0235 -0.0341 0.0399 -0.0154 -0.0210 -0.0075 0.0254 0.0129 -0.0100 [8,] -0.0108 -0.0350 0.0100 0.0025 0.0112 0.0033 -0.0061 -0.0088 0.0284 [9,] 0.0209 -0.0170 -0.0064 0.0006 0.0447 0.0283 -0.0212 -0.0105 0.0323 [10,] -0.0378 0.0027 -0.0167 0.0201 -0.0004 0.0490 -0.0233 0.0271 0.0450 [11,] -0.0218 0.0431 0.0029 0.0181 0.0588 0.0409 0.0072 0.0317 -0.0124 [12,] 0.0021 0.0393 -0.0080 0.0428 0.0340 -0.0283 0.0265 -0.0212 0.0169 [,10] [,11] [,12] [1,] 0.0031 -0.0447 NA [2,] 0.0761 0.0253 NA [3,] 0.0234 0.0149 NA [4,] -0.0200 0.0447 NA [5,] 0.0008 0.0368 NA [6,] 0.0197 0.0078 NA [7,] -0.0804 0.0174 NA [8,] -0.0613 0.0309 NA [9,] -0.1076 0.0246 NA [10,] -0.0522 0.0087 NA [11,] 0.0767 -0.0329 NA [12,] -0.0267 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/www/html/freestat/rcomp/tmp/12hz21272304645.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/22hz21272304645.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/32hz21272304645.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/4d8gn1272304645.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 0.87070 0.87660 0.8860 0.87530 0.8530 0.86150 0.9014 0.86950 [2,] 1.03765 1.03095 1.02200 1.0075 0.99000 0.9969 1.01525 1.0193 1.01515 [3,] 1.21260 1.19400 1.20280 1.1989 1.20000 1.2146 1.20410 1.2191 1.22240 [4,] 1.30580 1.29050 1.31175 1.3071 1.31425 1.3041 1.32035 1.3218 1.33160 [5,] 1.47280 1.47590 1.55200 1.5754 1.55540 1.5562 1.57590 1.4955 1.45750 [,10] [,11] [,12] [1,] 0.85250 0.85520 0.89120 [2,] 1.02590 1.01705 1.01520 [3,] 1.20220 1.17890 1.22980 [4,] 1.29415 1.29425 1.34585 [5,] 1.48210 1.49080 1.45790 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.084857 1.070354 1.064767 1.056174 1.045531 1.068254 1.058754 1.074993 [2,] 1.340343 1.317646 1.340833 1.341626 1.354469 1.360946 1.349446 1.363207 [,9] [,10] [,11] [,12] [1,] 1.071647 1.074409 1.046845 1.072282 [2,] 1.373153 1.329991 1.310955 1.387318 $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(0.8832, 1.03765, 1.2126, 1.3058, 1.4728, 0.8707, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5d8gn1272304645.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.03790 -0.02720 -0.03900 -0.05420 -0.03090 -0.03410 -0.0350 [2,] -0.02415 -0.01565 -0.01895 -0.01860 -0.01645 -0.00605 -0.01820 -0.0098 [3,] -0.01250 0.00590 0.00650 0.00050 0.00080 0.00780 -0.00750 0.0025 [4,] 0.00165 0.01690 0.01915 0.03785 0.02570 0.01585 0.02045 0.0106 [5,] 0.01630 0.02530 0.02670 0.06940 0.04460 0.03740 0.03990 0.0309 [,9] [,10] [,11] [,12] [1,] -0.02120 -0.0522 -0.03290 -0.0283 [2,] -0.01375 -0.0200 -0.00475 -0.0212 [3,] 0.00060 0.0027 0.01810 0.0095 [4,] 0.02645 0.0236 0.04200 0.0340 [5,] 0.04470 0.0490 0.07670 0.0428 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.0247908085 -0.009606427 -0.01165038 -0.0263921 -0.01927975 -0.002632896 [2,] -0.0002091915 0.021406427 0.02465038 0.0273921 0.02087975 0.018232896 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02591239 -0.007218314 -0.01855079 -0.01807051 -0.004171135 -0.01808012 [2,] 0.01091239 0.012218314 0.01975079 0.02347051 0.040371135 0.03708012 $out [1] 0.0761 -0.0804 -0.0613 -0.1076 $group [1] 2 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0447, -0.0241499999999999, -0.0125000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6nhf81272304645.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,] 1.01100 0.85250 0.85300 0.87070 1.06220 1.19890 1.17890 1.19400 1.29930 [2,] 1.03735 0.88390 0.88180 0.88460 1.08295 1.21685 1.20315 1.21995 1.33335 [3,] 1.06175 0.92225 0.89695 0.96710 1.13160 1.22635 1.22645 1.26710 1.35720 [4,] 1.07960 0.95740 0.90985 0.98735 1.16920 1.26390 1.29780 1.27885 1.40715 [5,] 1.12030 1.01310 0.93760 1.01940 1.22980 1.29970 1.31850 1.32050 1.46830 [,10] [,11] [,12] [1,] 1.27440 1.27970 NA [2,] 1.39265 1.32215 NA [3,] 1.48570 1.40530 NA [4,] 1.55580 1.45770 NA [5,] 1.57590 1.49080 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,] 1.042479 0.8887262 0.8841562 0.920235 1.092261 1.204890 1.183279 1.240235 [2,] 1.081021 0.9557738 0.9097438 1.013965 1.170939 1.247810 1.269621 1.293965 [,9] [,10] [,11] [,12] [1,] 1.323539 1.411286 1.343475 NA [2,] 1.390861 1.560114 1.467125 NA $out [1] 1.1591 1.3406 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(1.011, 1.03735, 1.06175, 1.0796, 1.1203, 0.8525, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7nhf81272304645.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.163300 1.17890 1.150500 [2,] 1.171550 1.19945 1.156475 [3,] 1.176318 1.20345 1.163800 [4,] 1.178859 1.21685 1.171137 [5,] 1.183964 1.22980 1.180525 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.172984 1.195514 1.157112 [2,] 1.179652 1.211386 1.170488 $out [1] 1.196527 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.1633, 1.17155, 1.17631818181818, 1.17885909090909, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/12hz21272304645.ps tmp/12hz21272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/22hz21272304645.ps tmp/22hz21272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/32hz21272304645.ps tmp/32hz21272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/4d8gn1272304645.ps tmp/4d8gn1272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/5d8gn1272304645.ps tmp/5d8gn1272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/6nhf81272304645.ps tmp/6nhf81272304645.png",intern=TRUE)) character(0) > try(system("convert tmp/7nhf81272304645.ps tmp/7nhf81272304645.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.901 1.502 2.309