R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(11462,11462,11778,11778,11778,12093,12093,12760,13427,13427,13742,14058,14404,14724,14724,14724,15387,15707,16022,16369,17004,17351,17666,17982,18649,18964,19315,19631,19631,19946,20613,20929,22893,23555,23871,24222,24222,24853,24853,24853,25520,26186,26502,27164,27164,27164,27164,27800,27800,28462,28462,29129,29764,30111,30111,30111,30111,30426,30426,30426,30742,30742,31409,31409,31724,31724,32391,32391,32391,32391,32706,33053,33053,33373,33373,33689,33689,34035,34355,34355,34355,34355,35017,35333,35333,35653,35653,35653,36000,36315,36315,36631,36982,37297,37297,37964,37964,38280,38595,38595,38946,39262,39262,39924,39924,40244,40244,40560,40560,40906,41222,41542,41542,42871,44168,44835,47431,48413,50057,51355) > 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,] 11462 14404 18649 24222 27800 30742 33053 35333 37964 40560 NA [2,] 11462 14724 18964 24853 28462 30742 33373 35653 38280 40906 NA [3,] 11778 14724 19315 24853 28462 31409 33373 35653 38595 41222 NA [4,] 11778 14724 19631 24853 29129 31409 33689 35653 38595 41542 NA [5,] 11778 15387 19631 25520 29764 31724 33689 36000 38946 41542 NA [6,] 12093 15707 19946 26186 30111 31724 34035 36315 39262 42871 NA [7,] 12093 16022 20613 26502 30111 32391 34355 36315 39262 44168 NA [8,] 12760 16369 20929 27164 30111 32391 34355 36631 39924 44835 NA [9,] 13427 17004 22893 27164 30111 32391 34355 36982 39924 47431 NA [10,] 13427 17351 23555 27164 30426 32391 34355 37297 40244 48413 NA [11,] 13742 17666 23871 27164 30426 32706 35017 37297 40244 50057 NA [12,] 14058 17982 24222 27800 30426 33053 35333 37964 40560 51355 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 0 320 315 631 662 0 320 320 316 346 NA [2,] 316 0 351 0 0 667 0 0 315 316 NA [3,] 0 0 316 0 667 0 316 0 0 320 NA [4,] 0 663 0 667 635 315 0 347 351 0 NA [5,] 315 320 315 666 347 0 346 315 316 1329 NA [6,] 0 315 667 316 0 667 320 0 0 1297 NA [7,] 667 347 316 662 0 0 0 316 662 667 NA [8,] 667 635 1964 0 0 0 0 351 0 2596 NA [9,] 0 347 662 0 315 0 0 315 320 982 NA [10,] 315 315 316 0 0 315 662 0 0 1644 NA [11,] 316 316 351 636 0 347 316 667 316 1298 NA [12,] 346 667 0 0 316 0 0 0 0 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/rcomp/tmp/1itpf1313681976.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/www/rcomp/tmp/2oma01313681976.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/www/rcomp/tmp/3lqh81313681976.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/www/rcomp/tmp/4anwv1313681976.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,] 11462 11462 11778.0 11778 11778 12093.0 12093 12760 13427 13427.0 13742 [2,] 18649 18964 19315.0 19631 19631 19946.0 20613 20929 22893 23555.0 23871 [3,] 29271 29602 29935.5 30269 30744 30917.5 31251 31251 31251 31408.5 31566 [4,] 35333 35653 35653.0 35653 36000 36315.0 36315 36631 36982 37297.0 37297 [5,] 40560 40906 41222.0 41542 41542 42871.0 44168 44835 47431 48413.0 50057 [,12] [1,] 14058.0 [2,] 24222.0 [3,] 31739.5 [4,] 37964.0 [5,] 51355.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20935.01 21263.51 21772.38 22263.77 22565.39 22738.89 23405.65 23405.65 [2,] 37606.99 37940.49 38098.62 38274.23 38922.61 39096.11 39096.35 39096.35 [,9] [,10] [,11] [,12] [1,] 24211.57 24542.45 24857.84 24873.45 [2,] 38290.43 38274.55 38274.16 38605.55 $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(11462, 18649, 29271, 35333, 40560, 11462, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5k91g1313681976.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,] 315 0.0 0 0 315 0.0 0.0 0.0 0 0 0.0 0 [2,] 315 0.0 0 0 315 0.0 0.0 0.0 0 0 316.0 0 [3,] 320 157.5 0 331 318 315.5 331.5 175.5 315 315 331.5 0 [4,] 346 316.0 316 635 347 667.0 662.0 667.0 347 316 636.0 316 [5,] 346 667.0 667 667 347 1297.0 667.0 667.0 662 662 667.0 667 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 304.5112 -0.386199 -157.8862 13.72868 302.0115 -17.75979 0.7384059 [2,] 335.4888 315.386199 157.8862 648.27132 333.9885 648.75979 662.2615941 [,8] [,9] [,10] [,11] [,12] [1,] -157.7598 141.6250 157.1138 171.6152 -166.4267 [2,] 508.7598 488.3750 472.8862 491.3848 166.4267 $out [1] 0 631 662 0 666 0 1329 1964 2596 982 1644 1298 $group [1] 1 1 1 1 5 5 5 8 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(315, 315, 320, 346, 346, 0, 0, 157.5, 316, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6q4up1313681976.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,] 11462 14404.0 18649.0 24222 27800.0 30742.0 33053 35333.0 37964 40560.0 [2,] 11778 14724.0 19473.0 24853 28795.5 31409.0 33531 35653.0 38595 41382.0 [3,] 12093 15864.5 20279.5 26344 30111.0 32057.5 34195 36315.0 39262 43519.5 [4,] 13427 17177.5 23224.0 27164 30268.5 32391.0 34355 37139.5 40084 47922.0 [5,] 14058 17982.0 24222.0 27800 30426.0 33053.0 35333 37964.0 40560 51355.0 [,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,] 11340.88 14745.44 18568.64 25289.94 29439.15 31609.60 33819.17 35637 [2,] 12845.12 16983.56 21990.36 27398.06 30782.85 32505.40 34570.83 36993 [,9] [,10] [,11] [1,] 38582.86 40536.56 NA [2,] 39941.14 46502.44 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(11462, 11778, 12093, 13427, 14058, 14404, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7u9pw1313681976.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,] 27418.90 29271.00 27402.62 [2,] 28019.35 30102.25 27970.25 [3,] 29004.10 31084.25 28790.31 [4,] 30315.25 31329.75 30326.19 [5,] 31275.30 31739.50 31211.38 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 27956.92 30524.38 27715.75 [2,] 30051.28 31644.12 29864.87 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(27418.9, 28019.35, 29004.1, 30315.25, 31275.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1itpf1313681976.ps tmp/1itpf1313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/2oma01313681976.ps tmp/2oma01313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/3lqh81313681976.ps tmp/3lqh81313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/4anwv1313681976.ps tmp/4anwv1313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/5k91g1313681976.ps tmp/5k91g1313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/6q4up1313681976.ps tmp/6q4up1313681976.png",intern=TRUE)) character(0) > try(system("convert tmp/7u9pw1313681976.ps tmp/7u9pw1313681976.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.400 0.170 1.555