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(95870,95523,95208,94541,101097,100781,95870,92581,92928,92928,93244,93910,93559,96190,97172,96190,99799,97488,92261,90964,90964,91599,89004,90964,89319,90964,93559,94541,96852,95870,89981,87670,86692,87670,86057,86692,84728,88021,89635,89981,96190,96190,88021,86057,86057,87039,82764,80799,78524,79186,82133,79821,86057,87039,80799,78524,77221,78524,74910,73613,68390,69688,70004,70355,76559,75893,68390,65097,63799,65444,59208,54964,47115,47777,47777,47115,52684,53004,46448,45151,42524,46133,39577,35653,28146,29764,27800,28462,33373,34355,31093,30742,30742,35017,27484,22573,14058,20929,19946,20293,28146,27164,23555,25204,25204,31093,24222,20293,14058,22258,21595,21911,28782,28146,25835,26186,27800,31409,25835,21275) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 95870 93559 89319 84728 78524 68390 47115 28146 14058 14058 NA [2,] 95523 96190 90964 88021 79186 69688 47777 29764 20929 22258 NA [3,] 95208 97172 93559 89635 82133 70004 47777 27800 19946 21595 NA [4,] 94541 96190 94541 89981 79821 70355 47115 28462 20293 21911 NA [5,] 101097 99799 96852 96190 86057 76559 52684 33373 28146 28782 NA [6,] 100781 97488 95870 96190 87039 75893 53004 34355 27164 28146 NA [7,] 95870 92261 89981 88021 80799 68390 46448 31093 23555 25835 NA [8,] 92581 90964 87670 86057 78524 65097 45151 30742 25204 26186 NA [9,] 92928 90964 86692 86057 77221 63799 42524 30742 25204 27800 NA [10,] 92928 91599 87670 87039 78524 65444 46133 35017 31093 31409 NA [11,] 93244 89004 86057 82764 74910 59208 39577 27484 24222 25835 NA [12,] 93910 90964 86692 80799 73613 54964 35653 22573 20293 21275 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -347 2631 1645 3293 662 1298 662 1618 6871 8200 NA [2,] -315 982 2595 1614 2947 316 0 -1964 -983 -663 NA [3,] -667 -982 982 346 -2312 351 -662 662 347 316 NA [4,] 6556 3609 2311 6209 6236 6204 5569 4911 7853 6871 NA [5,] -316 -2311 -982 0 982 -666 320 982 -982 -636 NA [6,] -4911 -5227 -5889 -8169 -6240 -7503 -6556 -3262 -3609 -2311 NA [7,] -3289 -1297 -2311 -1964 -2275 -3293 -1297 -351 1649 351 NA [8,] 347 0 -978 0 -1303 -1298 -2627 0 0 1614 NA [9,] 0 635 978 982 1303 1645 3609 4275 5889 3609 NA [10,] 316 -2595 -1613 -4275 -3614 -6236 -6556 -7533 -6871 -5574 NA [11,] 666 1960 635 -1965 -1297 -4244 -3924 -4911 -3929 -4560 NA [12,] -351 -1645 -1964 -2275 -5223 -7849 -7507 -8515 -6235 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/1zvib1310657209.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/2gder1310657209.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/3hy321310657209.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/4l6n71310657209.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,] 14058 20929 19946.0 20293 28146 27164 23555.0 25204.0 25204 31093 24222 [2,] 28146 29764 27800.0 28462 33373 34355 31093.0 30742.0 30742 35017 27484 [3,] 73457 74437 76068.5 75088 81308 81466 74594.5 71810.5 70510 71984 67059 [4,] 89319 90964 93559.0 94541 96852 96190 89981.0 87670.0 86692 87670 86057 [5,] 95870 96190 97172.0 96190 101097 100781 95870.0 92581.0 92928 92928 93244 [,12] [1,] 20293.0 [2,] 22573.0 [3,] 64288.5 [4,] 86692.0 [5,] 93910.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 42892.53 43859.04 43212.68 42072.3 49591.36 50570.77 45171.71 [2,] 104021.47 105014.96 108924.32 108103.7 113024.64 112361.23 104017.29 [,8] [,9] [,10] [,11] [,12] [1,] 43367 42555.15 45676.46 37793.59 32252.09 [2,] 100254 98464.85 98291.54 96324.41 96324.91 $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(14058, 28146, 73457, 89319, 95870, 20929, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5c1g81310657209.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,] -347.0 -1964 -982 3609.0 -2311 -8169 -3293.0 -2627 0 -7533.0 -4911.0 [2,] 662.0 -663 -667 4911.0 -982 -6556 -2311.0 -1298 978 -6556.0 -4244.0 [3,] 1631.5 158 331 6206.5 -476 -5558 -1630.5 0 1474 -4924.5 -2944.5 [4,] 3293.0 1614 351 6556.0 320 -3609 -351.0 0 3609 -2595.0 635.0 [5,] 6871.0 2947 982 7853.0 982 -2311 1649.0 1614 5889 316.0 1960.0 [,12] [1,] -8515 [2,] -7507 [3,] -5223 [4,] -1964 [5,] -351 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 316.9475 -979.68 -177.6334 5384.592 -1126.5311 -7030.439 -2609.7941 [2,] 2946.0525 1295.68 839.6334 7028.408 174.5311 -4085.561 -651.2059 [,8] [,9] [,10] [,11] [,12] [1,] -648.5326 159.4475 -6903.574 -5382.2429 -8142.313 [2,] 648.5326 2788.5525 -2945.426 -506.7571 -2303.687 $out [1] 8200 -2312 2311 $group [1] 1 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-347, 662, 1631.5, 3293, 6871, -1964, -663, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6cia71310657209.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,] 92581.0 89004 86057 80799.0 73613.0 59208.0 39577.0 22573 14058.0 14058 [2,] 93086.0 90964 87181 85392.5 77872.5 64448.0 43837.5 27973 20293.0 21753 [3,] 94874.5 92910 89650 87530.0 78855.0 68390.0 46781.5 30253 23888.5 25835 [4,] 95870.0 96681 94050 89808.0 81466.0 70179.5 47777.0 32233 26184.0 27973 [5,] 95870.0 99799 96852 96190.0 86057.0 76559.0 53004.0 35017 31093.0 31409 [,11] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93604.7 90302.44 86517 85516.06 77215.98 65775.82 44984.67 28309.99 [2,] 96144.3 95517.56 92783 89543.94 80494.02 71004.18 48578.33 32196.01 [,9] [,10] [,11] [1,] 21201.58 22998.02 NA [2,] 26575.42 28671.98 NA $out [1] 101097 100781 87039 54964 35653 $group [1] 1 1 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(92581, 93086, 94874.5, 95870, 95870, 89004, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7mizg1310657209.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,] 58073.60 67059.00 57870.50 [2,] 61884.90 71160.25 60320.06 [3,] 64127.65 73947.00 62229.56 [4,] 64584.25 75578.25 62974.62 [5,] 64685.60 81466.00 63263.12 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 62896.46 71931.92 61018.80 [2,] 65358.84 75962.08 63440.33 $out [1] 69953.90 69593.00 64288.50 67443.62 67563.62 55530.88 $group [1] 1 1 2 3 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(58073.6, 61884.9, 64127.65, 64584.25, 64685.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zvib1310657209.ps tmp/1zvib1310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/2gder1310657209.ps tmp/2gder1310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/3hy321310657209.ps tmp/3hy321310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/4l6n71310657209.ps tmp/4l6n71310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/5c1g81310657209.ps tmp/5c1g81310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/6cia71310657209.ps tmp/6cia71310657209.png",intern=TRUE)) character(0) > try(system("convert tmp/7mizg1310657209.ps tmp/7mizg1310657209.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.565 0.464 2.036